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

Shy Shalom shooshx at gmail.com
Tue May 15 13:19:54 CEST 2012


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 embedding in an application. I would be able to have a zip file in memory and make python read modules from it. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120515/5c302266/attachment.html>



More information about the Python-Dev mailing list