[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since it's a performance improvement, it's Python 3.3-only. The patch looks ok but there's an unrelated issue. If I first pickle a bytearray under 3.3 using protocol 2: >>> b = bytearray(b'xyz') >>> pickle.dumps(b, protocol=2) b'\x80\x02c__builtin__\nbytearra

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The irony is that with protocol < 3, bytes should piggy-back on bytearray and not the reverse (since the bytearray constructor has the same semantics under 2.x and 3.x). It also means that the latin1 encoding solution should probably be kept for protocol < 3

[issue13505] Bytes objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2011-11-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : In Python 3.2: >>> pickle.dumps(b'xyz', protocol=2) b'\x80\x02c__builtin__\nbytes\nq\x00]q\x01(KxKyKze\x85q\x02Rq\x03.' In Python 2.7: >>> pickle.loads(b'\x80\x02c__builtin__\nbytes\nq\x00]q\x01(KxKyKze\x85q\x02Rq\x03.') '[120, 121, 122]' The problem is th

[issue10747] Include version info in Windows shortcuts

2011-11-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-11-29 Thread Marco Scataglini
New submission from Marco Scataglini : The IDLE shell sys.path does not contains any entry for the Current Working Directory ('' or '.' or '.\'); without it, when changing the CWD with os.chdir(), the shell cannot find, execute or import scripts or module in it. I can start the standard Python

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue13405] Add DTrace probes

2011-11-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23814/3968bb3e698f.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13405] Add DTrace probes

2011-11-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23795/01f206595d16.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13405] Add DTrace probes

2011-11-29 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Stack trace helper done for the case that the filenames and the function names are ascii. Pending the case we have latin1 and unicode characters. In the process I have learned more about the implementation details of PEP-393 that I would like to know :-). C

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-29 Thread Zachary Richey
Zachary Richey added the comment: I've reworded the patch and fixed the issues in the patch pointed out by eric.araujo. -- Added file: http://bugs.python.org/file23815/functions_print_doc_2.patch ___ Python tracker

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-11-29 Thread Marco Scataglini
Changes by Marco Scataglini : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13505] Bytes objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2011-11-29 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-11-29 Thread Marco Scataglini
Marco Scataglini added the comment: ... I think it could be fixed by adding sys.path.insert(0,"") on the # process sys.argv and sys.path: section in PyShell.py after (~about) line 1383 sys.path.insert(0, dir) sys.path.insert(0,"")

[issue13405] Add DTrace probes

2011-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I know that 2.7 patch is not going to be integrated in mainline but would you > consider reviewing it? I personally won't. If there are things that will apply to 2.7 as well, you surely can backport them also, no? -- __

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-11-29 Thread Charles-François Natali
Charles-François Natali added the comment: > So I'm changing my mind and saying it seems desireable to return True if the > wait succeeded before the timeout's end, even though the flag may have been > reset in the meantime. Agreed. What matters is that the event has been signaled, not that i

[issue12014] str.format parses replacement field incorrectly

2011-11-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: > I just noticed that the patch labelled strformat-as-document is > actually the same as the other one, owing to my incompetence. All three patches look different to me. > Anyway, as far as I can tell the patches would have to be reworked > in the light of rec

<    1   2