Skip to content

Make all low-level interfaces internal #1167

Closed

Description

@filmor

In particular, we should not expose the Runtime class. All functionality that is of use outside of the implementation of Python.NET itself should instead be moved to separate (public) classes.

Activity

  1. bmiller-pm commented on Sep 2, 2020

    @bmiller-pm

    Actually as an embedder, I'd love/need to have the Runtime internals exposed.
    So much so I had to build python.net myself and add the 'friend' attribute:
    [assembly: InternalsVisibleTo("my assembly")]

    I see the need for embedding python over the need to import the clr in python.
    Maybe there should be a target/build for embedding?

  2. lostmsu commented on Sep 2, 2020

    @lostmsu
    Member

    @quickwire although it might be advantageous to have direct access to C routines, Python.NET provides a higher-level product. Because of that, we should hide the implementation details as much as possible to be able to change it later at any moment. Also see my comment on your thread state issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions