Re: [Python-Dev] Merge codeaccess.txt from wesnoth-contribcommunity project in Google Code Hosting

2013-10-28 Thread Tae Wong
Your suggestion needs to be accepted in the Misc/ACKS file. -- Tae Wong ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail

[Python-Dev] Block module import during Python finalization?

2013-10-28 Thread Victor Stinner
Hi, While working on a fix, I got an assertion error during Python finalization because Python tried to import the "io" module whereas the module was just unloaded. Python tried to import the io module to display a warning and display the Python line where the warning was emitted. See the followin

Re: [Python-Dev] PEP 455: TransformDict

2013-10-28 Thread Victor Stinner
2013/10/4 Raymond Hettinger : >> On Sep 22, 2013, at 6:16 PM, Ethan Furman wrote: >> > Are we close to asking for pronouncement? > > When you're ready, let me know. The deadline for new features is in less than 1 month, so what is the status of the PEP 455 (TransformDict)? Victor ___

Re: [Python-Dev] Block module import during Python finalization?

2013-10-28 Thread Benjamin Peterson
2013/10/28 Victor Stinner : > Hi, > > While working on a fix, I got an assertion error during Python > finalization because Python tried to import the "io" module whereas > the module was just unloaded. Python tried to import the io module to > display a warning and display the Python line where th

Re: [Python-Dev] Block module import during Python finalization?

2013-10-28 Thread Antoine Pitrou
On Mon, 28 Oct 2013 16:13:36 -0400 Benjamin Peterson wrote: > 2013/10/28 Victor Stinner : > > Hi, > > > > While working on a fix, I got an assertion error during Python > > finalization because Python tried to import the "io" module whereas > > the module was just unloaded. Python tried to import

Re: [Python-Dev] Block module import during Python finalization?

2013-10-28 Thread Eric Snow
On Mon, Oct 28, 2013 at 12:45 PM, Victor Stinner wrote: > I propose to block importing new modules (or import again unloaded > modules) during Python finalization to avoid such tricky bugs. Alternatively, we could set sys.modules[name] to None for each builtin/frozen module when they get finalize

[Python-Dev] PEP 454 (tracemalloc) disable ==> clear?

2013-10-28 Thread Jim Jewett
reset() function: Clear traces of memory blocks allocated by Python. Does this do anything besides clear? If not, why not just re-use the 'clear' name from dicts? disable() function: Stop tracing Python memory allocations and clear traces of memory blocks alloc

Re: [Python-Dev] PEP 451 update

2013-10-28 Thread Eric Snow
On Sat, Oct 26, 2013 at 11:03 PM, Nick Coghlan wrote: > I don't think we can postpone it to later, as we need to be clear on: > > 1. Does reload use __name__ or __spec__.name when both are available? > 2. Does __name__ get restored to its original value if reloading via > __spec__.name? > 3. Do ot

Re: [Python-Dev] PEP 451 update

2013-10-28 Thread Eric Snow
On Sun, Oct 27, 2013 at 4:41 PM, PJ Eby wrote: > I'm talking about userspace code that implements lazy importing > features, like the lazyModule() function in this module: > >http://svn.eby-sarna.com/Importing/peak/util/imports.py?view=markup > > Specifically, I'm trying to get an idea of how

Re: [Python-Dev] cpython: Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle

2013-10-28 Thread Georg Brandl
Am 29.10.2013 01:19, schrieb victor.stinner: > http://hg.python.org/cpython/rev/4ef4578db38a > changeset: 86715:4ef4578db38a > user:Victor Stinner > date:Tue Oct 29 01:19:37 2013 +0100 > summary: > Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle > exc

Re: [Python-Dev] cpython: Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on

2013-10-28 Thread Georg Brandl
Am 29.10.2013 01:46, schrieb victor.stinner: > http://hg.python.org/cpython/rev/e1d51c42e5a1 > changeset: 86716:e1d51c42e5a1 > user:Victor Stinner > date:Tue Oct 29 01:28:23 2013 +0100 > summary: > Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on > me