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

2013-10-21 Thread Eric Snow
On Sun, Oct 20, 2013 at 9:56 PM, Raymond Hettinger raymond.hettin...@gmail.com 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

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

2013-10-21 Thread Nick Coghlan
On 21 Oct 2013 12:44, Raymond Hettinger raymond.hettin...@gmail.com wrote: 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

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

2013-10-21 Thread R. David Murray
On Sun, 20 Oct 2013 19:49:24 -0700, Ethan Furman et...@stoneleaf.us wrote: 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 I'm also +1 on

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

2013-10-21 Thread Paul Moore
On 21 October 2013 11:59, R. David Murray rdmur...@bitdance.com wrote: On Sun, 20 Oct 2013 19:49:24 -0700, Ethan Furman et...@stoneleaf.us wrote: On 10/20/2013 07:42 PM, Raymond Hettinger wrote: In short, I recommend that efforts be directed at improving help() rather than limiting

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

2013-10-21 Thread R. David Murray
On Mon, 21 Oct 2013 12:11:57 +0100, Paul Moore p.f.mo...@gmail.com wrote: On 21 October 2013 11:59, R. David Murray rdmur...@bitdance.com wrote: On Sun, 20 Oct 2013 19:49:24 -0700, Ethan Furman et...@stoneleaf.us wrote: On 10/20/2013 07:42 PM, Raymond Hettinger wrote: In short, I

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

2013-10-21 Thread R. David Murray
On Mon, 21 Oct 2013 07:21:11 -0400, R. David Murray rdmur...@bitdance.com wrote: On Mon, 21 Oct 2013 12:11:57 +0100, Paul Moore p.f.mo...@gmail.com wrote: On 21 October 2013 11:59, R. David Murray rdmur...@bitdance.com wrote: On Sun, 20 Oct 2013 19:49:24 -0700, Ethan Furman

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

2013-10-21 Thread Nick Coghlan
On 21 Oct 2013 21:22, R. David Murray rdmur...@bitdance.com wrote: On Mon, 21 Oct 2013 12:11:57 +0100, Paul Moore p.f.mo...@gmail.com wrote: On 21 October 2013 11:59, R. David Murray rdmur...@bitdance.com wrote: On Sun, 20 Oct 2013 19:49:24 -0700, Ethan Furman et...@stoneleaf.us wrote:

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

2013-10-21 Thread Antoine Pitrou
Le Mon, 21 Oct 2013 20:46:39 +1000, Nick Coghlan ncogh...@gmail.com a écrit : On 21 Oct 2013 12:44, Raymond Hettinger raymond.hettin...@gmail.com wrote: Two of the new context managers in contextlib are now wrapped in pass-through factory functions. The intent is to make the help() look

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

2013-10-21 Thread Antoine Pitrou
Le Mon, 21 Oct 2013 23:12:40 +1000, Nick Coghlan ncogh...@gmail.com a écrit : On 21 Oct 2013 22:10, Antoine Pitrou solip...@pitrou.net wrote: Le Mon, 21 Oct 2013 20:46:39 +1000, Nick Coghlan ncogh...@gmail.com a écrit : On 21 Oct 2013 12:44, Raymond Hettinger

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

2013-10-21 Thread Barry Warsaw
On Oct 21, 2013, at 08:46 PM, Nick Coghlan wrote: There's also the fact that I prefer the current lower case names, but strongly dislike using lower case names for classes (despite the fact closing was included in the original contextlib with a non PEP 8 compliant class name). Ha! The only

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

2013-10-21 Thread Barry Warsaw
On Oct 21, 2013, at 08:46 PM, Nick Coghlan wrote: There's also the fact that I prefer the current lower case names, but strongly dislike using lower case names for classes (despite the fact closing was included in the original contextlib with a non PEP 8 compliant class name). I think PEP 8

[Python-Dev] Python 2.6.9 final final due out 28 October 2013

2013-10-21 Thread Barry Warsaw
This is a reminder that Python 2.6.9 final - and by that I mean *really* final as it will be the last supported version of Python 2.6 - is scheduled for release one week from today, on October 28, 2013. All known showstopper security bugs have been applied to the branch. If you know of anything

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

2013-10-21 Thread Nick Coghlan
On 21 Oct 2013 23:54, Antoine Pitrou solip...@pitrou.net wrote: Le Mon, 21 Oct 2013 23:12:40 +1000, Nick Coghlan ncogh...@gmail.com a écrit : On 21 Oct 2013 22:10, Antoine Pitrou solip...@pitrou.net wrote: Le Mon, 21 Oct 2013 20:46:39 +1000, Nick Coghlan ncogh...@gmail.com a écrit :

[Python-Dev] Hashes on same site as download?

2013-10-21 Thread Dan Stromberg
I may be missing something, but it seems the Python tarballs and hashes are on the same host, and this is not an entirely good thing for security. The way things are now, an attacker breaks into one host, doctors up a tarball, changes the hashes in the same host, and people download without

Re: [Python-Dev] Hashes on same site as download?

2013-10-21 Thread Barry Warsaw
On Oct 21, 2013, at 06:21 PM, Dan Stromberg wrote: I may be missing something, but it seems the Python tarballs and hashes are on the same host, and this is not an entirely good thing for security. All the tarballs are signed with the GPG keys of the release managers. The hashes are just a

Re: [Python-Dev] Hashes on same site as download?

2013-10-21 Thread Tim Delaney
On 22 October 2013 12:21, Dan Stromberg drsali...@gmail.com wrote: I may be missing something, but it seems the Python tarballs and hashes are on the same host, and this is not an entirely good thing for security. The way things are now, an attacker breaks into one host, doctors up a

Re: [Python-Dev] Hashes on same site as download?

2013-10-21 Thread Dan Stromberg
On Mon, Oct 21, 2013 at 6:47 PM, Tim Delaney timothy.c.dela...@gmail.comwrote: On 22 October 2013 12:21, Dan Stromberg drsali...@gmail.com wrote: I may be missing something, but it seems the Python tarballs and hashes are on the same host, and this is not an entirely good thing for security.

[Python-Dev] #19335 is a codeop, not Idle issue

2013-10-21 Thread Terry Reedy
I know that many core devs subscribe to the new tracker issues list. If you skipped over http://bugs.python.org/issue19335 because it was (mis) titled as an Idle issue (as I presume most would), you might want to reconsider as it is actually a code and in particular, a codeop issue. Consider