[Ironpython-users] IronPython, Daily Digest 12/13/2011
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [Status update] Why is calling a Python lambda expression from C# not thread-safe? -- ISSUES 1. [Status update] Why is calling a Python lambda expression from C# not thread-safe? http://ironpython.codeplex.com/workitem/31925 User jdhardy has updated the issue: Status has changed from Proposed to Closed with the following comment, "Duplicate of [workitem:31924]." -- -- 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] http://mail.python.org/mailman/listinfo/ironpython-users
[Ironpython-users] __package__
Currently, I am working on implementing zipimport. I have modules being imported from egg files (very early and not a lot of testing done yet), but I notice that the __package__ attribute is not getting set up correctly, e.g.: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import oauth >>> dir(oauth) ['__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__'] IronPython 3.0 DEBUG (3.0.0.0) on .NET 4.0.30319.237 Type "help", "copyright", "credits" or "license" for more information. >>> import oauth >>> dir(oauth) ['__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__path__'] I see in the code that there are references to __package__, but following where it it set is proving to be a bit difficult. Can someone point me in the right direction? Thanks, slide Website: http://earl-of-code.com ___ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-users
Re: [Ironpython-users] __package__
It happens in Importer.cs - there's a comment saying "// explicit relative import, calculate and store __package__" It also happens in imp.new_module, when creating the sys module, and in PythonContext.CreateBuiltinModule, but I think those are all much less interesting. Import bugs are really tough... Anyone who has worked on the importer code has never looked at the CPython source code to see how it works - so there's subtle issues like this. I'd suggest looking at CPython where it sets it and then making IronPython work the same. From: [email protected] [mailto:[email protected]] On Behalf Of Slide Sent: Wednesday, December 14, 2011 9:03 PM To: [email protected] Subject: [Ironpython-users] __package__ Currently, I am working on implementing zipimport. I have modules being imported from egg files (very early and not a lot of testing done yet), but I notice that the __package__ attribute is not getting set up correctly, e.g.: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import oauth >>> dir(oauth) ['__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__'] IronPython 3.0 DEBUG (3.0.0.0) on .NET 4.0.30319.237 Type "help", "copyright", "credits" or "license" for more information. >>> import oauth >>> dir(oauth) ['__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__path__'] I see in the code that there are references to __package__, but following where it it set is proving to be a bit difficult. Can someone point me in the right direction? Thanks, slide Website: http://earl-of-code.com ___ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-users
