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
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
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
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
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
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
>
> 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
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
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 =