[issue10045] poor cStringIO.StringO seek performance

2010-10-08 Thread Patrick Strawderman
Patrick Strawderman added the comment: Fair enough, but there is a great deal of existing code that already uses cStringIO. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10045] poor cStringIO.StringO seek performance

2010-10-07 Thread Patrick Strawderman
Patrick Strawderman added the comment: The second sentence should have said "the gap is filled in with n null bytes" -- ___ Python tracker <http://bugs.python.o

[issue10045] poor cStringIO.StringO seek performance

2010-10-07 Thread Patrick Strawderman
Changes by Patrick Strawderman : -- components: -None ___ Python tracker <http://bugs.python.org/issue10045> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10045] poor cStringIO.StringO seek performance

2010-10-07 Thread Patrick Strawderman
Changes by Patrick Strawderman : -- components: +None type: -> performance ___ Python tracker <http://bugs.python.org/issue10045> ___ ___ Python-bugs-list mai

[issue10045] poor cStringIO.StringO seek performance

2010-10-07 Thread Patrick Strawderman
New submission from Patrick Strawderman : cStringIO.StringO's seek method has O(n) characteristics in certain, albeit pathological, cases, while the pure Python implementation and cStringIO.StringI's seek methods both execute in constant time in all cases. When the file offset is s

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Added file: http://bugs.python.org/file18116/doctestbug.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Removed file: http://bugs.python.org/file18115/doctestbugpy3.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Removed file: http://bugs.python.org/file18114/doctestbug.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : -- versions: -Python 3.3 ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Added file: http://bugs.python.org/file18115/doctestbugpy3.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
Changes by Patrick Strawderman : Added file: http://bugs.python.org/file18114/doctestbug.py ___ Python tracker <http://bugs.python.org/issue9327> ___ ___ Python-bug

[issue9327] doctest DocFileCase setUp/tearDown asymmetry

2010-07-21 Thread Patrick Strawderman
New submission from Patrick Strawderman : doctest.DocFileTest inserts the test's path into the globs as "__file__", but doctest.DocTestCase's tearDown method simply calls globs.clear(), so that subsequent runs of the test case will not receive the same initial globals. This

[issue6553] cPickle "binunicode" segmentation fault

2009-07-23 Thread Patrick Strawderman
New submission from Patrick Strawderman : When reading from a file-like object (like StringIO), cPickle uses the read_other function, which doesn't check that the number of bytes requested is the actual number of bytes read (like the read_cStringIO function does). Functions like load_binun