Black Dew <black...@gmail.com> added the comment: If i follow the logic in read1() correctly it will do that only for files with very low compression ratios (the original sample where i noticed that problem was actually a chunk of encrypted data inside the zip).
>From the comments referring to "with at most one read() system call" I would >also assume it's OS-specific. Anyway, I've attached a small file that reproduces this behavior on my system (win xp 32bit). When i run it i get "AssertionError: Read returned 4097 bytes (4096 requested)" ---------- Added file: http://bugs.python.org/file18860/a.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9837> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com