Re: zipfile [module and file format, both] stupidly broken

2007-05-19 Thread Martin Maney
Gabriel Genellina <[EMAIL PROTECTED]> wrote: > A module in the Python Standard Library has a bug. I take the Python > Library Reference manual, go to the last pages (Appendix B), and find how > to properly report a bug. Sure, the information is *somewhere*. Silly me, I expected it to be readi

Re: zipfile [module and file format, both] stupidly broken

2007-05-19 Thread Martin Maney
Larry Bates <[EMAIL PROTECTED]> bristled: > Are you serious? A zipfile with a comment > 4Kbytes. I've never encountered > such a beast. If I hadn't run into one I would never have had a clue that Python's zipfile module had this silly bug. > As with any open source product it is much better to r

Re: zipfile stupidly broken

2007-05-19 Thread Martin Maney
Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > To search 64k for all zip files would slow down the opening of all zip > files whereas most zipfiles don't have comments. No, actually it would only slow down for files which do have comments, assuming I understand the code correctly. IME most zipfiles

zipfile stupidly broken

2007-05-16 Thread Martin Maney
To quote from zipfile.py (2.4 library): # Search the last END_BLOCK bytes of the file for the record signature. # The comment is appended to the ZIP file and has a 16 bit length. # So the comment may be up to 64K long. We limit the search for the # signature to a few Kbytes at th

is asynchat broken or just not intended to work like other dispatchers? [PATCH]

2007-04-11 Thread Martin Maney
Simple asyncore application where I wanted to use an explicit map (1) rather than the automagic default. Worked fine until I tried to use asynchat to handle an interactive status and control connection (3) and found it had no notion about using a non-default map. After convincing myself that this

Re: New Python.org website ?

2006-01-14 Thread Martin Maney
Mike Meyer <[EMAIL PROTECTED]> wrote: > >> http://beta.python.org > In particular, creating a good-looking design that remains readable in > all possible browser configurations is impossible. Getting one that is > readable in all reasonable browser configurations is hard, unless you > make your d

seeking ncpfs library bindings for Python

2005-11-09 Thread Martin Maney
After hacking up a first cut that works through the existing ncpfs CLI tools, I was looking to move to a more integrated solution (if only to avoid so many spawns of external tasks just to, eg., update a queue's pending print job list). I couldn't find any hint of such a thing - the long-gone ndsl