Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Disable CLR (and related) imports & attempt to isolate the Python environment from the .NET world#2458

alexis-belmonte started this conversation inGeneral
Discussion options

Environment

  • Pythonnet version: 3.0.4
  • Python version: 3.12.6
  • Operating System: Windows 11 (22631.4169)
  • .NET Runtime: Core 8.0

Details

  • This is not a bug report, but rather a request
  • I am currently developing a project in C# and want to achieve Python integration, similar to what Lua proposes with its native C library
  • I want to be able to disable the CLR module as I do not want user code to access .NET classes from the Python environment
  • I want to only expose some classes and/or methods to the environment; opposite from the current behaviour which is to let every class be automatically exposed to the Python environment, and only specify those who are not exported to said environment
  • I am just testing out the library with theExecuteSimpleString method, and I currently can do .NET imports from Python, which is what I want to prevent
  • Is there any way to achieve all of this?

Thanks!

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
1 participant
@alexis-belmonte
Converted from issue

This discussion was converted from issue #2457 on September 19, 2024 20:34.


[8]ページ先頭

©2009-2025 Movatter.jp