Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Possible to import from a cStringIO file object vs. file on disk?
Steve Holden
2/26/2010 5:00:00 PM
python@bdurham.com wrote:
> Is it possible to import from a cStringIO file object (containing
> compiled byte code) vs. a physical file on disk?
>
> I'm thinking that this is possible, given Python's ability to import
> from zip files, but I'm not sure where to look next.
>
> Thank you,
> Malcolm
>
You'll need to write a custom importer. PEP 302 contains the necessary
details.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010
http://us....
Holden Web LLC
http://www.hold...
UPCOMING EVENTS:
http://holdenweb.event...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Possible to import from a cStringIO file object vs. file on disk?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password