Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New comment] StackOverflow when enumerating dynamic members of IMOs
2. [New issue] package get confused as module during import
----------------------------------------------
ISSUES
1. [New comment] StackOverflow when enumerating dynamic members of IMOs
http://ironpython.codeplex.com/workitem/34893
User jdhardy has commented on the issue:
"<p>This has proven to be delightfully nasty to solve.</p><p>The basic issue is
that `PythonType.GetMemberNames` is called on `f`; that checks to see if it has
a custom `__dir__`, which it does, provided by `DynamicObject`, so it
ultimately calls `MetaUserObject.GetDynamicMemberNames`; seeing as this is a
Python object, it then calls `Python.GetMemberNames`...</p><p>Everything I've
tried breaks one of: custom `__dir__` on Python types, getting dynamic member
names from other dynamic types, or getting the dynamic member names from a
Python type from another language.</p><p>I feel there is a solution here, but I
just can't put my finger on it. I'm all but certain it'll involve
special-casing the situation where a Python class derives from a DynamicObject
(really, IDMOP) class. It's just a matter of finding it.</p>"-----------------
2. [New issue] package get confused as module during import
http://ironpython.codeplex.com/workitem/35116
User paweljasinski has proposed the issue:
"In the following package structure:
top
top/pkg1
top/pkg1/m1.py
top/pkg1/__init__.py
top/pkg2
top/pkg2/pkg1.py
top/pkg2/__init__.py
top/__init__.py
test.py
and __init__.py (s) defined as in attachment, import statement can interpret
top/pkg2/pkg1.py instead of top/pkg1.
running test.py produces:
rejap@WIN-CUE1I6EN9JB ~/tmp/import-aliasing
$ ipy test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
ImportError: No module named m1
and equivalent for cpython:
rejap@WIN-CUE1I6EN9JB ~/tmp/import-aliasing
$ python test.py
42
Reference:
https://mail.python.org/pipermail/ironpython-users/2014-April/016924.html"
----------------------------------------------
----------------------------------------------
You are receiving this email because you subscribed to notifications on
CodePlex.
To report a bug, request a feature, or add a comment, visit IronPython Issue
Tracker. You can unsubscribe or change your issue notification settings on
CodePlex.com.
_______________________________________________
Ironpython-users mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ironpython-users