[issue9694] argparse: Default Help Message Lists Required Args As Optional

2010-08-28 Thread Steven Bethard
Steven Bethard added the comment: I think this is still really a feature request. We can't just change the text from "optional" - that would silently change a large number of help messages without any warning. So to fix this "bug", we're going to have to add an API to explicitly set the group

[issue9704] 3.2 - zlib.pc.in is missing in source tree

2010-08-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, I have now added these files in r84332. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9696] xdrlib's pack_int generates DeprecationWarnings for negative in-range values

2010-08-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9053] distutils compiles extensions so that Python.h cannot be found

2010-08-28 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5217] testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir

2010-08-28 Thread Éric Araujo
Changes by Éric Araujo : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9702] Python violates most users expectations via the modification differences of immutable and mutable objects in methods

2010-08-28 Thread R. David Murray
R. David Murray added the comment: This is not an appropriate discussion for the bug tracker. Please take it to the Python mailing list. -- ___ Python tracker ___ _

[issue9702] Python violates most users expectations via the modification differences of immutable and mutable objects in methods

2010-08-28 Thread david
david added the comment: On 28 August 2010 22:34, R. David Murray wrote: > > R. David Murray added the comment: > > This is not an appropriate discussion for the bug tracker.  Please take it to > the Python mailing list. Fair enough. One last comment though (here) - I think that making muta

[issue9702] Python violates most users expectations via the modification differences of immutable and mutable objects in methods

2010-08-28 Thread david
david added the comment: On 28 August 2010 22:41, david wrote: > > david added the comment: > > On 28 August 2010 22:34, R. David Murray wrote: >> >> R. David Murray added the comment: >> >> This is not an appropriate discussion for the bug tracker.  Please take it >> to the Python mailing

[issue2830] Copy cgi.escape() to html

2010-08-28 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file18636/issue2830.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2830] Copy cgi.escape() to html

2010-08-28 Thread Pablo Mouzo
Pablo Mouzo added the comment: I'm attaching a new patch without escaping the slash. -- Added file: http://bugs.python.org/file18667/issue2830.diff ___ Python tracker ___ ___

[issue1697175] winreg module for cygwin?

2010-08-28 Thread Brian Curtin
Changes by Brian Curtin : -- status: open -> languishing versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-li

[issue1111130] tkSimpleDialog broken on MacOS X (Aqua Tk)

2010-08-28 Thread R. David Murray
R. David Murray added the comment: I think we need a "vendor problem" resolution :) Closed as 'works for me' instead since that's effectively what Ned said. -- nosy: +r.david.murray resolution: -> works for me status: open -> closed ___ Python trac

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2010-08-28 Thread Brian Curtin
Brian Curtin added the comment: I'm not able to reproduce this. Do you have anything installed like pyreadline? -- assignee: ronaldoussoren -> nosy: +brian.curtin versions: -Python 2.6 ___ Python tracker

[issue2830] Copy cgi.escape() to html

2010-08-28 Thread Georg Brandl
Georg Brandl added the comment: The docs are still not updated for the quote. I wonder if we shouldn't make the second argument True by default, while we're at it (or ignore it altogether and always escape everything) -- it would make the escape() much safer to use. Also quoting "'" already

[issue9705] limit dict.update() to a given list of keys

2010-08-28 Thread Ultrasick
New submission from Ultrasick : my_dict_1 = {'a' : 1, 'b' : 1} my_dict_2 = {'a' : 2, 'b' : 2, 'c' : 2} my_dict_1.update(my_dict_2, ['a', 'c']) should result for my_dict_1: {'a' : 2, 'b' : 1, 'c' : 2} -- components: Interpreter Core messages: 115157 nosy: Ultrasick priority: normal sev

[issue1512791] module wave does no rounding

2010-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Neil. Committed to py3k in r84341. I'm a little reluctant to backport this to the maintenance branches, though, since it is a behaviour change, and it doesn't seem to me to be a critical bug fix. Any thoughts? -- resolution: -> fixed stage

[issue1512791] module wave does no rounding

2010-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: I also meant to add that I left the int() call in, for slightly obscure reasons: round doesn't currently return an int for all numeric types---it does for ints, floats and Decimal instances, but not for Fraction instances (arguably a defect of the fractions

[issue1512791] module wave does no rounding

2010-08-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9705] limit dict.update() to a given list of keys

2010-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please post to python-ideas first, and note a moratorium on builtin changes is inplace. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker

[issue9574] complex does not parse strings containing decimals

2010-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: Unassigning myself from this one, though I'll review a patch if anyone wants to write one. After thinking about it a bit, I'm -0 on allowing the extra whitespace. The main issue for me is that it opens up a can of worms about what should and shouldn't be al

[issue1512791] module wave does no rounding

2010-08-28 Thread Neil Tallim
Neil Tallim added the comment: I use the wave module a fair bit and never once encountered this issue, so, yeah, it's probably a pretty low priority for backporting. It's definitely an edge-case sort of thing, the likes of which anyone affected has already handled in their application-level c

[issue9574] complex does not parse strings containing decimals

2010-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: If someone does want to produce a patch, here's the grammar that I suggest, in pseudo BNF form. This would be reasonably simple to implement, and is also simple to describe. whitespace = ' ' | '\t' | '\n' | '\v' | '\f'# include other non-ASCII whitespac

[issue1512791] module wave does no rounding

2010-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the feedback. I'm going to make an executive decision not to backport. Closing. -- status: open -> closed ___ Python tracker __

[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Gregory. I've committed the patch in r84344 (py3k), r84345 (3.1) and r84346 (2.7). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue9706] ssl errors checking

2010-08-28 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : There are various errors I think ssl module should check. In the examples below I'll always refer to ssl.wrap_socket() function but I expect that ssl.SSLContext suffers the exact same issues. === server side mode === When server_side option is set to Tru

[issue9706] ssl errors checking

2010-08-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9705] limit dict.update() to a given list of keys

2010-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the usual way to spell this in Python is: my_dict_1.update((k, my_dict_2[k]) for k in ['a', 'c']) We try to keep filtering operations separate from map/fold operations for orthognality. -- nosy: +rhettinger

[issue9703] default param values

2010-08-28 Thread vladimir
vladimir added the comment: On Sat, Aug 28, 2010 at 12:34 AM, Georg Brandl wrote: changes parameter value. It' would be understandable, as exmple in documentation with acumulating value of L, that changing parameter in side class affect default value in next call. But this is out of mind. D

[issue9703] default param values

2010-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Rest assured: it's expected behavior. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Pyth

[issue9707] Reworked threading.local reference implementation

2010-08-28 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is a reworked reference implementation of _threading_local without the __del__ quirks. The _patch() ugliness is unfortunately still needed because of a doctest checking that derived __slots__ attributes aren't actually thread-local. Note that users ar

[issue9574] allow whitespace around central '+' in complex constructor

2010-08-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: complex does not parse strings containing decimals -> allow whitespace around central '+' in complex constructor ___ Python tracker ___

[issue4835] SIZEOF_SOCKET_T not defined

2010-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84347 (py3k) and r84348 (3.1). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 2.7 ___ Python tracker ___

[issue9706] ssl errors checking

2010-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > SSLError: _ssl.c:296: Both the key & certificate files must be > specified for server-side operation > > I would change this behavior in SSLSocket constructor and raise > ValueError if server_side is True and certfile is None. Good idea. > Also, the message

[issue9708] cElementTree iterparse does not support "parser" argument

2010-08-28 Thread Adrian Nye
New submission from Adrian Nye : The (python) ElementTree library began in 2.7 to support the "parser" argument, but cElementTree does not support it. Either cElementTree should support it, or the documentation should mention that it does not. -- components: XML messages: 115173 nosy:

[issue9708] cElementTree iterparse does not support "parser" argument

2010-08-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9574] allow whitespace around central '+' in complex constructor

2010-08-28 Thread Jervis Whitley
Jervis Whitley added the comment: I can write a documentation patch for this: http://docs.python.org/library/functions.html?highlight=complex#complex to highlight the expected format of the string argument. As others have pointed out here, there are a number of other options available to cor

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-08-28 Thread Chris Rebert
Chris Rebert added the comment: Adjusted patch per R. David's comment. I obviously think it should be a full red warning box (that's how it is in my patch), but my opinion clearly isn't an outside one. Also, Ping/Bump on finally getting this applied. -- Added file: http://bugs.python