[issue12581] Increased test coverage of test_urlparse

2011-07-17 Thread Petter Haggholm
New submission from Petter Haggholm : Some very trivial tests to increase the test coverage on test_urlparse a bit; also changed a single line to use an ABC instead of attempting to use len() to verify that an object is "sequence-like" (as the comment put it). Mostly I’m trying to get my feet

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-07-17 Thread Ned Deily
Ned Deily added the comment: There is now a patch in the Tcl pipeline for this problem. See: http://permalink.gmane.org/gmane.comp.lang.tcl.mac/6965 -- ___ Python tracker ___ _

[issue10271] warnings.showwarning should allow any callable object

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset eaefb34fc3a1 by Brett Cannon in branch 'default': Add Misc/NEWS entry and relevant doc change for issue 10271. http://hg.python.org/cpython/rev/eaefb34fc3a1 -- ___ Python tracker

[issue12576] urlib.request fails to open some sites

2011-07-17 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10271] warnings.showwarning should allow any callable object

2011-07-17 Thread Brett Cannon
Brett Cannon added the comment: Committed in 3.3. This cannot be backported as it widens the API and those could lead to subtle incompatibilities. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue10271] warnings.showwarning should allow any callable object

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset aaced3dcb858 by Brett Cannon in branch 'default': Make warnings accept a callable for showwarnings instead of http://hg.python.org/cpython/rev/aaced3dcb858 -- nosy: +python-dev ___ Python tracker

[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-07-17 Thread Ned Deily
Ned Deily added the comment: This appears to be a Windows-only issue; I'm not able to readily reproduce it on either Linux or OS X. Taking a quick look at diffs between 3.2 and 3.2.1, there aren't a lot of changes in IDLE (Lib/idlelib) and nothing obviously related. There are a number of ch

[issue12524] change httplib docs POST example

2011-07-17 Thread Bharadwaj
Bharadwaj added the comment: Newbie here. Please be patient. When I tried using the POST form in this page, I ran into minor issues. 1. The form returns a 302 to the actual issue page. Some other example with 200 may be better. 2. The params are a little weird, with '@' in the names. Might be

[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-17 Thread Julian
Changes by Julian : Removed file: http://bugs.python.org/file22681/format_map_err.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-17 Thread Julian
Julian added the comment: Added, updated the patch :). Thank you! -- Added file: http://bugs.python.org/file22683/format_map_err.patch ___ Python tracker ___ ___

[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-17 Thread Julian
Changes by Julian : Removed file: http://bugs.python.org/file22682/format_map_err.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-07-17 Thread Jeff Blaine
Changes by Jeff Blaine : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-07-17 Thread Jeff Blaine
Jeff Blaine added the comment: FWIW, this same problem exists with 2.7.1, compiled by myself, and only on some Solaris 10 boxes of ours that have not had a lot of recent patching. == On an old-ish Solaris 10 box: % /tmp/py271tes

[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-17 Thread Eric V. Smith
Eric V. Smith added the comment: I definitely agree it should be a ValueError. How about including in your patch adding your name to Misc/ACKS, if it isn't already there? I don't have your full name. I might play with the exception wording and add a few more comments. Thanks for your work on

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: No Python thread is ever fork safe because the Python interpreter itself can never be made fork safe. Nor should anyone try to make the interpreter itself safe. It is too complex and effectively impossible to guarantee. There is no general solution to this,

[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-17 Thread Julian
Julian added the comment: Well you're right :). I appreciate you taking more time to help me with this than you could have yourself. I made the change (and changed the TypeError to a ValueError as per your discovery that this was just a positional value issue, hope you agree with that). Ran

[issue12478] Possible error in HTTPErrorProcessor documentation

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 70983e8b114a by Senthil Kumaran in branch '3.2': Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response. http://hg.python.org/cpython/rev/70983e8b114a New changeset 04541e33364d by Senthil Kumaran in branch 'defau

[issue12579] str.format_map raises a SystemError for format strings with positional arguments

2011-07-17 Thread Eric V. Smith
Eric V. Smith added the comment: Changing the title to reflect the real problem. You get a SystemError even when using a mapping, if you have a format string with positional arguments: >>> '{}'.format_map({'a':0}) Traceback (most recent call last): File "", line 1, in SystemError: null argu

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Eric V. Smith
Eric V. Smith added the comment: I think the issue is that it should be an error in any string used for format_map() to have a positional argument. So the right thing to do is detect this case in get_field_object (index != -1 and args is NULL). So I think a new test near line 515 really is th

[issue12479] Add HTTPErrorProcessor class definition

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d64d47569cb by Senthil Kumaran in branch '3.2': Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi http://hg.python.org/cpython/rev/8d64d47569cb New changeset b2125a6deb96 by Senthil Kumaran in branch 'default'

[issue12441] _GLOBAL_DEFAULT_TIMEOUT remains as an object() in HTTPConnection and the connection hangs

2011-07-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Would you like to give an example snippet (server+client) which can help reproduce this behavior? -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker

[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Should information on Windows behavior, which you experienced be included too? How about - It uses :func:`os.rename` to perform the move. If that fails, for example because src and dst are on different filesystems or in case of Windows where rename cannot b

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Julian
Julian added the comment: Fair enough. I suppose I take .format_map to mean, here is a mapping, call __getitem__ on it for each of the keys inside the format string, to which calling 12["foo"] would get me a TypeError. I suppose I see both as appropriate, but the fact that it's implemented by

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Eric V. Smith
Eric V. Smith added the comment: I think KeyError for "{foo}".format(12) is correct. It's looking up "foo" in the empty dict of **kwargs. -- ___ Python tracker ___

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Julian
Julian added the comment: Sorry for the double post, meant to say, in line 506. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Julian
Julian added the comment: Yeah, I saw the line you suggested and didn't think that was it. To expand on this, perhaps "{foo}".format(12) should raise a TypeError as well? I'd expect that more than the current behavior which is a KeyError. That KeyError is getting raised in get_field_object, w

[issue11468] Improve unittest basic example in the doc

2011-07-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: I would be +1 if the basic example also highlights setUp and tearDown methods. Those are useful ones for a new comer to know via an example snippet and not just with explanation. -- nosy: +orsenthil ___ Python tra

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Eric V. Smith
Eric V. Smith added the comment: Actually that's probably not the place to catch it. Let me look at it closer. Of course, patches welcome! -- ___ Python tracker ___ ___

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Steve Holden added the comment: Sorry about that. I was using 3.1, as you will have gathered. -- status: open -> closed ___ Python tracker ___ __

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: The example is correct and runs as expected: >>> Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') Per the Whatsnew3.2 document: ''' The decimal.Decimal constructor now accepts float objects directly so there in no longer a nee

[issue4277] asynchat's handle_error inconsistency

2011-07-17 Thread Nir Soffer
Nir Soffer added the comment: The idea is good, but seems that error handling should be inlined into initiate_send. Also those 3 special exceptions should be defined once in the module instead of repeating them. -- nosy: +nirs ___ Python tracker

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger versions: +Python 3.3 -Python 3.1 ___ Python tracker ___

[issue1602133] non-framework built python fails to define environ properly

2011-07-17 Thread Andrew Dalke
Andrew Dalke added the comment: I confirm that under Python 2.7.2 while trying to build a 3rd-party package (from rdkit.org) I get the error Linking CXX shared library ../../lib/libRDBoost.dylib ld: warning: path '/usr/local/lib/libpython2.7.a' following -L not a directory Undefined symbols:

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Stefan Krah
Stefan Krah added the comment: Behavior for mixed operations varies greatly between Python versions. The first table over here lists the differences and should be valid for decimal.py: http://www.bytereef.org/mpdecimal/doc/cdecimal/index.html#floatoperation-signal As an extension, cdecimal h

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Changes by Steve Holden : -- components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
New submission from Steve Holden : We see in the "Quick-Start Tutorial" (py3k section 8.4.1) the following example: >>> Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') In actua; fact one would expect an exception from that code, which should perhaps instead read

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Eric V. Smith
Eric V. Smith added the comment: If you want to look at this, I think there's a missing check for args being non-null in string_format.h, line 515. I'd have to think to see if there are other possible failure scenarios. Thanks for the report. -- _

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1170] shlex have problems with parsing unicode

2011-07-17 Thread Doug Hellmann
Doug Hellmann added the comment: Right. Any program that needs to parse command lines containing filenames or other arguments with unicode characters will encounter this problem. -- ___ Python tracker

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12579] str.format_map raises a SystemError for non-mapping

2011-07-17 Thread Julian
New submission from Julian : Attached is just a failing test case (just `print("{}".format_map(12))`), haven't been able to decipher the chain of calls in the unicodeobject.c code yet to see where the best place to put the fix would be (inside do_format_map before the pass back upwards maybe?)

[issue7484] smtplib: verify breaks with Postfix servers

2011-07-17 Thread Catalin Iacob
Changes by Catalin Iacob : Added file: http://bugs.python.org/file22680/88b5c7ab7a03.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7484] smtplib: verify breaks with Postfix servers

2011-07-17 Thread Catalin Iacob
Catalin Iacob added the comment: I looked at the Felipe's patch and hopefully made some improvements. Unlike Felipe's patch I didn't change the reply of the SMTP server in the tests but instead use what VRFY and EXPN actually send to index the users and lists dictionaries. If <> would be sent

[issue12578] Erratic socket.gaierror: [Errno 11004] when using smtplib

2011-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds rather strange. There haven't been any significant changes in smtplib or the socket module between 2.7.1 and 2.7.2. -- nosy: +pitrou ___ Python tracker __

[issue12575] add a AST validator

2011-07-17 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12578] Erratic socket.gaierror: [Errno 11004] when using smtplib

2011-07-17 Thread David Ward
New submission from David Ward : When migrating from python 2.7.1 to 2.7.2 (or 3.2) I get unpredictable /erratic exceptions thrown on constucting smtplib.SMTP: socket.gaierror: [Errno 11004] getaddrinfo failed Here is the call stack: File "**\mail.py", line 41, in Mail server =

[issue10403] Use "member" consistently

2011-07-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10403] Use "member" consistently

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3935a1fb1db2 by Senthil Kumaran in branch '2.7': merge from 3.2 - Issue10403 - datetime module documentation changes based on review. http://hg.python.org/cpython/rev/3935a1fb1db2 -- ___ Python tracker

[issue10403] Use "member" consistently

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05f0ffe4e0b3 by Senthil Kumaran in branch '3.2': Fix Issue10403 - datetime documentation clarification based on review in the reitveld by Alexendar belopolsky. http://hg.python.org/cpython/rev/05f0ffe4e0b3 -- _

[issue11436] Clarify struct doc for format 's', when it is mentioned without numeric prefix

2011-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90cdf403132e by Senthil Kumaran in branch '3.2': Fix closes Issue11436 - Minor clarification to struct documentation for 's' format character. http://hg.python.org/cpython/rev/90cdf403132e -- nosy: +python-dev resolution: -> fixed stage:

[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-17 Thread Catalin Iacob
Catalin Iacob added the comment: Attached patch which clarifies that the copy fallback is used whenever os.rename fails not just for the different filesystems case. -- keywords: +patch Added file: http://bugs.python.org/file22679/clarify-shutil.move-docs.patch

[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-17 Thread Catalin Iacob
New submission from Catalin Iacob : I recently tried to answer the question: "When moving a file to a destination that is an already existing file, is the destination overwritten?" >From the current docs I understood that if src and dst are on the same >filesystem then os.rename is used, if th

[issue12381] refactor slice checks made by methods that take "slice like" arguments

2011-07-17 Thread anand jeyahar
anand jeyahar added the comment: I started working on this. But found sliceobject.c. Think it would be a good idea to add the refactored functions there. Anyway, i was trying to figure out the functionality of sliceobject.c. Can someone put up a use/test case example for it? Thanks for patien

[issue1170] shlex have problems with parsing unicode

2011-07-17 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: -cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1170] shlex have problems with parsing unicode

2011-07-17 Thread Santiago Romero
Santiago Romero added the comment: > It would be good to hear a strong argument from > the user that how did he end up passing > unicode to shlex.split? It is for parsing command > line args for programs and personally have not > seen those cases. I'm from Spain: I personally write programs an