-
Notifications
You must be signed in to change notification settings - Fork 752
Remove Utf8Marshaler, set PyScope base class to PyObject, added PyModule #1391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cbfd65c
to
ad5343d
Compare
ad5343d
to
86a4081
Compare
src/runtime/pythonengine.cs
Outdated
@@ -742,9 +707,10 @@ public static KeywordArguments kw(params object[] kv) | |||
return dict; | |||
} | |||
|
|||
[Obsolete("Use PyModule.Import")] | |||
public static PyObject Import(string name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't obsolete this one right now. Having Py.
as a central entry-point has merit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@filmor Perhaps we should move Py
class into its own file 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D
Yep, sorry for the inconsistency. I'd like to obsolete PythonEngine
for the most part and collect entry points in Py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this [Obsolete]
, added a new issue to move Py
out.
changed PyScope to inherit from PyObject
86a4081
to
ac68aab
Compare
08609b9
to
ac68aab
Compare
Also allow
BorrowedReference == null
comparison.