[issue17630] Create a pure Python zipfile importer

2013-11-08 Thread Brett Cannon
Brett Cannon added the comment: This is going to need a touch-up for PEP 451 to make the whole thing work more smoothly, so repositioning for Python 3.5. When that happens I can look into the 2 second issue that Amaury pointed out and Paul's review. Although I do wonder about the utility of th

[issue17630] Create a pure Python zipfile importer

2013-07-01 Thread Brett Cannon
Brett Cannon added the comment: Paul's review did find one non-optimal thing the code is doing. I'll fix it the next time there's a need to upload a new patch. -- ___ Python tracker ___

[issue17630] Create a pure Python zipfile importer

2013-06-21 Thread Brett Cannon
Brett Cannon added the comment: A two second granularity? Ugh. That will require a new (possibly private) API to abstract that out in order to handle that case. What a pain. While I look into that if people can look at the code and let me know if they see anything wrong with it, hard to unders

[issue17630] Create a pure Python zipfile importer

2013-06-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Times in a ZIP files have a two-seconds resolution (in the old DOS FAT format: 5 bits for the hours, 6 bits for the minutes, and only 5 bits left for the seconds) Some fuziness logic is needed when comparing against a time_t. -- nosy: +amaury.for

[issue17630] Create a pure Python zipfile importer

2013-06-20 Thread Brett Cannon
Brett Cannon added the comment: I went ahead and added the needed method for bytecode loading; see the new patch. -- Added file: http://bugs.python.org/file30660/zip_importlib.diff ___ Python tracker _

[issue17630] Create a pure Python zipfile importer

2013-06-20 Thread Brett Cannon
Brett Cannon added the comment: Here is an initial stab at a zip file importer using importlib. Probably the biggest shortcoming is that it doesn't support bytecode files, but that's because I just have not bothered to add support yet (it's just one method to implement). There is a note in zip

[issue17630] Create a pure Python zipfile importer

2013-04-30 Thread Dmi Baranov
Changes by Dmi Baranov : -- nosy: +dmi.baranov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Brett. I look forward to this. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bug

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Brett Cannon
Brett Cannon added the comment: I should mention I have an old implementation at https://code.google.com/p/importers/. -- ___ Python tracker ___

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Brett Cannon
New submission from Brett Cannon: I'm going to write an importer using zipfile and importlib in pure Python. I'm doing this so that (a) there is an importer that relies on zipfile and thus what features it adds over time, (b) to have good example code to point people to when they need to imple