[Python-Dev] dir() in inspect.py ?

2012-05-15 Thread Christian Tismer
Hi, by chance I looked into the impl of inspect.getmembers today and was slightly shocked: def getmembers(object, predicate=None): """Return all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.""" results =

Re: [Python-Dev] sys.implementation

2012-05-15 Thread Barry Warsaw
On May 15, 2012, at 10:26 AM, Eric Snow wrote: >At this point I'm pretty comfortable with where PEP 421 is at. Before >asking for pronouncement, I'd like to know if anyone has any >outstanding concerns that should be addressed first. It looks great to me. If I were the PEP czar , I'd approve it

Re: [Python-Dev] zipimport to read from a file object instead of just a path?

2012-05-15 Thread Shy Shalom
> > It's already possible - just write another importer. For the builtin > zipimport, this is not an option, since it seeds itself from the sys.path > entry, which will be a file name. See PEP 302. > > Regards, > Martin > > Maybe it can be seeded by both a string path *or* a file object, the

Re: [Python-Dev] Accepting PEP 3144 (the ipaddress library)

2012-05-15 Thread Guido van Rossum
Congrats Nick and Peter! On Tue, May 15, 2012 at 5:13 AM, Nick Coghlan wrote: > Based on the current version of PEP 3144 and its reference > implementation, I am formally accepting ipaddress into the standard > library. > > I believe Peter has satisfactorily resolved the concerns previously > rai

Re: [Python-Dev] sys.implementation

2012-05-15 Thread Eric Snow
At this point I'm pretty comfortable with where PEP 421 is at. Before asking for pronouncement, I'd like to know if anyone has any outstanding concerns that should be addressed first. The only (relatively) substantial point of debate has been the type for sys.implementation. The PEP now limits t

Re: [Python-Dev] zipimport to read from a file object instead of just a path?

2012-05-15 Thread martin
Zitat von Shy Shalom : In zipimport.c, function get_data(), the zip file is opened using fopen() and read with CLib functions. Did anyone ever consider making it possible to read the zipped data from a generic file object and not just using a string path? It's already possible - just write an

[Python-Dev] Accepting PEP 3144 (the ipaddress library)

2012-05-15 Thread Nick Coghlan
Based on the current version of PEP 3144 and its reference implementation, I am formally accepting ipaddress into the standard library. I believe Peter has satisfactorily resolved the concerns previously raised with the proposed API, and if I missed anything... well, that's why we have alpha relea

Re: [Python-Dev] Open PEPs and large-scale changes for 3.3

2012-05-15 Thread Zbigniew Jędrzejewski-Szmek
On 05/02/2012 02:24 AM, Ben Finney wrote: > Georg Brandl writes: > >> list of possible features for 3.3 as specified by PEP 398: >> >> Candidate PEPs: > […] > >> * PEP 3143: Standard daemon process library I think that http://0pointer.de/public/systemd-man/daemon.html would a good addition to t

[Python-Dev] zipimport to read from a file object instead of just a path?

2012-05-15 Thread Shy Shalom
In zipimport.c, function get_data(), the zip file is opened using fopen() and read with CLib functions. Did anyone ever consider making it possible to read the zipped data from a generic file object and not just using a string path? Using StringIO, This would allow a higher degree of python embeddi