[issue2506] Add mechanism to disable optimizations

2014-05-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ned, why is your proposal to turn-off ALL peephole transformations with COMMAND-LINE switch? * Why not just turn-off the jump-to-jump? Do you really need to disable constant folding and other transformations? * Have you explored whether the peephole.c cod

[issue21547] '!s' formatting documentation bug

2014-05-21 Thread Steven Barker
Steven Barker added the comment: The behavior of !s with the format() methods isn't exactly the same as %s with % formatting. With the latter, the conversion depends on the type of the result string, which in turn depends on whether the format string *or any of the values values* is unicode:

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-21 Thread Andrew Dalke
Andrew Dalke added the comment: Live and learn. I did my first bisect today. The first bad revision is: changeset: 51920:ef8fe9088696 branch: legacy-trunk parent: 51916:4e1556012584 user:Jeffrey Yasskin date:Sat Feb 28 19:03:21 2009 + summary: Backport r69961

[issue19662] smtpd.py should not decode utf-8

2014-05-21 Thread Duke Dougal
Duke Dougal added the comment: Is this one likely to be included in 3.5? It effectively breaks smtpd so it would be good to see it working again. -- ___ Python tracker ___ _

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-21 Thread Alex Gaynor
Alex Gaynor added the comment: As a note, the current code is basically identical to the code in Christain's backport, without the py3k compat. -- ___ Python tracker ___ ___

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Andrew, have you tried to bisect the Mercurial repository to find where the regression was introduced? -- ___ Python tracker ___ __

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-21 Thread Alex Gaynor
Alex Gaynor added the comment: Updated patch applies all of MAL's suggestions. Except the buffer() one, the purpose of the buffer() call is to make it an error to pass a list (or random other types) since you can call bytes() on any object. -- Added file: http://bugs.python.org/file353

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this tracker item should be subsumed by the effort to write a better pprint API. That would be better than trying to hack special cases into the current code which doesn't allow straight-forward customizations or extensions. I recommend this entry

[issue8579] Add missing tests for FlushKey, LoadKey, and SaveKey in winreg

2014-05-21 Thread Claudiu.Popa
Claudiu.Popa added the comment: I'm working on this issue and I have a minimal patch ready, but it depends on issue21518, which proposes adding UnloadKey to winreg, so that we can unload the keys mounted with LoadKey. Also, that issue adds a mechanism for privilege acquisition, which I'll util

[issue21551] Behavior of word boundaries in regexes unexpected

2014-05-21 Thread Matthew Barnett
Matthew Barnett added the comment: See also issue #852532, issue #3262 and issue #988761. -- ___ Python tracker ___ ___ Python-bugs-li

[issue21551] Behavior of word boundaries in regexes unexpected

2014-05-21 Thread R. David Murray
R. David Murray added the comment: "Note that split will never split a string on an empty pattern match" You can get what you want this way: >>> re.split(r'(\w*)', 'a funky string') ['', 'a', ' ', 'funky', ' ', 'string', ''] Or use r'(\W*)' if you don't actually want the leading and training e

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I want to get this too, but perhaps there are some issues in a code. 1. Py_GetPrefix() returns wchar_t* string with maximal length MAXPATHLEN (defined in Include/osdefs.h as 256 on Windows). Then wcstombs() converts it to char* string. Are you sure that MAX_

[issue21090] File read silently stops after EIO I/O error

2014-05-21 Thread Claudiu.Popa
Changes by Claudiu.Popa : -- nosy: -Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21551] Behavior of word boundaries in regexes unexpected

2014-05-21 Thread Wellington Fan
New submission from Wellington Fan: Hello, It seems that the word boundary sequence -- r'\b' -- is not behaving as expected using re.split(). The regex docs say: \b Matches the empty string, but only at the start or end of a word. My (failing) test: > import re > re.split(r'\b', 'A f

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-05-21 Thread Zachary Ware
Zachary Ware added the comment: Ping. I still want to get this in, but not without a proper review. -- ___ Python tracker ___ ___ Pyt

[issue21525] Accept lists in Tkinter

2014-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue21547] '!s' formatting documentation bug

2014-05-21 Thread Eric V. Smith
Eric V. Smith added the comment: I suggest using whatever language explains what "u'%s' %obj" does. It's the same behavior. >From the SO question, given: class A(object): def __str__(self): return 'as str' def __unicode__(self): return u'as unicode' Then: >>> '%s' %

[issue21525] Accept lists in Tkinter

2014-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8676e436c0f0 by Serhiy Storchaka in branch 'default': Issue #21525: Most Tkinter methods which accepted tuples now accept lists too. http://hg.python.org/cpython/rev/8676e436c0f0 -- nosy: +python-dev ___

[issue21550] Add Python implementation of the tar utility

2014-05-21 Thread Brett Cannon
Brett Cannon added the comment: If this goes in then the CLI in the tarfile module should be removed. -- nosy: +brett.cannon ___ Python tracker ___ __

[issue7434] general pprint rewrite

2014-05-21 Thread akira
akira added the comment: Related issue #21542: pprint support for multiline collections.Counter -- nosy: +akira ___ Python tracker ___

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-21 Thread akira
akira added the comment: If it fits on a line then it seems Counter's repr is used: >>> pprint(Counter({i:i*i for i in range(10)})) Counter({9: 81, 8: 64, 7: 49, 6: 36, 5: 25, 4: 16, 3: 9, 2: 4, 1: 1, 0: 0}) Otherwise It is shown as a dict (Counter is a dict subclass) if it is too large (m

[issue14776] Add SystemTap static markers

2014-05-21 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I would. Just to point out that some dtrace weirdness like the stack walker is needed because dtrace probes are executed inside the OS kernel :-). Can we analyze case by case?. -- ___ Python tracker

[issue21550] Add Python implementation of the tar utility

2014-05-21 Thread Claudiu.Popa
Claudiu.Popa added the comment: I don't think that adding it to Tools/script helps that much on Windows at least. See issue21027 for reference. Except this, +1 from me. -- nosy: +Claudiu.Popa ___ Python tracker __

[issue2506] Add mechanism to disable optimizations

2014-05-21 Thread Ned Batchelder
Ned Batchelder added the comment: Python-Ideas thread started: https://mail.python.org/pipermail/python-ideas/2014-May/027893.html -- ___ Python tracker ___ _

[issue21549] Add the members parameter for TarFile.list()

2014-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue21550 for example. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21550] Add Python implementation of the tar utility

2014-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Add the members parameter for TarFile.list() ___ Python tracker ___ ___ Python-bugs-li

[issue21550] Add Python implementation of the tar utility

2014-05-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is preliminary Python implementation of the tar archiving utility. I propose to add it to Tools/script. The main purpose of this the research of which features needed the tarfile module. Another purpose is that this provides more powerful tool to crea

[issue21549] Add the members parameter for TarFile.list()

2014-05-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch adds the members parameter for TarFile.list() with the same meaning as in TarFile.extractall(). This is needed for implementing the tar command utility which allows filtering and transforming an output (e.g. output numerical ids instead

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-21 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue21548] pydoc -k IndexError on empty docstring

2014-05-21 Thread Dima Tisnek
New submission from Dima Tisnek: While trying to track down another bug, I disabled some packages: [dima@bmg tmp]$ chmod a-x /usr/lib/python3.4/site-packages/speechd* Then ran pydoc -k: [dima@bmg tmp]$ pydoc3.4 -k n688954789 Traceback (most recent call last): File "/usr/bin/pydoc3.4", line 5

[issue14776] Add SystemTap static markers

2014-05-21 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I'd be fine with adapting the patch to support both systemtap and dtrace, however I have very little knowledge of dtrace and I don't have a machine to test it on. @jcea would you be willing to work on such patch with me? I'm sure we could work on thi