[issue11820] idle3 shell os.system swallows shell command output

2011-04-16 Thread kent
kent added the comment: I had kind of figured it might be something like this. I ran the following code in the xterm interpreter: >>> x=subprocess.call('ls') bin Documents eclipse local Pictures tmp workspace Desktop Downloads hamlib Music Templates Videos >>> print(x) 0 It

[issue11820] idle3 shell os.system swallows shell command output

2011-04-16 Thread kent
kent added the comment: The getoutput and getstatusoutput provide the expect output which can be captured >>> x=subprocess.getoutput('ls') >>> print(x) hs_err_pid28274.log LP4E-examples mydir.pth mydir.pth~ PP4E-Examples-1.2 ProgMan Python_dir Would it be a good thing to have the interpreter

[issue11806] Missing 2 hyphens in the docs

2011-04-16 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file21638/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11806] Missing 2 hyphens in the docs

2011-04-16 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file21643/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11806] Missing 2 hyphens in the docs

2011-04-16 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file21648/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11806] Missing 2 hyphens in the docs

2011-04-16 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file21654/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11806] Missing 2 hyphens in the docs

2011-04-16 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file21664/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11855] urlretrieve --> urlretrieve()

2011-04-16 Thread Boštjan Mejak
New submission from Boštjan Mejak : A typo in the docs was found here: http://docs.python.org/library/urllib.html#urllib.urlretrieve Two instances of the word "urlretrieve" need to be "urlretrieve()", as other instances of it are, with that fancy color and a link-like look. You know what I me

[issue11855] urlretrieve --> urlretrieve()

2011-04-16 Thread Eli Bendersky
Eli Bendersky added the comment: Agreed. Will fix -- keywords: +easy nosy: +eli.bendersky priority: normal -> low resolution: -> accepted versions: -Python 3.4 ___ Python tracker

[issue11855] urlretrieve --> urlretrieve()

2011-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3e0bc155ca2 by Eli Bendersky in branch '2.7': Issue #11855: Apply missing formatting for urlretrieve http://hg.python.org/cpython/rev/d3e0bc155ca2 -- nosy: +python-dev ___ Python tracker

[issue11855] urlretrieve --> urlretrieve()

2011-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6d9f9329070 by Eli Bendersky in branch '3.1': Issue #11855: Apply missing formatting for urlretrieve http://hg.python.org/cpython/rev/a6d9f9329070 New changeset 0f1199858714 by Eli Bendersky in branch '3.2': Issue #11855: merge from 3.1 http://hg.

[issue11856] Optimize parsing of JSON numbers

2011-04-16 Thread Antoine Pitrou
New submission from Antoine Pitrou : In Python 3.x, parsing JSON numbers involve calling PyLong_FromUnicode or PyFloat_FromString with an unicode object. These functions are quite costly because they call PyUnicode_TransformDecimalToASCII(). But JSON numbers are always pure ASCII. This patch d

[issue11855] urlretrieve --> urlretrieve()

2011-04-16 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: accepted -> fixed status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11856] Optimize parsing of JSON numbers

2011-04-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-16 Thread Nadeem Vawda
Nadeem Vawda added the comment: > So i finally did some tests using Nadeem's code snippet > from msg133677. The largest top(1) i ever got was >30477 python3 2.7 00:09.77 101877912M+ 240K > but the system is unusable then. The code I posted was only intended to

[issue11857] Hyphenate the argparse.rst file, patch added

2011-04-16 Thread Boštjan Mejak
New submission from Boštjan Mejak : Please apply this patch. And fix the occurences where you think the word "command line" acts as a noun. -- assignee: docs@python components: Documentation files: argparse.patch keywords: patch messages: 133893 nosy: Retro, docs@python, georg.brandl pr

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Yet another bug of Mac OS X: it sometimes creates messed up sparse regions: 14:00 ~/tmp/test $ ~/src/cpython/python.exe test_mmap.py .. 14:01 ~/tmp/test $ zsum32 py-mmap-testfile Adler-32 CRC-32 <78ebae7a> -- py-mmap-testfile 14:03 ~/tmp/test $ ./tes

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-04-16 Thread Westley Martínez
Westley Martínez added the comment: Can this patch be commited? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11277] test_zlib.test_big_buffer crashes under BSD (Mac OS X and FreeBSD)

2011-04-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, Apr 16, 2011 at 02:55:29PM +, Nadeem Vawda wrote: > I don't think it is necessary to further investigate the behaviour of > Snow Leopard's mmap() - we know that it's broken, and we have a fix. > > At the moment, we need someone to actually w

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-16 Thread Pink
New submission from Pink : configparser.ExtendedInterpolation in Python 3.2 has a bug that it will convert the section name in the interpolation to lowercase, and lead to an exception of NoSectionError if the section name has letters in uppercase. In fact it just cannot pass the test of the se

[issue11851] Flushing the standard input causes an error

2011-04-16 Thread Roger Binns
Roger Binns added the comment: I'm the APSW author. The reason why this apparent nonsense is done is due to using readline and completion. That requires being able to write to standard input when it is a terminal - something that Windows and Linux are happy to do. In any event I'll put a tr

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11856] Optimize parsing of JSON numbers

2011-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Cleaned up patch. -- Added file: http://bugs.python.org/file21686/jsonnumbers2.patch ___ Python tracker ___ ___

[issue11005] Assertion error on RLock._acquire_restore

2011-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here is a patch: Antoine, would you like to review it? > > -- > keywords: +patch > nosy: +pitrou > Added file: http://bugs.python.org/file21636/rlock_release_save.patch Well, it looks ok to me. Is the assert still needed? -- ___

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, it just seems that the sleep period is sometimes too low. Will commit a patch. -- ___ Python tracker ___ _

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88f1907fe312 by Antoine Pitrou in branch '3.2': Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. http://hg.python.org/cpython/rev/88f1907fe312 New changeset 0ecfa2ce6561 by Antoine Pitrou in branch 'default':

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue11857] Hyphenate the argparse.rst file, patch added

2011-04-16 Thread Boštjan Mejak
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file21682/argparse.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Santoso Wijaya
Santoso Wijaya added the comment: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class SetSub(set): ... def __init__(self, *args, **kwargs): ... print 'foo' ...

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11857] Hyphenate the argparse.rst file, patch added

2011-04-16 Thread Boštjan Mejak
Boštjan Mejak added the comment: Added the new and improved patch. Now it is perfect. Please apply it. -- Added file: http://bugs.python.org/file21687/argparse.patch ___ Python tracker

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-16 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2011-04-16 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11857] Hyphenate the argparse.rst file, patch added

2011-04-16 Thread Ezio Melotti
Ezio Melotti added the comment: Done in cc65cf9a9ce5, c33596e6f723, and fcce2f49ef6d. Thanks for the patch. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Py

[issue11855] urlretrieve --> urlretrieve()

2011-04-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue11700] mailbox.py proxy updates

2011-04-16 Thread R. David Murray
R. David Murray added the comment: Here's a patch that fixes the reported bug (calling close twice fails with an AttributeError) the simple way. Note that there was actually a test for the buggy behavior, which is rather odd considering that there is also a 'closed' method that would fail sim

[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-04-16 Thread Wojciech Wojtyniak
Wojciech Wojtyniak added the comment: Could you please at least describe the test that you mentioned (link doesn't work). I added line that passes skip_build from bdist.py to its subcommands and it worked for me (at least for simple cases) - base.py is not called. If bdist wouldn't call any i

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-16 Thread STINNER Victor
New submission from STINNER Victor : test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2: --- [250/354] test_io Exception in thread Thread-1316: Traceback (most recent call last): File "/usr/home/db3l/buildarea/3.x.bolen-freeb

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-16 Thread STINNER Victor
STINNER Victor added the comment: I already read somewhere that on FreeBSD, any thread can receive a signal, not only the main thread. I suppose that it should be the same on Linux, but Linux tries maybe to send a signal to the main thread if the main thread and other threads are calling a sy

[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-16 Thread STINNER Victor
STINNER Victor added the comment: One solution to fix this problem is to use pthread_sigmask() on the _read() thread to not handle SIGARLM. For example, the faulthandler uses the following code to not handle any thread in its timeout thread: #ifdef HAVE_PTHREAD_H sigset_t set; /* we

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Robert Burke
Robert Burke added the comment: I've only observed this in 2.6. Does 2.6 not belong in the bug's versions list if 2.7 is also affected? -- ___ Python tracker ___ _

[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-16 Thread STINNER Victor
STINNER Victor added the comment: Let's close this issue. I will reopen it if a timeout of 60 min was not the right choice to workaround this failure. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2011-04-16 Thread Hans Lellelid
Hans Lellelid added the comment: I'm having apparently the same issue when attempting to build an RPM (based on EPEL 2.6.5 SPEC) on CentOS 5.5 i386. A straight configure/make/make install will work fine, but when editing Modules/Setup.dist to enabled *shared* (and then uncommenting the module

[issue9041] raised exception is misleading

2011-04-16 Thread Meador Inge
Meador Inge added the comment: This problem still occurs in the main development branch. I think the 'PyErr_ExceptionMatches' check that Pauli suggested will work. The same problem exist for 'c_float', 'c_double', and 'c_longdouble'. Attached is a patch that fixes the issue and includes cov

[issue9651] ctypes crash when writing zerolength string buffer to file

2011-04-16 Thread Meador Inge
Meador Inge added the comment: This crash still occurs in the main development branch and Amaury's patch still fixes the problem. I verified that all tests pass on OS X 10.6.5. It should be OK to commit. -- assignee: theller -> nosy: +meador.inge -theller versions: +Python 2.7, Python

[issue11860] reference 2.3 has text that runs past the page

2011-04-16 Thread Mike Kamermans
New submission from Mike Kamermans : page 8 for the python 3.2 refernce document ("identifiers and keywords") has text that runs way past the page. This document (and probably every other document) should be run through LaTeX again with draft, to find all instances where text doesn't fit on th

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: 2.6 is closed for anything except security patches at this point. 2.7 is only open for flat-out bugs, not API changes. So, we might be able to add code that could call the __init__ method (if it exists) whenever a new set is created, but we couldn't chang

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2011-04-16 Thread Hans Lellelid
Hans Lellelid added the comment: Ok, I think I have tracked down the problem to a change that happened in site.py. In comparing against a build that worked fine for Python 2.6.5, I noticed that the Modules subdir (which contains the shared .so files) was present on the sys.path for Python 2.

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: If some code were added to call __init__ for the new instance of a set/frozenset subclass, it would have to make an assumption that the method's signature allowed it to be called without any arguments. -- ___ Py

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-16 Thread higery
Changes by higery : Removed file: http://bugs.python.org/file21667/test_sdist.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-16 Thread higery
higery added the comment: It may be just necessary to hack the write_manifest funtion in sdist.py- replace all '\' in MANIFEST with '/', thus it will not have other bad side effects, for instance, it would not change the content of self.filelist and people can also use '/' in MANIFEST templat