- Notifications
You must be signed in to change notification settings - Fork749
PyExport
Victor edited this pageMay 1, 2020 ·1 revision
By default any public .NET type is visible to Python. If you want to hide .NET type from Python (for example because its conflicts with an existing Python type), you can mark it with with[PyExport(false)]
attribute:
[Python.Runtime.PyExport(false)]publicclassIamInvisibleToPython{ ...}
You can hide your entire assembly by applying that attribute to it:
[assembly:Python.Runtime.PyExport(false)]