[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-12 Thread Charles-François Natali
Changes by Charles-François Natali : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-12 Thread Charles-François Natali
Charles-François Natali added the comment: Indeed, that's a regression introduced by fix for issue #10527. Just a rounding error: """ --- Lib/multiprocessing/connection.py.orig 2013-04-13 06:27:57.0 + +++ Lib/multiprocessing/connection.py 2013-04-13 06:25:23.0 + @

[issue9253] argparse: optional subparsers

2013-04-12 Thread paul j3
paul j3 added the comment: This patch addresses both issues raised here: - throw an error when the subparser argument is missing - allow the subparser argument to be optional argparse.py: _SubParsersAction - add 'required=True' keyword. name(self) method - creates a name of the form {cmd

[issue13355] random.triangular error when low = high=mode

2013-04-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I haven't had a chance to look at this one yet and am reopening. The triangular code was originally written so that low and high could be reversed and it would still work. I don't want to break any code that might be relying on that. Andrew Svetlov, this

[issue17708] sys.flags.hash_randomization doesn't return correct value

2013-04-12 Thread Masami HIRATA
New submission from Masami HIRATA: OS: Windows 7 Starter Edition SP1 (32-bit) Python: 3.3.1 (python-3.3.1.msi) It seems that sys.flags.hash_randomization doesn't return correct value Output: C:\>set PYTHONHASHSEED=random C:\>C:\Python33\python.exe Python 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013

[issue1496278] Incorrect error message related to **kwargs

2013-04-12 Thread Paul Munday
Changes by Paul Munday : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1496278] Incorrect error message related to **kwargs

2013-04-12 Thread Paul Munday
Paul Munday added the comment: This wasn't fixed by the patch for #1283289. (Still true of at least 2.7.3 and 3.2.3) -- nosy: +tallpaul versions: +Python 2.7, Python 3.2 ___ Python tracker _

[issue16954] Add docstrings for ElementTree module

2013-04-12 Thread Eli Bendersky
Eli Bendersky added the comment: David, would you like to pursue this further (figuring out how to make docstrings show in help() without duplicating?) -- ___ Python tracker ___

[issue17670] Improve str.expandtabs() doc

2013-04-12 Thread Eli Bendersky
Eli Bendersky added the comment: I agree the doc could be clearer and Ned's example is very good. However I'd go one step forward and add a further elaboration of how the method works. This is the current doc (in default branch): Return a copy of the string where all tab characters are repla

[issue16575] ctypes: unions as arguments

2013-04-12 Thread Eli Bendersky
Eli Bendersky added the comment: I've opened a libffi issue in an attempt to get this fixed upstream: https://github.com/atgreen/libffi/issues/33 -- ___ Python tracker ___ ___

[issue12768] docstrings for the threading module

2013-04-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12768] docstrings for the threading module

2013-04-12 Thread Eli Bendersky
Eli Bendersky added the comment: Issue #17375 supersedes this one. Please post updated patches there. -- ___ Python tracker ___ ___ Py

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-12 Thread Sultan Qasim
Changes by Sultan Qasim : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-12 Thread Sultan Qasim
New submission from Sultan Qasim: This issue seems to be new in Python 3.3.1. This worked fine in Python 3.3.0 and earlier. I am using fully up-to-date installation of Arch Linux, running the official arch repo's 64 bit build of Python 3.3.1. This issue is probably a result of the changes to mu

[issue6696] Profile objects should be documented

2013-04-12 Thread Tom Pinckney
Tom Pinckney added the comment: Thanks everyone for helping me through my first python patch submission. -- ___ Python tracker ___ ___

[issue17704] ImportError: No module named '_curses'

2013-04-12 Thread Ned Deily
Ned Deily added the comment: Usually this kind of problem is caused by not having the necessary developer package of ncurses installed when building Python. The dev package includes the header files necessary for Python's curses module to build and link with libncurse{,w}. When you build Pyt

[issue17706] Segfault in PyErr_SetObject

2013-04-12 Thread Orion Poplawski
New submission from Orion Poplawski: I'm seeing a segfault running the scipy 0.12 tests against numpy 1.7.1 with python 3.3.1. The crash is here: test_ticket_1645 (test_lapack.TestRegression) ... Program received signal SIGSEGV, Segmentation fault. PyErr_SetObject (exception=exception@entry=,

[issue17705] Fill Character cannot be \0

2013-04-12 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6783] Add a builtin method to 'int' for base/radix conversion

2013-04-12 Thread R. David Murray
R. David Murray added the comment: Given an inconclusive python-ideas thread, Mark's -0, and the age of the issue, I'm going to close this. If someone wants to bring it up on python-ideas again, they can open an new issue if consensus is reached. -- nosy: +r.david.murray stage: -> co

[issue17686] Doc using/unix broken link (http://linuxmafia.com/)

2013-04-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Perhaps http://en.opensuse.org/Portal:Packaging is a good replacement. -- nosy: +akuchling ___ Python tracker ___ ___

[issue17665] convert test_wsgiref to idiomatic unittest code

2013-04-12 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13355] random.triangular error when low = high=mode

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed. Yuriy Senko, thanks for patch. But, please, be more accurate with tests for another one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue13355] random.triangular error when low = high=mode

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1062c66e9bdc by Andrew Svetlov in branch '2.7': Issue #13355: Raise ValueError on random.triangular call with invalid params. http://hg.python.org/cpython/rev/1062c66e9bdc -- ___ Python tracker

[issue15657] Error in Python 3 docs for PyMethodDef

2013-04-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: We should fix the code for 3.2 through 3.4, but change the docs for 3.2 and 3.3 to remove the parenthetical note. For 3.4 we can leave the parenthetical note but say this is new in 3.4 (or maybe, that it doesn't actually work in some versions < 3.4). I agre

[issue13355] random.triangular error when low = high=mode

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset c40e36a49033 by Andrew Svetlov in branch '3.3': Issue #13355: Raise ValueError on random.triangular call with invalid params. http://hg.python.org/cpython/rev/c40e36a49033 New changeset 613eb432b152 by Andrew Svetlov in branch 'default': Issue #1335

[issue17386] Bring Doc/make.bat as close to Doc/Makefile as possible

2013-04-12 Thread Zachary Ware
Zachary Ware added the comment: Here's a new patch to address Ezio's review comments, including more updates to Doc/README.txt, the addition of an 'htmlview' target to make.bat, and documentation of the 'htmlview' target in the Makefile usage message. -- Added file: http://bugs.python.

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2013-04-12 Thread Ankur Ankan
Changes by Ankur Ankan : -- nosy: +Ankur.Ankan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15657] Error in Python 3 docs for PyMethodDef

2013-04-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I just ran into this too. -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed for 3.3 and 3.4. As I see 2.7 has no this problem. Close the issue. Thanks for all. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 70c7687de1cd by Andrew Svetlov in branch '3.3': Issue #16658: add missing return to HTTPConnection.send(). http://hg.python.org/cpython/rev/70c7687de1cd New changeset 2b89e9a6b482 by Andrew Svetlov in branch 'default': Issue #16658: add missing retu

[issue17699] Fix test_getpass on Windows

2013-04-12 Thread Zachary Ware
Zachary Ware added the comment: Buildbots look happy (with test_getpass, anyway) and my machine is happy too. Thanks for the commit :) -- ___ Python tracker ___ ___

[issue17686] Doc using/unix broken link (http://linuxmafia.com/)

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do you know of a replacement, or should be just delete? -- nosy: +terry.reedy versions: +Python 3.4 ___ Python tracker ___ _

[issue17704] ImportError: No module named '_curses'

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: In general, 'Is this a bug' is better asked on python-list. In this particular case, I strongly suggest that. I have no idea which developer I might refer this to, and I am sure you will get a response from a 3.3 on linux user on the mailing list who will comp

[issue17676] spwd uses -1 for empty attributes

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docs for pwd and spwd modules specify that some items are strings and others are ints. Null strings should be '' and 'null' ints must be negative since 0 can be a valid item. It happens that all but 2 pwd items are strings and all but 2 spwd items are ints

[issue17667] Windows: build with "build_pgo.bat -2" fails to optimize python.dll

2013-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17670] Improve str.expandtabs() doc

2013-04-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: expandtabs() weirdness -> Improve str.expandtabs() doc ___ Python tracker ___ ___ Python-bugs-li

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread R. David Murray
R. David Murray added the comment: I don't think bin is included: > PATH= gzip bash: gzip: No such file or directory But you are right...unset seems to be equivalent to PATH= I could have sworn it acted different when I tried it, but I just ran it again and it it acted the same, which make

[issue17667] Windows: build with "build_pgo.bat -2" fails to optimize python.dll

2013-04-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +brian.curtin, tim.golden stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue17665] convert test_wsgiref to idiomatic unittest code

2013-04-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy stage: -> patch review title: convert to idiomatic unittest code -> convert test_wsgiref to idiomatic unittest code type: -> performance versions: -Python 3.2 ___ Python tracker

[issue17643] Expose weakref callback for introspection purposes.

2013-04-12 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, test.support.gc_collect looks useful. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue17647] subprocess.communicate() should preserve colored output on Windows

2013-04-12 Thread Caitlin Potter
Caitlin Potter added the comment: Sorry Terry, gmail hides it by default, didn't notice. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread Armin Rigo
Armin Rigo added the comment: Uh, confusion. Indeed, "PATH= foo" finds foo in the current directory on bash. I'm not sure how I ran the original example. It seems that a default PATH is used, which includes at least "/bin" and ".". The point I was making in the original post is still valid:

[issue17643] Expose weakref callback for introspection purposes.

2013-04-12 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I could mark the new test as cpython only, or add a gc.collect (but I'm > not sure if the latter is enough, either). test.support.gc_collect() should work on non-refcounted implementations. -- nosy: +sbt ___ Pyth

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the benchmarks after some changes: - smaller document to reduce runtimes - avoid measuring processing and serializing performance as part of the parsing benchmark - added an iterparse benchmark (iterparse can be important for e.g. XMPP implementa

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 723d7f134cf5 by Antoine Pitrou in branch 'default': Tweak etree benchmarks and add an etree_iterparse benchmark (followup to issue #17573). http://hg.python.org/benchmarks/rev/723d7f134cf5 -- ___ Python

[issue17647] subprocess.communicate() should preserve colored output on Windows

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Caitlin, when you reply by email, please snip the previous post as I have here, as it is already displayed directly above the reply on the website. -- ___ Python tracker

[issue17661] documentation of '%r' links to the wrong repr

2013-04-12 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think the style is so important, especially since this issue only affects 2.7. -- stage: -> needs patch type: -> enhancement ___ Python tracker ___

[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: A week's notice to push any almost ready IDLE bugfixes before the .rc's would be nice. (I am assuming there are some, but would have to ask Roger.) -- nosy: +terry.reedy ___ Python tracker

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbf5693d7013 by Antoine Pitrou in branch 'default': Issue #17573: add three elementtree benchmarks. Initial patch by Stefan Behnel. http://hg.python.org/benchmarks/rev/dbf5693d7013 -- nosy: +python-dev _

[issue17647] subprocess.communicate() should preserve colored output on Windows

2013-04-12 Thread Caitlin Potter
Caitlin Potter added the comment: A suggestion to work around this from #waf on freenode: http://codepad.org/1Y8K9e2m So it is probably not a big deal and can be wrapped up. But still it would be nice if Windows had native support for ANSI colours. On Fri, Apr 12, 2013 at 2:08 PM, Terry J. Reed

[issue17647] subprocess.communicate() should preserve colored output on Windows

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: We seem to agree that this is an OS+application issue, not a Python issue. I think the red FAILEDs would be nice for unittest (a possible separate issue). -- nosy: +terry.reedy resolution: -> invalid status: open -> closed

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Marc-André, does this patch work for you? -- keywords: +patch Added file: http://bugs.python.org/file29791/tstate_trashcan.patch ___ Python tracker

[issue17659] no way to determine First weekday (based on locale)

2013-04-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17659] no way to determine First weekday (based on locale)

2013-04-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- title: First weekday -> no way to determine First weekday (based on locale) ___ Python tracker ___ __

[issue17643] Expose weakref callback for introspection purposes.

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: > there are other tests in that test module that also rely on del resulting in > immediate cleanup I would mark them all as 'cpython-only', since they are. Other implementation must be omitting this test module, ignoring its failures, or patching out the spec

[issue17642] IDLE add font resizing hot keys

2013-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, cntl-+. cntl-- Could we use the tk event system by defining font change events and event handlers? -- nosy: +terry.reedy versions: -Python 3.1, Python 3.2 ___ Python tracker

[issue17705] Fill Character cannot be \0

2013-04-12 Thread Julian Berman
New submission from Julian Berman: The docs say: "The fill character can be any character other than ‘{‘ or ‘}’." http://docs.python.org/dev/library/string.html#format-specification-mini-language But: >>> "{0:\x01>8.2f}".format(12) '\x01\x01\x0112.00' whereas: >>> "{0:\x00>8.2f}".format(12)

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread Tom Vaughan
Tom Vaughan added the comment: Oh wow. That is not what I remembered/assumed about sh and PATH. Mind. Blown. -- ___ Python tracker ___ ___

[issue17675] show addresses in socket.__repr__

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e68bd20b5434 by Giampaolo Rodola' in branch 'default': attempt to fix bb failure as per http://bugs.python.org/issue17675#msg186595 http://hg.python.org/cpython/rev/e68bd20b5434 -- ___ Python tracker

[issue17653] fix typo in socketserver.rst

2013-04-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracke

[issue17653] fix typo in socketserver.rst

2013-04-12 Thread Roundup Robot
New submission from Roundup Robot: New changeset 26639365e62b by Ezio Melotti in branch '3.3': #17653: fix typo in socketserver docs. Patch by Tshepang Lekhonkhobe. http://hg.python.org/cpython/rev/26639365e62b New changeset 5118304a4c9c by Ezio Melotti in branch 'default': #17653: merge with 3

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset eead4be1bdd9 by Vinay Sajip in branch 'default': Closed #9556: Allowed specifying a time-of-day for a TimedRotatingFileHandler to rotate. http://hg.python.org/cpython/rev/eead4be1bdd9 -- nosy: +python-dev resolution: -> fixed stage: patch

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As mentioned earlier: this is the only way to cleanup extension > modules > in Python 2.x and the trash can patch broke this. Well, the doc clearly says "Since Python’s internal finalization will have completed before the cleanup function, no Python APIs shoul

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 12.04.2013 17:32, Antoine Pitrou wrote: > > Judging by the fact that the Py_AtExit funcs are called at the very end of > Py_Finalize (after absolutely everything has been cleaned up), I think you > shouldn't use any Python facilities at this point. As

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, why do you try to clean up the dictionary at this point? Any non-trivial deallocation code (e.g. __del__ method) will fail running. -- ___ Python tracker _

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Judging by the fact that the Py_AtExit funcs are called at the very end of Py_Finalize (after absolutely everything has been cleaned up), I think you shouldn't use any Python facilities at this point. -- ___ Python

[issue16482] pdb.set_trace() clobbering traceback on error

2013-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot to say that traced_frame.patch includes a test. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue16482] pdb.set_trace() clobbering traceback on error

2013-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The last patch proposed at issue 17277 and named traced_frame.patch fixes also issue 17697, and issues 7238, 16482. IMHO one should remove the assumption in PyFrame_GetLineNumber() that f_lineno is correct when f_trace is not NULL, as there does not seem to be a

[issue17704] ImportError: No module named '_curses'

2013-04-12 Thread Marco Buttu
New submission from Marco Buttu: Right now I downloaded and installed Python 3.3.1 on Linux Mint 14, with Cinnamon: $ uname -a Linux buttu-oac 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ python3.3 Python 3.3.1 (default, Apr 12 2013, 16:24:16)

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread R. David Murray
R. David Murray added the comment: Hmm. Although that argues that the original behavior was in fact correct. At least, the behavior of bash and zsh for me is that PATH= foo finds foo if it is in the local directory, contradicting the claim made in the original post. --

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread Tom Vaughan
Tom Vaughan added the comment: PATHONPATH=/tmp: will also be interpreted as "/tmp" and ".". Do the patches also address this case? PYTHONPATH=:/tmp and PYTHONPATH=/foo::/bar are also problematic. -- nosy: +tvaughan ___ Python tracker

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2013-04-12 Thread R. David Murray
R. David Murray added the comment: It may be problematic, but it is also consistent with the way the shell works in general. (Try the same things with PATH.) -- nosy: +r.david.murray ___ Python tracker __

[issue17697] Incorrect stacktrace from pdb

2013-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The call to set_trace() installs a local trace function on all the frames of the stack, including on the oldest frame, i.e. the module level frame. This causes the invocation of frame_settrace() in frameobject.c and the module frame f_lineno is evaluated by PyCo

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 12.04.2013 16:00, Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > >> At the time the Py_AtExit functions are called, the thread state is NULL > > I'd say this is the root cause. It's a bad thing to call Py_DECREF without a > t

[issue17700] Update Curses HOWTO for 3.4

2013-04-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch: * Correct the errors reported in the review. * Restore 3-space indents. * Mention the LINES and COLS variables. * Add more links to the final section. I believe everything in the howto also applies to 3.3; it would be fine if you w

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-12 Thread R. David Murray
R. David Murray added the comment: with self.assertRaises(KeyError) as cm: os.environ[missing] self.assertEqual(cm.excecption.args[0], missing) (I don't know why assertRaises returns itself rather than just returning the exception in the with, but that's the API). -- _

[issue17673] add `copy_from` argument to temporaryfile

2013-04-12 Thread Kyle Roberts
Kyle Roberts added the comment: I'm working on a patch for this. -- nosy: +kyle.roberts ___ Python tracker ___ ___ Python-bugs-list ma

[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2013-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am closing this as an Invalid issue. Please bring to discussion at python-dev if someone disagrees. Thank you! -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Andrew - Please go ahead with commit. I reviewed the patch and it looks good to me as well. It is a bug so it should be backported. Thanks for the patch and a good test, Jeff Knupp. Agree with your reasoning / lack of documentation on send behavior w.r.t to

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > At the time the Py_AtExit functions are called, the thread state is NULL I'd say this is the root cause. It's a bad thing to call Py_DECREF without a thread state. Was it the case in previous versions? -- nosy: +amaury.forgeotdarc

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think a solution to the problem would be to check _tstate for NULL and only use it if it is non-NULL - without threads you don't need to keep track of them ;-) -- ___ Python tracker

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: After a closer look at recent checkins, I found this checking for the trash can mechanism: 5a2ef447b80d (ticket #13992). This appears to be the cause: 1.20 #define Py_TRASHCAN_SAFE_BEGIN(op) \ 1.21 -if (_PyTrash_delete_nesting < PyTrash_UNWIND

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-12 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: A user reported a segfault when using our mxURL extension with Python 2.7.4. Previous Python versions do not show this behavior, so it's new in Python 2.7.4. The extension uses an Py_AtExit() function to clean up among other things a reference to a dicti

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-12 Thread STINNER Victor
STINNER Victor added the comment: > Is there a reason you are not using 'with assertRaises' in the test? The test is not testing the exception class, but the first argument of the exception. How do you test that using assertRaises()? Especially to check "err.args[0] is missing". -- ___

[issue6696] Profile objects should be documented

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cool! Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6696] Profile objects should be documented

2013-04-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: eric.araujo -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker

[issue6696] Profile objects should be documented

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd785c9d26c2 by Ezio Melotti in branch '3.3': #6696: add documentation for the Profile objects, and improve profile/cProfile docs. Patch by Tom Pinckney. http://hg.python.org/cpython/rev/cd785c9d26c2 New changeset 81dabc1feb52 by Ezio Melotti in b

[issue17688] Wrong signature for richcmpfunc in documentation

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker __

[issue17688] Wrong signature for richcmpfunc in documentation

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a263d40d1724 by Andrew Svetlov in branch '3.3': #17688: fix declaration for richcmp example in the docs. http://hg.python.org/cpython/rev/a263d40d1724 New changeset 4c996682d086 by Andrew Svetlov in branch 'default': #17688: fix declaration for rich

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-12 Thread R. David Murray
R. David Murray added the comment: Sounds fine to me. Is there a reason you are not using 'with assertRaises' in the test? -- ___ Python tracker ___

[issue17692] Fix test discovery for test_sqlite.py

2013-04-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue17692] Fix test discovery for test_sqlite.py

2013-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71c4234eb39f by Ezio Melotti in branch '3.3': #17692: test_sqlite now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/71c4234eb39f New changeset 4c73d4785829 by Ezio Melotti in branch 'default': #17692:

[issue16853] add a Selector to the select module

2013-04-12 Thread Charles-François Natali
Charles-François Natali added the comment: > If this goes inside the select module, it could probably help issue #17552 > (add socket.sendfile()) a bit. Yes, that's exactly the idea. See also the attached patches for telnetlib and multiprocessing (there would probably be other candidates like s

[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Sentil -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1298835] Add a vendor-packages directory for system-supplied modules

2013-04-12 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I'm strongly +1 on this one. I package Python RPMs for Fedora and I know what mess can come out of installing through both RPM and easy_install/pip. In Fedora, both Perl and Ruby use vendor specific dirs for installing RPM packaged modules and site sp

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-04-12 Thread Federico Schwindt
Federico Schwindt added the comment: Here's a slightly modified version of the patch that should work with python 2 and 3. -- Added file: http://bugs.python.org/file29789/openbsd-kqueue-001.patch ___ Python tracker

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-12 Thread STINNER Victor
STINNER Victor added the comment: "It is an interesting question whether or not its value in the exception should be considered a bug." I consider it as a bug because it is very surprising to have a different key on the error. Attached patch fixes the issue. -- keywords: +patch versio

[issue13405] Add DTrace probes

2013-04-12 Thread Tadas Barzdžius
Changes by Tadas Barzdžius : -- nosy: +Tadas.Barzdžius ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m