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

2012-03-23 Thread Toshihiro Kamishima
New submission from Toshihiro Kamishima : 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" method. --

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

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka 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 range(628): x,y=x-d*y,y+d*

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

2012-03-23 Thread Charles-François Natali
Charles-François Natali 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 __

[issue14393] Incorporate Guide to Magic Methods?

2012-03-23 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman : 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: Documentation messages: 156639

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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] http://hg.python.org/cpyt

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Georg Brandl
Georg Brandl 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 ___ Pytho

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > Georg Brandl 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 find out what is "pi" and "te

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

2012-03-23 Thread Nadeem Vawda
Nadeem Vawda 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 uses the b"".join() idiom

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Nadeem Vawda
Nadeem Vawda 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 I'm fine with that (and

[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 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 fix the problem. Makin

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

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka 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 replace it wi

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

2012-03-23 Thread Nadeem Vawda
Nadeem Vawda 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 += > data``, but not in

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

2012-03-23 Thread Eli Bendersky
Eli Bendersky 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 Python - 3.3 in

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

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

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

2012-03-23 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

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

2012-03-23 Thread Eli Bendersky
Eli Bendersky 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 added the comment: What is the status of this bug? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2012-03-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- stage: test needed -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2012-03-23 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

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

2012-03-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry about that. It should now be fixed. -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2012-03-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13968] Support recursive globs

2012-03-23 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2012-03-23 Thread Terry J. Reedy
Terry J. Reedy 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 ___ __

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

2012-03-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2012-03-23 Thread telmich
telmich 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, but this looks like a software coded

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

2012-03-23 Thread R. David Murray
R. David Murray 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 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 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 __

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

2012-03-23 Thread Antoine Pitrou
Antoine Pitrou 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 situations.

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

2012-03-23 Thread telmich
telmich 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 hope you understand that this is the cor

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

2012-03-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: http://hg.python.org/cpython/rev/0b960e41e533 Let's see how it goes. -- ___ Python tracker ___ _

[issue13210] Support Visual Studio 2010

2012-03-23 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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) a vs9to10.py file to

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

2012-03-23 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/540

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

2012-03-23 Thread poq
poq 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* different thou

[issue14393] Incorporate Guide to Magic Methods?

2012-03-23 Thread Benjamin Peterson
Benjamin Peterson 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 added the comment: ok -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue14243] NamedTemporaryFile unusable under Windows

2012-03-23 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- nosy: +jason.coombs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3581] failures in test_uuid

2012-03-23 Thread devurandom
devurandom 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 pass, uuid.getnod

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

2012-03-23 Thread Ezio Melotti
Ezio Melotti 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 tracker

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

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka 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 ___ Python tr

[issue7652] Merge C version of decimal into py3k.

2012-03-23 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-23 Thread Raymond Hettinger
Raymond Hettinger 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: +rhettinger ___

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

2012-03-23 Thread David Manowitz
David Manowitz 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 names, sys.exit and the Sys

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25007/bzip2_and_lzma_in_zip_3.patch ___ Python tracker ___ ___ Python-bug

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka 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 ___

[issue14394] missing links on performance claims of cdecimal

2012-03-23 Thread Stefan Krah
Stefan Krah 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 ___ Python tracker

[issue14366] Supporting bzip2 and lzma compression in zip files

2012-03-23 Thread Serhiy Storchaka
Serhiy Storchaka 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 only LZMA1 format, whi

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

2012-03-23 Thread Raymond Hettinger
Raymond Hettinger 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 adding special case logic unl

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

2012-03-23 Thread Parand Darugar
New submission from Parand Darugar : 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 % self.args TypeError:

[issue14318] clarify "may not" in time.steady docs

2012-03-23 Thread Jim Jewett
Jim Jewett 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 is. I had been ass

[issue14318] clarify "may not" in time.steady docs

2012-03-23 Thread STINNER Victor
STINNER Victor 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 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 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 with the structure

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

2012-03-23 Thread Adin Scannell
New submission from Adin Scannell : 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 wait()ing for the chi

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

2012-03-23 Thread Brian Curtin
Changes by Brian Curtin : -- 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