Re: [Python-Dev] PEP 451 update

2013-10-26 Thread Nick Coghlan
On 27 October 2013 14:29, Eric Snow wrote: > On Sat, Oct 26, 2013 at 9:44 PM, Nick Coghlan wrote: >> Accordingly, I think we should add a "How Reloading Will Work" >> section, akin to the existing "How Loading Will Work" >> (http://www.python.org/dev/peps/pep-0451/#how-loading-will-work). We >> m

Re: [Python-Dev] PEP 451 update

2013-10-26 Thread Eric Snow
On Sat, Oct 26, 2013 at 9:44 PM, Nick Coghlan wrote: > I've been thinking about this, and I've come to the conclusion that: > > 1. The old __name__ based behaviour was broken (since __name__ may not > be the actual module name, as in "__main__" or when a pseudo-module is > lying about its identity

Re: [Python-Dev] PEP 451 update

2013-10-26 Thread Nick Coghlan
On 27 October 2013 03:27, Nick Coghlan wrote: > On 26 October 2013 08:51, PJ Eby wrote: >> Mostly, this just seems like an ugly wart -- Python should be dynamic >> by default, and that includes reloading. While the import machinery >> has lots of ugly caching under the hood, a user-level functio

Re: [Python-Dev] PEP 451 update

2013-10-26 Thread Eric Snow
On Sat, Oct 26, 2013 at 11:27 AM, Nick Coghlan wrote: > On 26 October 2013 08:51, PJ Eby wrote: >> Yeah, it actually was to ensure that you could reload a module using a >> different loader than the one that originally loaded it, e.g. due to a >> change in path hooks, etc. > > Yeah, the rationale

Re: [Python-Dev] OrderedDict.values() behavior for modified instance

2013-10-26 Thread Nikolaus Rath
Ethan Furman writes: > Nikolaus, > > Good write-up. Please submit it to the bug tracker: > http://bugs.python.org Submitted as http://bugs.python.org/issue19414. If someone gives me the go-ahead for one of the proposed solutions, I'd be happy to create a full patch. Best, Nikolaus -- Encrypt

Re: [Python-Dev] OrderedDict.values() behavior for modified instance

2013-10-26 Thread Ethan Furman
Nikolaus, Good write-up. Please submit it to the bug tracker: http://bugs.python.org -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options

Re: [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

2013-10-26 Thread Nick Coghlan
On 27 Oct 2013 04:16, "Serhiy Storchaka" wrote: > > 26.10.13 20:32, Nick Coghlan написав(ла): > >> On 27 October 2013 01:10, Serhiy Storchaka wrote: >>> >>> 26.10.13 15:50, Stefan Krah написав(ла): >>> nick.coghlan wrote: > > > http://hg.python.org/cpython/rev/a9bbc2d0c1dc >

Re: [Python-Dev] PEP 451 update

2013-10-26 Thread Eric Snow
On Fri, Oct 25, 2013 at 9:44 AM, Eric Snow wrote: > On Fri, Oct 25, 2013 at 9:40 AM, Brett Cannon wrote: >> After reading Eric's doc patch, I realized there is one change I want to >> make to the current semantics and that's not to backfill __package__ when >> set to None. Since import is now goi

Re: [Python-Dev] cpython (2.7): 2.7.6rc1

2013-10-26 Thread Christian Heimes
Am 26.10.2013 20:58, schrieb benjamin.peterson: > http://hg.python.org/cpython/rev/4913d0e9be30 > changeset: 86665:4913d0e9be30 > branch: 2.7 > tag: v2.7.6rc1 > user:Benjamin Peterson > date:Sat Oct 26 14:57:21 2013 -0400 > summary: > 2.7.6rc1 We need to solve htt

Re: [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

2013-10-26 Thread Serhiy Storchaka
26.10.13 20:32, Nick Coghlan написав(ла): On 27 October 2013 01:10, Serhiy Storchaka wrote: 26.10.13 15:50, Stefan Krah написав(ла): nick.coghlan wrote: http://hg.python.org/cpython/rev/a9bbc2d0c1dc -HAVE_DOCSTRINGS = (check_impl_detail(cpython=False) or - sys.platform ==

Re: [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

2013-10-26 Thread Nick Coghlan
On 27 October 2013 03:32, Nick Coghlan wrote: > On 27 October 2013 01:10, Serhiy Storchaka wrote: >> 26.10.13 15:50, Stefan Krah написав(ла): >> >>> nick.coghlan wrote: http://hg.python.org/cpython/rev/a9bbc2d0c1dc -HAVE_DOCSTRINGS = (check_impl_detail(cpython=False) or -

Re: [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

2013-10-26 Thread Nick Coghlan
On 27 October 2013 01:10, Serhiy Storchaka wrote: > 26.10.13 15:50, Stefan Krah написав(ла): > >> nick.coghlan wrote: >>> >>> http://hg.python.org/cpython/rev/a9bbc2d0c1dc >>> -HAVE_DOCSTRINGS = (check_impl_detail(cpython=False) or >>> - sys.platform == 'win32' or >>> -

Re: [Python-Dev] PEP 451 update

2013-10-26 Thread Nick Coghlan
On 26 October 2013 08:51, PJ Eby wrote: > Mostly, this just seems like an ugly wart -- Python should be dynamic > by default, and that includes reloading. While the import machinery > has lots of ugly caching under the hood, a user-level function like > reload() should not require you to do the e

Re: [Python-Dev] [Python-checkins] cpython: Fiddled Thread.join() to be a little simpler. Kinda ; -)

2013-10-26 Thread Glenn Linderman
On 10/26/2013 8:42 AM, Tim Peters wrote: Read "then" as an abbreviation of "in that case"? In that case, then, "then" is a very poor abbreviation of "in that case", and is unlikely to be interpreted with that expansion by many readers. ___ Python-Dev

Re: [Python-Dev] [Python-checkins] cpython: Fiddled Thread.join() to be a little simpler. Kinda ; -)

2013-10-26 Thread Tim Peters
On Sat, Oct 26, 2013 at 6:29 AM, A.M. Kuchling wrote: > On Sat, Oct 26, 2013 at 05:34:05AM +0200, tim.peters wrote: >> Fiddled Thread.join() to be a little simpler. Kinda ;-) >> -# else it's a negative timeout - precise behavior isn't documented >> -# then, but historically .joi

Re: [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

2013-10-26 Thread Serhiy Storchaka
26.10.13 15:50, Stefan Krah написав(ла): nick.coghlan wrote: http://hg.python.org/cpython/rev/a9bbc2d0c1dc -HAVE_DOCSTRINGS = (check_impl_detail(cpython=False) or - sys.platform == 'win32' or - sysconfig.get_config_var('WITH_DOC_STRINGS')) +# Rather than tryi

Re: [Python-Dev] pip SSL

2013-10-26 Thread Donald Stufft
This pull request should solve this https://github.com/pypa/pip/pull/1256 On Oct 20, 2013, at 12:32 AM, Nick Coghlan wrote: > On 20 October 2013 05:46, Ian Cordasco wrote: >> Also the three of us maintaining requests and the author of urllib3 >> are all very conscious that the packaged pem file

Re: [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

2013-10-26 Thread Stefan Krah
nick.coghlan wrote: > http://hg.python.org/cpython/rev/a9bbc2d0c1dc > -HAVE_DOCSTRINGS = (check_impl_detail(cpython=False) or > - sys.platform == 'win32' or > - sysconfig.get_config_var('WITH_DOC_STRINGS')) > +# Rather than trying to enumerate all the cases wher

Re: [Python-Dev] [Python-checkins] cpython: Fiddled Thread.join() to be a little simpler. Kinda ; -)

2013-10-26 Thread A.M. Kuchling
On Sat, Oct 26, 2013 at 05:34:05AM +0200, tim.peters wrote: > Fiddled Thread.join() to be a little simpler. Kinda ;-) > -# else it's a negative timeout - precise behavior isn't documented > -# then, but historically .join() returned in this case > +else: > +#

Re: [Python-Dev] Updated PEP 454 (tracemalloc): no more metrics!

2013-10-26 Thread Kristján Valur Jónsson
In that case, how about adding a client/server feature? If you standardize the format, a minimal tracing client could write a log, or send it to a socket, in a way that can be turned into a snapshot by a corresponsing utility reading from a file or listenting to a socket. Just a though. Could be