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:

[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 following

Re: [Python-Dev] PEP 455: TransformDict

2013-10-28 Thread Victor Stinner
2013/10/4 Raymond Hettinger raymond.hettin...@gmail.com: On Sep 22, 2013, at 6:16 PM, Ethan Furman et...@stoneleaf.us 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

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

2013-10-28 Thread Benjamin Peterson
2013/10/28 Victor Stinner victor.stin...@gmail.com: 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

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 benja...@python.org wrote: 2013/10/28 Victor Stinner victor.stin...@gmail.com: 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

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 victor.stin...@gmail.com 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

[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

Re: [Python-Dev] PEP 451 update

2013-10-28 Thread Eric Snow
On Sat, Oct 26, 2013 at 11:03 PM, Nick Coghlan ncogh...@gmail.com 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

Re: [Python-Dev] PEP 451 update

2013-10-28 Thread Eric Snow
On Sun, Oct 27, 2013 at 4:41 PM, PJ Eby p...@telecommunity.com 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