Re: [Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

2010-04-09 Thread Guido van Rossum
On Fri, Apr 9, 2010 at 3:54 PM, Paul Moore wrote: > On 9 April 2010 23:00, Barry Warsaw wrote: >> On Apr 09, 2010, at 02:52 PM, Guido van Rossum wrote: >> >>>It may be undocumented but it doesn't start with _ and it exists to >>>preserve backwards compatibility. So I recommend adding >>>PyImport_

Re: [Python-Dev] PEP 3147

2010-04-09 Thread Antoine Pitrou
Hello, I'm sorry to chime in a bit late about an aspect of the PEP, but I only wondered about it while reviewing your code :-) « Instead, this PEP proposes to add a mapping between internal magic numbers and a user-friendly tag. Newer versions of Python can add to this mapping so that all late

Re: [Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

2010-04-09 Thread Paul Moore
On 9 April 2010 23:00, Barry Warsaw wrote: > On Apr 09, 2010, at 02:52 PM, Guido van Rossum wrote: > >>It may be undocumented but it doesn't start with _ and it exists to >>preserve backwards compatibility. So I recommend adding >>PyImport_ExecCodeModuleExEx(). > > Cool, thanks.  Now I can't wait

Re: [Python-Dev] PEP 3147 working implementation

2010-04-09 Thread Barry Warsaw
Patch set 4 has been uploaded to Rietveld: http://codereview.appspot.com/842043/show This includes some fixes for Windows and support for the __cached__ attribute on modules. While I need to do another pass through the PEP to make sure I've gotten everything, this code is very nearly feature com

Re: [Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

2010-04-09 Thread Barry Warsaw
On Apr 09, 2010, at 02:52 PM, Guido van Rossum wrote: >It may be undocumented but it doesn't start with _ and it exists to >preserve backwards compatibility. So I recommend adding >PyImport_ExecCodeModuleExEx(). Cool, thanks. Now I can't wait for PyImport_ExecCodeModuleExExEx() :) -Barry sign

Re: [Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

2010-04-09 Thread Guido van Rossum
It may be undocumented but it doesn't start with _ and it exists to preserve backwards compatibility. So I recommend adding PyImport_ExecCodeModuleExEx(). On Fri, Apr 9, 2010 at 1:24 PM, Barry Warsaw wrote: > I've run into a minor snag implementing the __cached__ attribute on imported > modules.

[Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

2010-04-09 Thread Barry Warsaw
I've run into a minor snag implementing the __cached__ attribute on imported modules. From PEP 3147: As part of this PEP, we will add an `__cached__` attribute to modules, which will always point to the actual `pyc` file that was read or written. When the environment variable `$PYTHO

[Python-Dev] Summary of Python tracker Issues

2010-04-09 Thread Python tracker
ACTIVITY SUMMARY (2010-04-02 - 2010-04-09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2639 open (+37) / 17538 closed (+30) / 20177 total (+67) Open issues with patches: 1072 Ave