[issue14391] misc TYPO in argparse.Action docstring

2012-03-23 Thread Toshihiro Kamishima
New submission from Toshihiro Kamishima m...@kamishima.net: Keywords to specify as string type are incorrect. 'string' should be 'str' -- components: Library (Lib) files: argparse.py.patch keywords: patch messages: 156635 nosy: shima__shima priority: normal severity: normal status: open

[issue14392] type=bool doesn't raise error in argparse.Action

2012-03-23 Thread Toshihiro Kamishima
New submission from Toshihiro Kamishima m...@kamishima.net: According to the documentation of argparse.Action, a keyword 'bool' is not allowed for type argument, but it doesn't raise no errors. One possible way to fix this issue is to check in the argparse._ActionsContainer.add_argument

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: PyBench contains a lot of different tests and executes them not too long. Random fluctuations of a few percent are possible. We need a more stable realistic test working with floats. $ ./python -m timeit 'x,y,d=1,0,0.01 for i in

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: In any case, I'd appreciate, if cpython would be changed to something more sane/less verbose by default. By default, certainly not. -- ___ Python tracker rep...@bugs.python.org

[issue14393] Incorporate Guide to Magic Methods?

2012-03-23 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: Should we perhaps ask if we can include https://github.com/RafeKettler/magicmethods in the official docs? It seems nice (and now ranks higher on Google than the official docs...). -- assignee: docs@python components:

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: Looking at What's New section for cdecimal [1], I see this claim: Performance gains range from 12x for database applications to 80x for numerically intensive applications... But there's no link on the benchmark code. [1]

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It would be nice to have access to the benchmarks, yes, but I hope our users have enough trust in Python to believe this claim as it is. -- nosy: +georg.brandl priority: normal - low type: - enhancement

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Georg Brandl ge...@python.org added the comment: It would be nice to have access to the benchmarks, yes, but I hope our users have enough trust in Python to believe this claim as it is. Well, there's also curiosity. For example to

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: [Adding Alan McIntyre, who is listed as zipfile's maintainer.] I haven't yet had a chance to properly familiarize myself with the zipfile module, but I did notice an issue in the changes to ZipExtFile's read() method. The existing code

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I plan on doing a review of the patch, but it might be a week or two before I have time to do it. Regarding changes to lzma; exactly what is being proposed? If it's just additional functions for encoding and decoding of filter specs, then

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: So PyGame __init__.py has various not-a-module objects with __getattr__ that raises a NotImplementedError on every attribute access. Changing inspect to use getattr_static, so it doesn't trigger code execution on attribute access, would

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: The existing code uses the b.join() idiom for linear- time concatenation, but the patch replaces it with a version that does buf += data after each read. You made a mess. The existing code uses ``buf += data``, but I allowed myself to

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: You made a mess. The existing code uses ``buf += data``, but I allowed myself to replace it with the ``b.join()`` idiom. The bzip2 codec has to deal with large pieces of data, now this may be important. In read1 still used ``buf +=

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-03-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Hello, thanks for the patch! Since this is a new feature, I suggest discussion it on the python-ideas list first. Next, as for your patch: 1. What is ElementTree_new.py? 2. Note that new features have to be added to in-development versions of

[issue14349] The documentation of 'dis' doesn't describe MAKE_FUNCTION correctly

2012-03-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Patch attached. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file25002/issue14349.1.patch ___ Python tracker rep...@bugs.python.org

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-03-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 75268a773455 by Eli Bendersky in branch 'default': Issue #13782: streamline argument type-checking in ET.Element http://hg.python.org/cpython/rev/75268a773455 -- nosy: +python-dev

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-03-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Closing the issue. 3.3 was fixed, and there was no concensus regarding 2.7/3.2 in the list, so status-quo as usual. -- resolution: - fixed status: open - closed ___ Python tracker

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-03-23 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: What is the status of this bug? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13657 ___

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-03-23 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13782 ___ ___

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e35a5bbb0b91 by Giampaolo Rodola' in branch 'default': fix failing asyncore test as per http://bugs.python.org/issue10340#msg156586 http://hg.python.org/cpython/rev/e35a5bbb0b91 --

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Sorry about that. It should now be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10340 ___

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2012-03-23 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10131 ___ ___ Python-bugs-list

[issue13968] Support recursive globs

2012-03-23 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13968 ___ ___ Python-bugs-list

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-03-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: This is an issue, not a bug, and the status is as it was: unclear just what to do; would require some major work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13657

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2012-03-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13657 ___

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-23 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: Hello François, I'm confused about your statement: You prefer to throw random and useless error messages to users who are using python instead of doing a clean shutdown like every other application by default? Don't be offended,

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Better, but not stable: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.2/builds/984/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/998/steps/test/logs/stdio

[issue13210] Support Visual Studio 2010

2012-03-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Adding a patch to disable Side by Side assemblies in VS2010 (MS saw the light) -- keywords: +patch Added file: http://bugs.python.org/file25003/sxs.patch ___ Python tracker

[issue13210] Support Visual Studio 2010

2012-03-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a comprehensive patch to errnomodule.c, as used in production at CCP -- Added file: http://bugs.python.org/file25004/errnomodule.diff ___ Python tracker rep...@bugs.python.org

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Don't be offended, but this looks like a software coded by a 12 years old, who is proud about it and does not accept an error being an error and insists on doing it right, although it's a common understanding that throwing errors in non error

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-23 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: Antoine, let me explain again: I do not say, python should not print uncaught exceptions. My point here is that an exception is thrown, which is not catchable at all and this results in random and misleading errors. I really

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-23 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: http://hg.python.org/cpython/rev/0b960e41e533 Let's see how it goes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10340 ___

[issue13210] Support Visual Studio 2010

2012-03-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Adding a patch containing a proposed PCBuild10 folder. This consists of: 1) automatically updated .vcxproj and .sol files, provessed by 3) below 2) manually edited and new .props files to edit TargetName and Extension attributes 3)

[issue14314] logging smtp handler (and test) timeout issue

2012-03-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 113b8e3cbba4 by Vinay Sajip in branch '2.7': Closes #14314: backported fix. http://hg.python.org/cpython/rev/113b8e3cbba4 New changeset 54055646fd1f by Vinay Sajip in branch '3.2': Closes #14314: backported fix.

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-23 Thread poq
poq p...@gmx.com added the comment: No, the point is that the exception may be caused by a real bug and having the traceback is tremendously useful to debug such situations. [...] KeyboardInterrupt is not different in this regard from, say, ZeroDivisionError. KeyboardInterrupt *is*

[issue14393] Incorporate Guide to Magic Methods?

2012-03-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Someone would have to 1) determine if this a good idea 2) ask the author 3) actually perform the integration (that is determine how this would replace/complement things in reference/*). -- nosy: +benjamin.peterson

[issue4652] IDLE does not work with Unicode

2012-03-23 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: ok -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4652 ___ ___ Python-bugs-list

[issue14243] NamedTemporaryFile unusable under Windows

2012-03-23 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- nosy: +jason.coombs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list

[issue3581] failures in test_uuid

2012-03-23 Thread devurandom
devurandom devuran...@gmx.net added the comment: Well, without a valid MAC address the function cannot work... It should not break in such ugly way either, imo. On the other hand, I would not worry too much: uuid._ifconfig_getnode() is an internal function; and since all the other tests

[issue14361] No link to issue tracker on Python home page

2012-03-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Could you tell us something more (e.g. where you were expecting to find it, where have you looked, how/where have you found it eventually, what search queries you have used)? -- ___ Python

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Fixed regeression in decompression. Nadeem Vawda, we both were wrong. `buf += data` is noticeably faster `b''.join()` in CPython. -- Added file: http://bugs.python.org/file25006/bzip2_in_zip_3.patch

[issue7652] Merge C version of decimal into py3k.

2012-03-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f6d646e30028 by Stefan Krah in branch 'default': Issue #7652: Enable linking of _decimal.so against an installed libmpdec. http://hg.python.org/cpython/rev/f6d646e30028 --

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Usually, I would counsel against removing anything that isn't broken by design, but the code for these functions offers nothing substantive. So, +1 for marking as deprecated in 3.3 and removing in 3.4. -- nosy:

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2012-03-23 Thread David Manowitz
David Manowitz david.manow...@gmail.com added the comment: I don't see why this should be considered acceptable behavior. Why don't threads have their own ThreadExit exception, rather than overloading the use, and therefore, the meaning, of the SystemExit exception? As indicated by their

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file25007/bzip2_and_lzma_in_zip_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14366 ___

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: For EOS, please re-read the specification. Well, nothing prevents the setting of this bit. Lzma raw compressor already appends EOS. -- ___ Python tracker rep...@bugs.python.org

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: But there's no link on the benchmark code. I don't know if external links are appropriate in whatsnew, but this is it: http://www.bytereef.org/mpdecimal/quickstart.html -- nosy: +skrah ___

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Regarding changes to lzma; exactly what is being proposed? Yes, it's just additional functions for encoding and decoding of filter specs. But this is not necessary, the current implementation uses own functions (need the support of

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-23 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: FWIW, I'm -1 on making the change. Any memory savings would be microscopic for most Python programs. And anything that slows down float creation (even a teeny bit) is detrimental to all Python programs. We're better off not

[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-23 Thread Parand Darugar
New submission from Parand Darugar tdaru...@yahoo.com: Attempting to download a file with a % as part of the name (eg. test%sfile) , sftp.get fails with: File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py, line 328, in getMessage msg = msg %

[issue14318] clarify may not in time.steady docs

2012-03-23 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: (1) How does the user control (or even find out) which clock is used by time.steady()? If the answer is time.steady(clock=QueryPerformanceCounter) then there is no need for strict=?, but then I'm not sure what the point of time.steady itself

[issue14318] clarify may not in time.steady docs

2012-03-23 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: (2) That fragment from the C++ standard suggests that MAY NOT ought to have been replaced by the unambiguous MUST NOT. No. A program cannot deny the modification of system clock and time.steady() may use the system date.

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Instead of what's new, I think, linking the benchmarks in the docs could be helpful so that library users can find it they want to. I think, we have similar performance benchmark links at other places too. -- nosy: +orsenthil

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-03-23 Thread Ariel Poliak
Ariel Poliak apol...@gmail.com added the comment: To answer eli.bendersky's questions: 1. That's just the name of the file with my changes in it. I pulled the original file from Hg, copied it to ElementTree_new.py, made my changes, and created a patch from the two. 2. I'm not very familiar

[issue14396] Popen wait() doesn't handle spurious wakeups

2012-03-23 Thread Adin Scannell
New submission from Adin Scannell a...@scannell.ca: While running a complex python process that executes a bunch of subprocesses (using the subprocess module, specifically calling communicate()), I found myself with occasional zombie processes piling up. Turns out Python is not correctly

[issue14396] Popen wait() doesn't handle spurious wakeups

2012-03-23 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- keywords: +needs review nosy: +gps stage: - patch review versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14396