[issue30000] Inconsistency in the zlib module

2017-05-18 Thread Ellison Marks
Ellison Marks added the comment: Erm, is there anyone else we should poke for their opinion then? -- ___ Python tracker <http://bugs.python.org/issue30

[issue30017] zlib.error: Error -2 while flushing: inconsistent stream state

2017-04-07 Thread Ellison Marks
Ellison Marks added the comment: At a guess, when encoder goes out of scope, it closes the underlying file object. Then, on exiting the with block, the zipfile tries to take some action with the closed file and errors out? -- nosy: +Ellison Marks

[issue30000] Inconsistency in the zlib module

2017-04-06 Thread Ellison Marks
Ellison Marks added the comment: I'm not sure I agree with that. The docs for compressobj just say "Returns a compression object, to be used for compressing data streams that won’t fit into memory at once." Which I don't think says much about the complexity aspect. Whether

[issue30000] Inconsistency in the zlib module

2017-04-06 Thread Ellison Marks
Ellison Marks added the comment: I made a try at a patch for this. My C is rudimentary at best, so I was hoping someone could look it over before I submitted a PR? https://github.com/gotyaoi/cpython/commit/2906fc9069ce6ec4888a547b5088ef9177a21c9a

[issue30000] Inconsistency in the zlib module

2017-04-05 Thread Ellison Marks
New submission from Ellison Marks: In the zlib module, three of the methods support the wbits parameter, those being zlib.compressobj, zlib.decompress and zlib.decompressobj. zlib.compress does not support the wbits parameter. Looking at the source for these functions, those that support the

[issue26571] turtle regression in 3.5

2016-04-16 Thread Ellison Marks
Ellison Marks added the comment: Just as an update, I've been working around this by manually setting TurtleScreen._RUNNING to True before calling Turtle() again, which produces the desired behaviour in both 3.4 and 3.5. Haven't noticed any bad effe

[issue26571] turtle regression in 3.5

2016-03-15 Thread Ellison Marks
New submission from Ellison Marks: I noticed some odd behaviour when running some turtle code I wrote using python 3.5. A simplified example: >>> from turtle import Turtle >>> t = Turtle() >>> t.getscreen().bye() # or manually close the turtle window >>>