We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f654b4 commit 1ebe485Copy full SHA for 1ebe485
ghpythonremote/monkey.py
@@ -33,7 +33,12 @@ def get_id_pack(obj):
33
):
34
# netrefs are handled first since __class__ is a descriptor
35
return obj.____id_pack__
36
- elif inspect.ismodule(obj) or getattr(obj, "__name__", None) == "module":
+ # str(obj).split(':')[0] == "Microsoft.Scripting.Actions.NamespaceTracker" should also work
37
+ elif (
38
+ inspect.ismodule(obj)
39
+ or getattr(obj, "__name__", None) == "module"
40
+ or str(type(obj)) == "<type 'namespace#'>"
41
+ ):
42
# TODO: not sure about this, need to enumerate cases in units
43
if isinstance(obj, type): # module
44
obj_cls = type(obj)
0 commit comments