[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

[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 rep...@bugs.python.org http://bugs.python.org/issue17630

[issue17630] Create a pure Python zipfile importer

2013-06-21 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:

[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

[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

[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 rep...@bugs.python.org

[issue17630] Create a pure Python zipfile importer

2013-04-30 Thread Dmi Baranov
Changes by Dmi Baranov dmi.bara...@gmail.com: -- nosy: +dmi.baranov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17630 ___ ___ Python-bugs-list

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue17630 ___

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17630 ___ ___ Python-bugs-list

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17630 ___ ___ Python-bugs-list mailing

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17630 ___ ___ Python-bugs-list

[issue17630] Create a pure Python zipfile importer

2013-04-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17630 ___ ___ Python-bugs-list mailing list

[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 rep...@bugs.python.org http://bugs.python.org/issue17630 ___