Re: [Python-Dev] PEP 435 - ref impl disc 2

2013-05-10 Thread Ethan Furman
On 05/10/2013 10:15 PM, Glenn Linderman wrote: But the last few lines of demo1 demonstrate that NIE doesn't like, somehow, remember that its values, deep down under the covers, are really int. And doesn't even like them when they are wrapped into IntET objects. This may or may not be a bug i

Re: [Python-Dev] PEP 435 - ref impl disc 2

2013-05-10 Thread Glenn Linderman
So, thanks everyone for helping me understand the metaclass issues, and helping fix my code and the reference implementation, so that I got a working workaround for enumerations. Twiddling some more newly using hg and bitbucket... learned a lot today... at

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Ben Hoyt
> Have you actually tried the code? It can't give you correct answers. The > struct dirent.d_type member as returned by readdir() has different > values than stat.st_mode's file type. Yes, I'm quite aware of that. In the first version of BetterWalk that's exactly how it did it, and this approach w

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Ben Hoyt
> In the python-ideas list there's a thread "PEP: Extended stat_result" > about adding methods to stat_result. > > Using that, you wouldn't necessarily have to look at st.st_mode. The method > could perform an additional os.stat() if the field was None. For > > example: > > # Build lists of files a

Re: [Python-Dev] make a Windows installation package (.msi) for Python 3.3

2013-05-10 Thread Brian Curtin
On Fri, May 10, 2013 at 12:31 PM, Jianfeng Mao wrote: > To Python Windows Release Managers: > > > > My name is Jianfeng Mao and I am a software developer at the U2 group in > Rocket Software (http://u2.rocketsoftware.com/). I am currently working on > a project to embed a slightly customized Pyt

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Antoine Pitrou
On Fri, 10 May 2013 14:00:09 -0700 Larry Hastings wrote: > > I swear I posted a list like this a couple years ago. Now I can't find > it. Anyway it was completely ignored then, probably because I'm not > Nick Coghlan. Many people in the world suffer with this problem. Regards Antoine. __

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Larry Hastings
On 05/10/2013 12:14 AM, Nick Coghlan wrote: I'd like to mark a few PEPs that are not currently being actively considered for 3.4 as Deferred: I swear I posted a list like this a couple years ago. Now I can't find it. Anyway it was completely ignored then, probably because I'm not Nick Coghl

[Python-Dev] make a Windows installation package (.msi) for Python 3.3

2013-05-10 Thread Jianfeng Mao
To Python Windows Release Managers: My name is Jianfeng Mao and I am a software developer at the U2 group in Rocket Software (http://u2.rocketsoftware.com/). I am currently working on a project to embed a slightly customized Python interpreter in our product. For easy installation and setup,

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Nick Coghlan
On Sat, May 11, 2013 at 2:01 AM, Terry Jan Reedy wrote: > You might also ask the authors if they are still really in favor of them or > have any hope for them, considering whatever discussion occurred, or whether > they have abandoned them (which would mean withdrawn). That's real work though, co

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Barry Warsaw
On May 10, 2013, at 09:19 AM, Guido van Rossum wrote: >>> S 3142 Add a "while" clause to generator expressions Britton >> >> I had the impression that this had more or less been rejected. I suppose I >> could try to dig up the discussion. > >I didn't know there was a PEP for that. I

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Guido van Rossum
On Fri, May 10, 2013 at 9:01 AM, Terry Jan Reedy wrote: > On 5/10/2013 3:14 AM, Nick Coghlan wrote: >> >> I'd like to mark a few PEPs that are not currently being actively >> considered for 3.4 as Deferred: >> >> S 286 Enhanced Argument Tuplesvon >> Löwis >>

[Python-Dev] Summary of Python tracker Issues

2013-05-10 Thread Python tracker
ACTIVITY SUMMARY (2013-05-03 - 2013-05-10) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open3963 (+10) closed 25758 (+44) total 29721 (+54) Open issues wit

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Terry Jan Reedy
On 5/10/2013 3:14 AM, Nick Coghlan wrote: I'd like to mark a few PEPs that are not currently being actively considered for 3.4 as Deferred: S 286 Enhanced Argument Tuplesvon Löwis S 337 Logging Usage in the Standard Library Dubner S

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Antoine Pitrou
Le Fri, 10 May 2013 23:53:37 +1000, Nick Coghlan a écrit : > On Fri, May 10, 2013 at 11:46 PM, Christian Heimes > wrote: > > Am 10.05.2013 14:16, schrieb Antoine Pitrou: > >> But what if some systems return more than the file type and less > >> than a full stat result? The general problem is POSI

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Ronald Oussoren
On 10 May, 2013, at 16:30, MRAB wrote: >> > [snip] > In the python-ideas list there's a thread "PEP: Extended stat_result" > about adding methods to stat_result. > > Using that, you wouldn't necessarily have to look at st.st_mode. The method > could perform an additional os.stat() if the field

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread MRAB
On 10/05/2013 11:55, Ben Hoyt wrote: A few of us were having a discussion at http://bugs.python.org/issue11406 about adding os.scandir(): a generator version of os.listdir() to make iterating over very large directories more memory efficient. This also reflects how the OS gives things to you -- i

Re: [Python-Dev] PEP 368

2013-05-10 Thread R. David Murray
On Fri, 10 May 2013 17:14:21 +1000, Nick Coghlan wrote: > S 368 Standard image protocol and class > Mastrodomenico I haven't read through it in detail yet, but this PEP looks interesting in the context of the further enhancements planned for the email module (ie: a MIME

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Ronald Oussoren
On 10 May, 2013, at 15:54, Antoine Pitrou wrote: > Le Fri, 10 May 2013 15:46:21 +0200, > Christian Heimes a écrit : > >> Am 10.05.2013 14:16, schrieb Antoine Pitrou: >>> But what if some systems return more than the file type and less >>> than a full stat result? The general problem is POSIX's

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Nick Coghlan
On Fri, May 10, 2013 at 11:57 PM, Barry Warsaw wrote: > On May 10, 2013, at 05:14 PM, Nick Coghlan wrote: > >> I 396 Module Version Numbers Warsaw > > I do want to eventually return to this PEP, but I probably won't any time > soon. Yeah, I have a couple of PEP

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Nick Coghlan
On Fri, May 10, 2013 at 11:46 PM, Christian Heimes wrote: > Am 10.05.2013 14:16, schrieb Antoine Pitrou: >> But what if some systems return more than the file type and less than a >> full stat result? The general problem is POSIX's terrible inertia. >> I feel that a stat result with some None fiel

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Barry Warsaw
On May 10, 2013, at 05:14 PM, Nick Coghlan wrote: > I 396 Module Version Numbers Warsaw I do want to eventually return to this PEP, but I probably won't any time soon. -Barry ___ Python-Dev mailing list Python-Dev@py

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Antoine Pitrou
Le Fri, 10 May 2013 15:46:21 +0200, Christian Heimes a écrit : > Am 10.05.2013 14:16, schrieb Antoine Pitrou: > > But what if some systems return more than the file type and less > > than a full stat result? The general problem is POSIX's terrible > > inertia. I feel that a stat result with some

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Christian Heimes
Am 10.05.2013 14:16, schrieb Antoine Pitrou: > But what if some systems return more than the file type and less than a > full stat result? The general problem is POSIX's terrible inertia. > I feel that a stat result with some None fields would be an acceptable > compromise here. POSIX only defines

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Ronald Oussoren
On 10 May, 2013, at 14:16, Antoine Pitrou wrote: > Le Fri, 10 May 2013 13:46:30 +0200, > Christian Heimes a écrit : >> >> Hence I'm +1 on the general idea but -1 on something stat like. IMHO >> os.scandir() should yield four objects: >> >> * name >> * inode >> * file type or DT_UNKNOWN >> * s

Re: [Python-Dev] PEP 4XX: pyzaa "Improving Python ZIP Application Support"

2013-05-10 Thread Daniel Holth
Everyone seems to like the first half of this simple PEP adding the extensions. The 3-letter extension for windowed apps can be "pzw" while the "pyz" extension for console apps stays the same. The second half, the tool https://bitbucket.org/dholth/pyzaa/src/tip/pyzaa.py?at=default is less mature,

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Antoine Pitrou
Le Fri, 10 May 2013 13:46:30 +0200, Christian Heimes a écrit : > > Hence I'm +1 on the general idea but -1 on something stat like. IMHO > os.scandir() should yield four objects: > > * name > * inode > * file type or DT_UNKNOWN > * stat_result or None > > stat_result shall only be returned w

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Christian Heimes
Am 10.05.2013 12:55, schrieb Ben Hoyt: > Higher-level functions like os.walk() would then check the fields they > needed are not None, and only call os.stat() if needed, for example: > > # Build lists of files and directories in path > files = [] > dirs = [] > for name, st in os.scandir(path): >

[Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-10 Thread Ben Hoyt
A few of us were having a discussion at http://bugs.python.org/issue11406 about adding os.scandir(): a generator version of os.listdir() to make iterating over very large directories more memory efficient. This also reflects how the OS gives things to you -- it doesn't give you a big list, but you

Re: [Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Antoine Pitrou
Hello Nick, Le Fri, 10 May 2013 17:14:21 +1000, Nick Coghlan a écrit : > I'd like to mark a few PEPs that are not currently being actively > considered for 3.4 as Deferred: > > S 286 Enhanced Argument Tuplesvon > Löwis S 337 Logging Usage in the Standard >

[Python-Dev] PEP 0 maintenance - deferring some currently open PEPs

2013-05-10 Thread Nick Coghlan
I'd like to mark a few PEPs that are not currently being actively considered for 3.4 as Deferred: S 286 Enhanced Argument Tuplesvon Löwis S 337 Logging Usage in the Standard Library Dubner S 368 Standard image protocol and class