[issue19640] Drop _source attribute of namedtuple

2014-03-18 Thread Eric Snow
Eric Snow added the comment: It does not necessarily require a metaclass. You can accomplish it using a custom descriptor: class classattr: def __init__(self, getter): self.getter = getter def __get__(self, obj, cls): return self.getter(cls) FWIW, this is a descriptor

[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-18 Thread Marc Schlaich
Changes by Marc Schlaich marc.schla...@googlemail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20954 ___ ___

[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-03-18 Thread Marc Schlaich
Marc Schlaich added the comment: This was fixed in #19284 for Python 3.4 (without having possible consequences in mind). I have updated my patch accordingly. Maybe it's worth to port my test case to Python 3.4. Removed Python 3.3 as it isn't in bugfix maintenance anymore. --

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Removed file: http://bugs.python.org/file34467/Issue20112_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Removed file: http://bugs.python.org/file34469/Issue20112_py34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Removed file: http://bugs.python.org/file34468/Issue20112_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34481/Issue20112_py34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34482/Issue20112_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Anastasia.Filatova added the comment: Thank you, Eric for your comments! I see now what doese the 'review' link mean :) You are right the send_error should be a method not a class variable. I changed it in a new patch. As regards the responses I prefer don't change it to a class attribute

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34483/Issue20112_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20112 ___

[issue17110] sys.argv docs should explaining how to handle encoding issues

2014-03-18 Thread andy.ma
Changes by andy.ma andy.ju...@gmail.com: -- nosy: +andyma ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17110 ___ ___ Python-bugs-list mailing

[issue19640] Drop _source attribute of namedtuple (waste memory)

2014-03-18 Thread STINNER Victor
STINNER Victor added the comment: namedtuple_source.patch: Replace _source attribute wasting memory with a property generating the source on demand. The patch adds also unit test for the verbose attribute (which is public and documented, even it is said to be outdated). The patch removes

[issue20966] Documentation Link for Python Tkinter Resources is currently broken

2014-03-18 Thread andy.ma
New submission from andy.ma: The Python Tkinter Resources link(http://www.python.org/topics/tkinter/) resides in the topic of tkinter — Python interface to Tcl/Tk(http://docs.python.org/2/library/tkinter.html) is currently broken. It redirects to https://www.python.org/topics/tkinter/; which

[issue8813] SSLContext doesn't support loading a CRL

2014-03-18 Thread Christian Heimes
Christian Heimes added the comment: Yes, Python 3.4 can load and use CRLs. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___

[issue8813] SSLContext doesn't support loading a CRL

2014-03-18 Thread STINNER Victor
STINNER Victor added the comment: Yes, Python 3.4 can load and use CRLs. Great work Christian, I was expecting this feature since many years :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813

[issue8813] SSLContext doesn't support loading a CRL

2014-03-18 Thread Christian Heimes
Christian Heimes added the comment: It was *really* trivial. I just had to expose two simple OpenSSL APIs to enable / disable CRL. All versions of Python could already load the CRLs but CRL checks could not be enabled. -- ___ Python tracker

[issue8813] SSLContext doesn't support loading a CRL

2014-03-18 Thread STINNER Victor
STINNER Victor added the comment: It was *really* trivial. I just had to expose two simple OpenSSL APIs to enable / disable CRL. It was trivial thanks to all the work done before around SSLContext. For example, Python 2.7 doesn't have SSLContext, so adding support for CRL in Python 2.7 is

[issue11416] netrc module does not handle multiple entries for a single host

2014-03-18 Thread Berker Peksag
Berker Peksag added the comment: I've updated the tests to match the changes in issue 12009 and documentation a bit. -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.3 Added file: http://bugs.python.org/file34485/issue11416.diff ___ Python

[issue17462] argparse FAQ: how it is different from optparse

2014-03-18 Thread Anastasia.Filatova
Anastasia.Filatova added the comment: Now argparse documentation includes a paragraph about advantages of argparse module over optparse module. -- keywords: +patch nosy: +Anastasia.Filatova Added file: http://bugs.python.org/file34486/Issue17462_py27.patch

[issue17462] argparse FAQ: how it is different from optparse

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34487/Issue17462_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17462 ___

[issue17462] argparse FAQ: how it is different from optparse

2014-03-18 Thread Anastasia.Filatova
Changes by Anastasia.Filatova anastasia.n.filat...@gmail.com: Added file: http://bugs.python.org/file34488/Issue17462_py34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17462 ___

[issue20827] IDLE : Display function argument list in ClassBrowser

2014-03-18 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file34439/classbrowser-improvements-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20827 ___

[issue17462] argparse FAQ: how it is different from optparse

2014-03-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch, will apply. -- assignee: docs@python - eric.araujo stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17462

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread the mulhern
the mulhern added the comment: I feel that I worded this in a way that makes it look like I'm asking for an enhancement, not reporting a bug, so I'll try again. The documentation for 2.7.6 and 3.4.0 says: Using this decorator requires that the class’s metaclass is ABCMeta or is derived from

[issue20918] Logging of logging exceptions can fail in 3.4 if args are unprintable

2014-03-18 Thread the mulhern
the mulhern added the comment: Thanks for the fix. When you say having repr raise is a pretty unusual occurrence you probably mean having repr raise should be a pretty unusual occurrence. I think its more usual than you realize and the regression in 3.4 will have consequences. --

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hello. In 3.3 you can instantiate META class, because it does not properly say that it wants abc.ABCMeta as a metaclass. For this, you have to write your class as such: class META(metaclass=abc.ABCMeta): @abc.abstractmethod def _junk(self): ...

[issue7980] time.strptime not thread safe

2014-03-18 Thread Romuald Brunet
Changes by Romuald Brunet romuald.bru...@gmail.com: -- nosy: +Romuald ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7980 ___ ___ Python-bugs-list

[issue20967] hashlib memory leak

2014-03-18 Thread Adrian Teng
New submission from Adrian Teng: A particular usage pattern of hashlib will cause a memory leak. This leaks: import hashlib import sys if __name__ == '__main__': data_sha1 = hello world data_md5 = hello world for i in xrange(int(1e6)): hashlib.sha1(data_sha1)

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread R. David Murray
R. David Murray added the comment: The fact that you say the method is _junk(self) and say the other classes don't override it makes me think you are thinking that methods with the same name are different from a subclasses perspective if they have different signatures. In Python this is not

[issue19009] Enhance HTTPResponse.readline() performance

2014-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review - commit review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19009 ___

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-18 Thread Johannes Baiter
New submission from Johannes Baiter: It seems that when creating a MagicMock the magic '__truediv__' method is not replaced with a mock: import mock foo = mock.MagicMock() foo / 2 Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread Eric Snow
Eric Snow added the comment: Both abstractnethod and abstractproperty work by setting __isabstractmethod__ to True on the decorated function. Then type.__new__ looks for any attributes of the current class (including inherited ones) that have __isabstractmethod__ set to True. The signature

[issue20966] Documentation Link for Python Tkinter Resources is currently broken

2014-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset be1e015a8405 by Zachary Ware in branch '2.7': Issue #20966: Fix Tkinter Resources link http://hg.python.org/cpython/rev/be1e015a8405 New changeset f28f63c5d30a by Zachary Ware in branch '3.4': Issue #20966: Fix Tkinter Resources link

[issue20966] Documentation Link for Python Tkinter Resources is currently broken

2014-03-18 Thread Zachary Ware
Zachary Ware added the comment: Fixed, thanks for the report! -- nosy: +zach.ware type: resource usage - behavior versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20966

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread Eric Snow
Eric Snow added the comment: Oops, typos. Both abstractmethod and abstractproperty work by setting __isabstractmethod__ to True on the decorated function. Then type.__new__ That should be type.__call__ or object.__new__, I don't remember which. looks for any attributes of the current class

[issue20918] Logging of logging exceptions can fail in 3.4 if args are unprintable

2014-03-18 Thread R. David Murray
R. David Murray added the comment: Did you reopen the issue accidentally? The bug has been fixed. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20918 ___

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-18 Thread Johannes Baiter
Johannes Baiter added the comment: Attached is a patch that fixes the issue for me. -- keywords: +patch Added file: http://bugs.python.org/file34490/mock_truediv.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20968

[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-03-18 Thread Christian Clauss
New submission from Christian Clauss: http://docs.python.org/3/download.html has an EPUB version of the Python docs but the Author of the document is set to Unknown so this text appears on the cover page and is repeated on the top of every other page throughout the document (in the iBooks app

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-18 Thread Johannes Baiter
Johannes Baiter added the comment: I just noticed that I put the magic method names in the wrong place in the patch. Attached is a fix that adds 'truediv' to the global 'numberics' variable, this way '__rtruediv__' and '__itruediv__' will be correctly mocked as well. -- Added file:

[issue20746] test_pdb fails in refleak mode

2014-03-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_statistics also defines a load_tests() function that builds unittest tests from doctests with doctest.DocTestSuite() and also fails in refleak mode. The above regrtest.diff patch also fixes the test_statistics in refleak mode. --

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread R. David Murray
R. David Murray added the comment: Or, in 3.4, class META(abc.ABC). OK, since Eric agrees that this is python-ideas material, we'll close this issue for now. If you get consensus for it on python-ideas, the issue can be reopened (or a new one started, whichever turns out to be appropriate).

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: Is this really only 3.4? Since it is security-related, it seems like it should be at least considered for older versions as well. -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org

[issue16043] xmlrpc: gzip_decode has unlimited read()

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: I'm putting it back to release blocker, because 3.3 should decide whether to fix it/call it security/remove itself from the list. The patch contains several small changes. I like the spelling fix (gsip - gzip) in a test method, but otherwise, I prefer the

[issue20967] hashlib memory leak

2014-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce your issue with Python 2.7.5: $ python memoryleak_min.py [256720896.0, 15740928.0, 139264.0] [256724992.0, 15962112.0, 139264.0] [256724992.0, 15966208.0, 139264.0] [256724992.0, 15966208.0, 139264.0] (...) [256724992.0, 15966208.0,

[issue20967] hashlib memory leak

2014-03-18 Thread Adrian Teng
Adrian Teng added the comment: Python 2.7.3, Red Hat Enterprise Linux Server release 5.5, with kernal 2.6.18-308.el5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20967 ___

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: What is the status here? As best I can tell from a skim, (a) It should be broken into at least three separate issues. (Though maybe some can just be closed instead of separated?) (b) None of them are security holes, so we missed 2.5 and 2.6, and should now

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: I am changing this from High to Release blocker, because I think 3.3 should make an explicit decision about whether to remove itself from the Affected Versions list. 3.4 probably should too, since it is now in bug-fix mode. Then this issue can go back to

[issue20967] hashlib memory leak

2014-03-18 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7.3, Red Hat Enterprise Linux Server release 5.5, with kernal 2.6.18-308.el5 So your version is older than mine. Let me check Misc/NEWS... Oh... Issue #15219: Fix a reference leak when hashlib.new() is called with invalid parameters. in the What's

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-03-18 Thread STINNER Victor
STINNER Victor added the comment: I am changing this from High to Release blocker, because I think 3.3 should make an explicit decision about whether to remove itself from the Affected Versions list. I don't understand. Which release does it block? There is no scheduled release in short

[issue1508475] transparent gzip compression in urllib

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: This is an enhancement, so I am changing the affected version from 3.3 to 3.5. It is python-only, which works well with the cheeseshop. That said, the patch is truly short; if that is really sufficient, it could almost go into the documentation as a recipe.

[issue11352] Update cgi module doc

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: What is the status of this? Have any of the changes been applied? Are any of the other patches still appropriate? Is this now dependent on any other issues/any non-doc updates? -- nosy: +Jim.Jewett ___ Python tracker

[issue20827] IDLE : Display function argument list in ClassBrowser

2014-03-18 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: The old file had a typo and i have removed it. The new file does everything stated in msg213722 and also has the errors removed. I have added tests for the little change in code to pyclbr.its called test_string_source. All the tests related to pyclbr pass

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch adds new public APIs (C macros), I don't think it should be committed to the maintenance branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20440

[issue20853] pdb args crashes when an arg is not printable

2014-03-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: There is at least one other place (do_break) where this same problem could crop up. Also in do_retval. And the exception is silently ignored in do_p and do_pp when repr() fails, which is not correct. A solution could be to have a message_safe method to be

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread Aaron Meurer
New submission from Aaron Meurer: I hope it's OK to report documentation issues on this tracker. Reading http://docs.python.org/3.4/library/argparse.html#prog I had to do a double take. The documentation states, By default, ArgumentParser objects uses sys.argv[0] to determine how to display

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-03-18 Thread Larry Hastings
Larry Hastings added the comment: Yeah, I'm not accepting this for 3.4 at this point, and I bet the other RMs feel the same way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20440 ___

[issue13697] python RLock implementation unsafe with signals

2014-03-18 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13697 ___ ___ Python-bugs-list

[issue16329] mimetypes does not support webm type

2014-03-18 Thread Chris Rebert
Chris Rebert added the comment: So, nobody seems to have cared enough about the policy change to weigh in during the intervening year and ~3mos... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16329

[issue13212] json library is decoding/encoding when it should not

2014-03-18 Thread Chris Rebert
Chris Rebert added the comment: FWIW, I’m +1 for a doc section about how to achieve strict mode with special arguments and callbacks (if the recent doc patch does not already have that) The docs added by that patch do indeed cover this:

[issue20971] HTML output of difflib

2014-03-18 Thread Jasvir Singh
New submission from Jasvir Singh: HTML output of python difflib is in HTML1 which is outdated now. I am working on updating this library and I'll submit a patch as soon as possible. -- components: Library (Lib) messages: 213992 nosy: Jasvir.Singh priority: normal severity: normal

[issue11362] image/webp missing from mimetypes.py

2014-03-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - mimetypes does not support webm type ___ Python tracker rep...@bugs.python.org

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-03-18 Thread Georg Brandl
Georg Brandl added the comment: Yes, this is new feature territory. -- priority: release blocker - high versions: +Python 3.5 -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20440

[issue20971] HTML output of difflib

2014-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: This is a new feature, so it can go only in 3.5. Updating the generated HTML sounds like a good idea, however we must consider if this might cause any problems related to backward compatibility. If you are going to do this, please use (valid) HTML5. --

[issue19316] devguide: compiler - wording

2014-03-18 Thread Nitika Agarwal
Nitika Agarwal added the comment: Hi, http://docs.python.org/devguide/compiler.html Is this the link of the devguide that needs to be updated? -- nosy: +nitika ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19316

[issue19316] devguide: compiler - wording

2014-03-18 Thread Éric Araujo
Éric Araujo added the comment: Yes, it’s that file. The source is compiler.rst in this repository: http://hg.python.org/devguide -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19316

[issue20967] hashlib memory leak

2014-03-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20967 ___ ___ Python-bugs-list mailing list

[issue20971] HTML output of difflib

2014-03-18 Thread Jasvir Singh
Jasvir Singh added the comment: Why we can't add this in 2.7? Major projects and OS supporting 2.7 now and I am updating this because I am need of feature for 2.7. Can't we do it like release new version with new name(or something like). If one wants to download it, he/she can download using

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread R. David Murray
R. David Murray added the comment: You missed the part where it says no matter where it is called from. That is, the path is stripped off. The sentence could be changed to emphasize that (the :ref:`~os.basename` of sys.argv[0]). The backslash is indeed a bit odd and probably should be

[issue19316] devguide: compiler - wording

2014-03-18 Thread Nitika Agarwal
Nitika Agarwal added the comment: I am able to find some errors in the link i just gave in the previous message, so should i submit a patch highlighting those errors ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19316

[issue18144] FD leak in urllib2

2014-03-18 Thread Claudio Freire
Claudio Freire added the comment: I can confirm the issue is in urllib's open: it fails to close() the HTTP connection, leaving it to the GC to do it. If addinfourl (and friends) is altered to carry a reference to the HTTP connection and close it on close(), the leak is fixed. I have a patch

[issue19316] devguide: compiler - wording

2014-03-18 Thread Éric Araujo
Éric Araujo added the comment: The task here is to work from Ezio’s patch* and edit it to take into account Terry’s replies and your own opinions about what wording is best. * http://docs.python.org/devguide/faq.html#how-do-i-apply-a-patch -- ___

[issue20972] python34.dll not in System32 or SysWOW64 folders after install python-3.4.0.amd64.msi

2014-03-18 Thread Mikhail
New submission from Mikhail: The Windows x86-64 MSI Installer (python-3.4.0.amd64.msi, python-3.3.4.amd64.msi...) does not install python3X.dll in windows\system32 or windows\SysWOW64 folder. I select an option install for all users Windows 7 64 bit (The Windows x86 MSI installer works

[issue19640] Drop _source attribute of namedtuple (waste memory)

2014-03-18 Thread Eric Snow
Eric Snow added the comment: Also be sure the have Raymond's sign-off before committing anything for this. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19640 ___

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please try this patch. Perhaps it fixes audioop issues. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file34493/audioop_signed_left_shift.patch ___ Python tracker

[issue20971] HTML output of difflib

2014-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: Yes, you could make patches for Python 3.5 and release a PyPI package that includes these changes and it's compatible with older versions. The same has been done for other modules as well (e.g. unittest2 includes features that are available on recent versions

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2014-03-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: No, it still gives /home/benjamin/dev/python/3.4/Modules/audioop.c:1811:9: runtime error: left shift of negative value -22 /home/benjamin/dev/python/3.4/Modules/audioop.c:1811:9: runtime error: left shift of negative value -22

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-18 Thread A.M. Kuchling
A.M. Kuchling added the comment: The bug got so complicated, with so many variations and failure modes, that I just lost track of what to do next. Let's reboot. Problem #1 is that the single-file mailboxes subvert their own fcntl locking by writing to a temp. file and renaming; David's

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-18 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1599254 ___

[issue18931] new selectors module should support devpoll on Solaris

2014-03-18 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- Added file: http://bugs.python.org/file34494/devpoll2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18931 ___

[issue19316] devguide: compiler - wording

2014-03-18 Thread Nitika Agarwal
Nitika Agarwal added the comment: -This document does not touch on how parsing works beyond what is needed to explain what is needed for compilation. It is also not exhaustive in terms of the how the entire system works. You will most likely need to read some source to have an exact

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20970 ___ ___ Python-bugs-list

[issue19662] smtpd.py should not decode utf-8

2014-03-18 Thread R. David Murray
R. David Murray added the comment: I propose that we add a new keyword argument to SMTP's __init__, 'decode_data'. This would be set to True by default, and would preserve the current behavior of passing utf-8 decoded data to process_message. Setting it to True would mean that

[issue20971] HTML output of difflib

2014-03-18 Thread Jasvir Singh
Jasvir Singh added the comment: Ok Ezio Melotti, I'll start working on it :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20971 ___ ___

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread paul j3
paul j3 added the comment: Yes, the documentation is accurate but a bit vague. It doesn't say how 'it uses sys.arg[0]'. The example implies it uses 'basename'. So the question is, whether that implementation detail should be more explicit? -- nosy: +paul.j3

[issue7980] time.strptime not thread safe

2014-03-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: This bug has not been fixed in 2.7.6 on OSX 10.9.2. -- nosy: +matrixise ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7980 ___

[issue7980] time.strptime not thread safe

2014-03-18 Thread Romuald Brunet
Romuald Brunet added the comment: This is a patch attempt to fix issue: import the _strptime module at time / datetime module load instead of method call. Please note that the test is not fully reliable: it may pass without the patch / on current version, since threaded execution isn't

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread R. David Murray
R. David Murray added the comment: I didn't mean the basename reference as exposing an implementation detail (I didn't look) but rather as a shorthand for explaining what regardless of where the program was invoked from means. -- ___ Python tracker

[issue18931] new selectors module should support devpoll on Solaris

2014-03-18 Thread Charles-François Natali
Charles-François Natali added the comment: Could you regenerate it without --git (it doesn't show under the review tool)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18931 ___

[issue20973] Implement proper comparison operations for in _TotalOrderingMixin in ipaddres module.

2014-03-18 Thread Auke Willem Oosterhoff
New submission from Auke Willem Oosterhoff: The comparison methods of _TotalOrderingMixin don't have nice implementation. Some of them raises a NotImplementedError. A few aren't covered in the tests. The comment suggests that these methods has been implemented this way because of issue 10042

[issue20973] Implement proper comparison operations for in _TotalOrderingMixin in ipaddress module.

2014-03-18 Thread Auke Willem Oosterhoff
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com: -- title: Implement proper comparison operations for in _TotalOrderingMixin in ipaddres module. - Implement proper comparison operations for in _TotalOrderingMixin in ipaddress module. ___

[issue20974] email module docs say not compatible with current python version

2014-03-18 Thread Jim Jewett
New submission from Jim Jewett: http://docs.python.org/3.4/library/email.html#package-history The table ends with email version 5.1, distributed with Python 3.2, and compatible with Python 3.0 to 3.2. Since Python 3.3 and 3.4 also distribute 5.1.0, I'm betting that the actual compatibility

[issue20062] Should the devguide document emacs/vim support?

2014-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Ezio. Also, editor support is a moving target, and our guidelines may actually become obsolete. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20062

[issue20491] textwrap: Non-breaking space not honored

2014-03-18 Thread dani
dani added the comment: changed honor-non-breaking-spaces.patch: used \N{NO-BREAK SPACE} instead of \xa0 added test for \N{NARROW NO-BREAK SPACE} -- nosy: +dbudinova Added file: http://bugs.python.org/file34497/new_textwrap.patch ___ Python tracker

[issue18144] FD leak in urllib2

2014-03-18 Thread Martin Panter
Martin Panter added the comment: Does the fix for Issue 12692 work for you? Namely this revision http://hg.python.org/cpython/rev/92656b5df2f2. It was backported to C Python 3.3.4 as I understand. -- ___ Python tracker rep...@bugs.python.org

[issue17110] sys.argv docs should explaining how to handle encoding issues

2014-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, I'm not sure where those explanations belong but I'm not sure should be in the sys module docs (especially as they are quite lengthy, and they also apply to other data such as os.environ). Perhaps the Unicode HOWTO? --

[issue18931] new selectors module should support devpoll on Solaris

2014-03-18 Thread Yury Selivanov
Yury Selivanov added the comment: Why there is no 'review' link for the new patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18931 ___ ___

[issue20972] python34.dll not in System32 or SysWOW64 folders after install python-3.4.0.amd64.msi

2014-03-18 Thread Mikhail
Mikhail added the comment: Python installation log included. MSI (s) (48:2C) [01:28:13:006]: Executing op: SetTargetFolder(Folder=C:\Windows\system32\) MSI (s) (48:2C) [01:28:13:006]: Executing op: SetSourceFolder(Folder=1\) MSI (s) (48:2C) [01:28:13:006]: Executing op:

[issue20906] Issues in Unicode HOWTO

2014-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed. How about In documentation such as the current article... It's better, but how about simply In this article? I concur with reducing unnecessary abstraction. No sure what you mean by true form. Do you mean show the glyph which the code point

[issue20062] Remove emacs page from devguide

2014-03-18 Thread Éric Araujo
Éric Araujo added the comment: Alright. -- keywords: +easy title: Should the devguide document emacs/vim support? - Remove emacs page from devguide ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20062

[issue18931] new selectors module should support devpoll on Solaris

2014-03-18 Thread Guido van Rossum
Guido van Rossum added the comment: review links are only generated for patches that apply cleanly (I don't know to which branch) On Tue, Mar 18, 2014 at 2:37 PM, Yury Selivanov rep...@bugs.python.orgwrote: Yury Selivanov added the comment: Why there is no 'review' link for the new patch?

  1   2   >