Re: [Python-Dev] A C implementation of OrderedDict

2013-10-20 Thread Eric Snow
On Sun, Oct 20, 2013 at 9:56 PM, Raymond Hettinger wrote: > I'll look at this in more detail after I've finishing my review of the > TransformDict, > but my initial impression is that the original show stopper hasn't been > overcome: > http://bugs.python.org/issue10977 > > The concrete dict API is

Re: [Python-Dev] A C implementation of OrderedDict

2013-10-20 Thread Raymond Hettinger
On Oct 20, 2013, at 9:21 AM, Eric Snow wrote: > If anyone is interested in having a (faithful) C implementation of > OrderedDict for the 3.4 release, I have a patch up [1]. My interest > in having the patch applied is relative to proposals that won't apply > to 3.4, so I haven't felt the need t

Re: [Python-Dev] Coding practice for context managers

2013-10-20 Thread Ethan Furman
On 10/20/2013 07:42 PM, Raymond Hettinger wrote: In short, I recommend that efforts be directed at improving help() rather than limiting introspection by way of less clean coding practices. +1 We also have the option of adding a custom __dir__ to change what help() displays. -- ~Ethan~ ___

[Python-Dev] Coding practice for context managers

2013-10-20 Thread Raymond Hettinger
Two of the new context managers in contextlib are now wrapped in pass-through factory functions. The intent is to make the help() look cleaner. This practice does have downsides however. The usual way to detect whether something is usable with a with-statement is to check the presence of th

[Python-Dev] [RELEASED] Python 3.4.0a4

2013-10-20 Thread Larry Hastings
On behalf of the Python development team, I'm very pleased to announce the fourth and final alpha release of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python 3.4 includes a range of improvements of the 3.x series, including hundreds of small

Re: [Python-Dev] Logging Module format

2013-10-20 Thread R. David Murray
On Sun, 20 Oct 2013 16:34:30 -0700, Hasan Diwan wrote: > I've been using the logging module recently and noticed the default format > doesn't timestamp log entries. I've not figured out how to change the > format after initialization. This is python 2.7, on Mac OS X. Help, anyone? This mailing li

[Python-Dev] Logging Module format

2013-10-20 Thread Hasan Diwan
I've been using the logging module recently and noticed the default format doesn't timestamp log entries. I've not figured out how to change the format after initialization. This is python 2.7, on Mac OS X. Help, anyone? -- H -- Sent from my mobile device Envoyé de mon portable __

Re: [Python-Dev] [python-committers] Python 3.4.0a4: Coming In For A Bumpy Landing

2013-10-20 Thread Benjamin Peterson
2013/10/20 Ned Deily : > > On Oct 20, 2013, at 15:57 , Benjamin Peterson wrote: > >> 2013/10/20 Larry Hastings : >>> >>> >>> 3.4.0a4 is tagged and I'm in the process of releasing it. But it's going to >>> be, let's say, more "alpha-quality" than the previous alphas. >>> >>> Known problems: >>> >>

Re: [Python-Dev] [python-committers] Python 3.4.0a4: Coming In For A Bumpy Landing

2013-10-20 Thread Ned Deily
On Oct 20, 2013, at 15:57 , Benjamin Peterson wrote: > 2013/10/20 Larry Hastings : >> >> >> 3.4.0a4 is tagged and I'm in the process of releasing it. But it's going to >> be, let's say, more "alpha-quality" than the previous alphas. >> >> Known problems: >> >> There's a reference count leak

Re: [Python-Dev] Python 3.4.0a4: Coming In For A Bumpy Landing

2013-10-20 Thread Benjamin Peterson
2013/10/20 Larry Hastings : > > > 3.4.0a4 is tagged and I'm in the process of releasing it. But it's going to > be, let's say, more "alpha-quality" than the previous alphas. > > Known problems: > > There's a reference count leak in the compiler. This is fixed, so you could just move the tag up a

[Python-Dev] Python 3.4.0a4: Coming In For A Bumpy Landing

2013-10-20 Thread Larry Hastings
3.4.0a4 is tagged and I'm in the process of releasing it. But it's going to be, let's say, more "alpha-quality" than the previous alphas. Known problems: * There's a reference count leak in the compiler. * asyncio test suite sometimes times out, which takes... an hour. * asyncio test sui

Re: [Python-Dev] PEP 451: ModuleSpec

2013-10-20 Thread Guido van Rossum
How about if Brett and Nick both agree that it's good, I approve it? If either one wants more discussion I'll appoint them the PEP-BDFL. On Sun, Oct 20, 2013 at 8:54 AM, Eric Snow wrote: > On Fri, Oct 11, 2013 at 1:37 PM, Eric Snow > wrote: >> Any comments? Usually silence implies no disapprov

[Python-Dev] A C implementation of OrderedDict

2013-10-20 Thread Eric Snow
If anyone is interested in having a (faithful) C implementation of OrderedDict for the 3.4 release, I have a patch up [1]. My interest in having the patch applied is relative to proposals that won't apply to 3.4, so I haven't felt the need to advance the patch. However, in case anyone else would

Re: [Python-Dev] PEP 451: ModuleSpec

2013-10-20 Thread Eric Snow
On Fri, Oct 11, 2013 at 1:37 PM, Eric Snow wrote: > Any comments? Usually silence implies no disapproval. ;) PEP 451 did > go through several rounds of review on import-sig, so I'm not going to > stress over low feedback at this point. However, I'd particularly > appreciate knowing if there are

[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-20 Thread Mark.Favas
Or perhaps call it "contextlib.ignore_first(Exception)"? Mark Favas iVEC@CSIRO Director A/Director, Technical Operations, iVEC Advanced Scientific Computing CSIRO IM&T ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/l

[Python-Dev] Recall: cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-20 Thread Mark.Favas
Favas, Mark (CSIRO IM&T, Kensington) would like to recall the message, "cpython: Rename contextlib.ignored() to contextlib.ignore().". ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: htt

Re: [Python-Dev] PEP 454 (tracemalloc): new minimalist version

2013-10-20 Thread Victor Stinner
2013/10/19 Charles-François Natali : >> get_object_trace(obj) is a shortcut for >> get_trace(get_object_address(obj)). I agree that the wrong size >> information can be surprising. >> >> I can delete get_object_trace(), or rename the function to >> get_object_traceback() and modify it to only retur

[Python-Dev] PEP 453 (ensurepip) updated

2013-10-20 Thread Nick Coghlan
I have posted the latest version of PEP 453 to python.org. It is available in the usual place: http://www.python.org/dev/peps/pep-0453/ Three significant changes have been made since the last posted version: * removed the proposal to change the script installation directory on Windows, due t

Re: [Python-Dev] An interesting exception handling quirk

2013-10-20 Thread Nick Coghlan
On 20 October 2013 16:08, Armin Rigo wrote: > Hi Nick, > > On Sat, Oct 19, 2013 at 1:41 PM, Nick Coghlan wrote: >> recreating the *exact* exception subclass check from >> Python is actually difficult these days. > > Can't it be done roughly like that? > >def __exit__(self, typ, val, tb): >