[issue14417] dict RuntimeError workaround

2012-04-05 Thread STINNER Victor
STINNER Victor added the comment: > The difference is that it's a (presumably interruptible) infinite loop, > not a stack overflow. There's no crash and therefore no security issue. Ok, it looks fair. The patch looks good, but as written by Antoine: tests may need to be fixed. Is anyone motiv

[issue14386] Expose dict_proxy internal type as types.MappingProxyType

2012-04-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Victor] > You mean that I can remove it? No, it needs to stay there. Those concrete types aren't exposed to users but they are used inside to collections.abcs to register the types so that isinstance() will work as expected. Summary: The collections.abc m

[issue14508] gprof2html is broken

2012-04-05 Thread R. David Murray
R. David Murray added the comment: I'm getting 'malformed patch at line 30' when I try to apply your patch. Also, while it's not wrong, I don't think there's much point in catching the NameError and doing a fail. The second Exception clause is definitely wrong, though, we don't want other er

[issue14510] Regular Expression "+" perform wrong repeat

2012-04-05 Thread Ezio Melotti
Ezio Melotti added the comment: >>> re.findall(r'((?:\$.)+)', 'This $b$B is also a variable, but it\'s not >>> $B$b') ['$b$B', '$B$b'] -- assignee: -> ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Pyt

[issue14513] IDLE icon switched and switches on Windows taskbar

2012-04-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried again and 3.2.3rc2 is working. The IDLE icon appears and right clicking gives its title as IDLE (Python GUI). 3.3.0a2 is worse than I reported. The reason the icon changes to the pythonw icon is because that is what gets pinned, not IDLE. Right clicki

[issue14514] Equivalent to tempfile.NamedTemporaryFile that deletes file at context exit

2012-04-05 Thread R. David Murray
New submission from R. David Murray : A common pattern (especially in writing tests) is to create a named temporary file, operate on it with tools that take the filename, and then delete the file. This pattern would be facilitated by a version of NamedTemporaryFile that deleted the named file

[issue14507] Segfault with starmap and izip combo

2012-04-05 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2012-04-05 Thread R. David Murray
New submission from R. David Murray : The title pretty much says it all. I believe the behavior is correct (more useful than returning an object that is only useful for obtaining the name) even though it is unusual for context managers. In any case there is plenty of code using the existing

[issue12567] curses implementation of Unicode is wrong in Python 3

2012-04-05 Thread Ned Deily
Ned Deily added the comment: Nicholas, please open a new issue documenting which Python 3.3 you are using, from which python.org installer or the ./configure parameters if you built it yourself (and whether you supplied a version of GNU readline or used the Apple default of BSD libedit) and a

[issue14514] Equivalent to tempfile.NamedTemporaryFile that deletes file at context exit

2012-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: See also issue 14243. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14514] Equivalent to tempfile.NamedTemporaryFile that deletes file at context exit

2012-04-05 Thread R. David Murray
R. David Murray added the comment: Grr. I did a search first, and even used google because I know search is currently broken, and I did not find that issue. -- ___ Python tracker

[issue14243] NamedTemporaryFile unusable under Windows

2012-04-05 Thread R. David Murray
R. David Murray added the comment: See issue 14514 for an alternate proposal to solve this. I did search before I opened that issue, but search is currently somewhat broken and I did not find this issue. I'm not marking it as a dup because my proposal is really a new feature. -- no

[issue14492] pdeps.py has_key

2012-04-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9b8115c5b25 by R David Murray in branch '3.2': #14492: fix some bugs in Tools/scripts/pdeps.py. http://hg.python.org/cpython/rev/e9b8115c5b25 New changeset 26a7cc129b3d by R David Murray in branch 'default': Merge #14492: fix some bugs in Tools/sc

[issue14492] pdeps.py has_key

2012-04-05 Thread R. David Murray
R. David Murray added the comment: Thanks, Popa. I made some style changes to the tests, but otherwise used your patch. One small note: your might want to see about setting your editor to show whitespace at the ends of lines, or use the 'make patchcheck' command to check for whitespace. Ou

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-05 Thread Jim Jewett
Jim Jewett added the comment: On Thu, Apr 5, 2012 at 5:38 PM, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > Not sure what you're talking about. The doc patch is about unacquired > locks, not locks that someone else (another thread) holds. Isn't one common reason for not being a

[issue7057] tkinter doc: more 3.x updates

2012-04-05 Thread Ramchandra Apte
Ramchandra Apte added the comment: "Tkinter uses the Xlib library to draw graphics on the screen" should be "Tkinter uses the Xlib library on Linux to draw graphics on the screen" -- nosy: +ramchandra.apte ___ Python tracker

[issue7057] tkinter doc: more 3.x updates

2012-04-05 Thread Ned Deily
Ned Deily added the comment: The use of Xlib is not limited to Linux; most Unix-y platforms supported by Python have Xlib-based Tk versions available. But it is correct that there are Tk implementations that do not use X11 as their window server, for example, the native Tk implementations on

[issue14258] Better explain re.LOCALE and re.UNICODE for \S and \W

2012-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Well, I would like to correct this further and add clarification based on the current implementation (_sre.c) The definition of LOCALE Space is this - #define SRE_LOC_IS_SPACE(ch) (!((ch) & ~255) ? isspace((ch)) : 0) And the definition of NON_SPACE categor

[issue14508] gprof2html is broken

2012-04-05 Thread Éric Araujo
Éric Araujo added the comment: Should also use with statements IMO. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2012-04-05 Thread Éric Araujo
Éric Araujo added the comment: You may be able to code it entirely in the Python part of the module (adding a new parameter to Element.write and tostring). -- nosy: +eric.araujo ___ Python tracker ___

[issue14488] Can't install Python2.7.2

2012-04-05 Thread Éric Araujo
Éric Araujo added the comment: Can you try with 2.7.3? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list

<    1   2