[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2014-03-27 Thread Ethan Furman
Ethan Furman added the comment: PEP 461 has been accepted. I'll look over the code soon. -- assignee: -> ethan.furman ___ Python tracker ___ ___

[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-27 Thread Ethan Furman
Changes by Ethan Furman : Added file: http://bugs.python.org/file34648/issue1615.stoneleaf.01.patch ___ Python tracker ___ ___ Python-bugs-list

[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-27 Thread Ethan Furman
Changes by Ethan Furman : Removed file: http://bugs.python.org/file34647/issue1615.stoneleaf.01.patch ___ Python tracker ___ ___ Python-bugs-li

[issue1615] PyObject_GenericGetAttr suppresses AttributeErrors in descriptors

2014-03-27 Thread Ethan Furman
Ethan Furman added the comment: Results from the first two tests in my test script: -- 'WithOut' object has no attribute 'not_here' looking up not_here looking up huh 'With' object has no attribute 'not_here' -- stage: test needed -> patch

[issue17654] IDLE only customizes correctly for OS X when using framework build

2014-03-27 Thread Ned Deily
Ned Deily added the comment: Thanks for the review, Terry. The reasons for moving the menders changes are two. As noted in the comments, the menudefs were being customized early in IDLE initialization before calling Tk to create the root object and, therefore, we did not know at that point wh

[issue17654] IDLE only customizes correctly for OS X when using framework build

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset f551740c26b6 by Ned Deily in branch '2.7': Issue #17654: Ensure IDLE menus are customized properly on OS X for http://hg.python.org/cpython/rev/f551740c26b6 New changeset 67a7a49e7b78 by Ned Deily in branch '3.4': Issue #17654: Ensure IDLE menus are

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-27 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file34646/issue21057.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-27 Thread Nikolaus Rath
Changes by Nikolaus Rath : Removed file: http://bugs.python.org/file34645/issue21057.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-03-27 Thread Nikolaus Rath
Nikolaus Rath added the comment: I'm attaching a patch that enables TextIOWrapper to work with bytes-like objects from the underlying file descriptor. The code changes are pretty small, without introducing any significant additional complexity. For streams providing bytes objects, this patch

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread R. David Murray
R. David Murray added the comment: OK. If you would be willing to open a feature request for that, that would be great. -- ___ Python tracker ___ __

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-03-27 Thread Thomas Kluyver
Thomas Kluyver added the comment: For future reference, cx_Freeze ships its own copy of ModuleFinder, so it doesn't depend on the stdlib copy. This issue was fixed there some time around the release of Python 3.3. I realised recently that this is based on code in the stdlib, and I've been mea

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-03-27 Thread Jean Christophe André
New submission from Jean Christophe André: In Python version 2.x and at least 3.2 there no Vietnamese encoding support for TCVN 5712:1993. This encoding is currently largely used in Vietnam and I think it would be usefull to add it to the python core encodings. I already wrote some codec code

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue6676] expat parser throws Memory Error when parsing multiple files

2014-03-27 Thread Ned Deily
Ned Deily added the comment: Applied for release in 3.5.0, 3.4.1 and 2.7.7. Thanks, everyone! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue17654] IDLE only customizes correctly for OS X when using framework build

2014-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I understand the Bindings.py patch, the fragility changed from "If you edit menudefs, edit the Mac block that follows" to "If you change (e sections of) menudefs, edit macosxSupport.overrideRootMenu". That seems like a wash to me, except for the narrowing d

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: But how is the first call supposed to know that you don't want a StreamReader? Or the second that you do want one? Maybe we need a new constant instead of PIPE that means "leave it hanging"? -- ___ Python tracker

[issue17654] IDLE only customizes correctly for OS X when using framework build

2014-03-27 Thread Ned Deily
Ned Deily added the comment: If there are no objections, I'd like to commit this cleanup soon. It should make things a bit easier for people testing IDLE from development builds on OS X and fix some long-standing bugs when linking with the Tk X11 variant on OS X. -- nosy: +terry.reedy

[issue20739] PEP 463 (except expression) implementation

2014-03-27 Thread Thomas Wouters
Thomas Wouters added the comment: The implementation in the patch preserves the exception context. It's probably the thing that took the most code, and it's why there's two new opcodes in the patch :) It's covered in the tests, too. -- ___ Python tr

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread STINNER Victor
STINNER Victor added the comment: > Oh, I see. Given that it is possible to do using event loop methods, why > don't you write up a complete implementation and then propose to add that to > the asyncio.subprocess module? I don't know that a whole new implementation is needed. I guess that a si

[issue6676] expat parser throws Memory Error when parsing multiple files

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74faca1ac59c by Ned Deily in branch '2.7': Issue #6676: Ensure a meaningful exception is raised when attempting http://hg.python.org/cpython/rev/74faca1ac59c New changeset 9e3fc66ee0b8 by Ned Deily in branch '3.4': Issue #6676: Ensure a meaningful e

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
Brandon Rhodes added the comment: I agree that is_attachment supports the most common use-case of people who need to inspect the content disposition! But people implementing heavyweight tools and email clients might additionally need to distinguish between a MIME part whose disposition is expl

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: OK, it appears it works now. Sorry for the notification noise. -- ___ Python tracker ___ ___ Pyth

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file34643/signals2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread R. David Murray
R. David Murray added the comment: Well, that's why is_attachment exists. I wouldn't be averse to adding get_content_disposition if nobody objects, though. The attributes are on the headers because the data really is attributes of the parsed headers, but the more useful user API is the method

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2014-03-27 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, I see. Given that it is possible to do using event loop methods, why don't you write up a complete implementation and then propose to add that to the asyncio.subprocess module? -- ___ Python tracker

[issue21075] fileinput should use stdin.buffer for "rb" mode

2014-03-27 Thread Josh Rosenberg
Josh Rosenberg added the comment: There is a similar, (unfixed?) bug, #14156, in argparse as well. Seems like a common failing in the move to Python 3; std*.buffer was introduced, but none of the places that use it were updated, so they all became str only. -- nosy: +josh.rosenberg __

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread STINNER Victor
STINNER Victor added the comment: > How do you do that with the subprocess module Something like that: --- import subprocess ls = subprocess.Popen(["ls", "-1"], stdout=subprocess.PIPE) wc = subprocess.Popen(["wc", "-l"], stdin=ls.stdout) ls.wait() wc.wait() --- > and why doesn't that work with

[issue20739] PEP 463 (except expression) implementation

2014-03-27 Thread Josh Rosenberg
Josh Rosenberg added the comment: It's not part of the PEP, but what happens with the new syntax if there is an existing exception context? Some utilities (e.g. functools.lru_cache) use dict.get over a try/except because they operate under the assumption that they may be invoked within an exce

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
Brandon Rhodes added the comment: Understood. I wonder where in the documentation the ability to get the content disposition should wind up? I am almost tempted to suggest a get_content_disposition() method that parallels get_content_type(), mostly to avoid having to document the asymmetry bet

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: How do you do that with the subprocess module, and why doesn't that work with asyncio? -- ___ Python tracker ___

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread R. David Murray
R. David Murray added the comment: I was going to open new issue for adding 'value', but looking at the parsing code I see why I didn't add one. The way the new parser works it really wants to know the actual structure of the value, it doesn't have a good way to treat it as generic. We could

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread STINNER Victor
New submission from STINNER Victor: With the current asyncio API, it's not possible to implement the shell command "ls | wc -l" in Python: connect the stdin of a consumer to the stdin of a producer. -- messages: 214994 nosy: gvanrossum, haypo, yselivanov priority: normal severity: norm

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file34642/signals.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20691] inspect.signature: Consider exposing 'follow_wrapper_chains' option in public API

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: So... should we expose two keyword only parameters for Signature.from_callable() and signature(): - 'follow_wrapped=True' to follow __wrapped__ chains; - 'keep_bound_arg=False' to skip/include first bound arg? -- __

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This time I made it without --git but that didn't help either. Not sure what to do. :-\ Note: the devguide recommends using --git BTW: http://docs.python.org/devguide/committing.html Should that be changed? -- __

[issue18932] selectors and modify()

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: Why can't this be fixed in 3.4.1? It isn't an API change. -- ___ Python tracker ___ ___ Python-bug

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file34642/signals.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file34640/signals.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread R. David Murray
R. David Murray added the comment: Here's patch. -- keywords: +patch Added file: http://bugs.python.org/file34641/is_attachment.patch ___ Python tracker ___ _

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file34640/signals.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20817] inspect.getcallargs() raises the wrong error if 3+ arguments are missing

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed for 3.4.1 and 3.5. Thanks for the contribution! -- ___ Python tracker ___ ___ Python-bugs-list

[issue20817] inspect.getcallargs() raises the wrong error if 3+ arguments are missing

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 35302cc4fc93 by Yury Selivanov in branch 'default': inspect: Fix getcallargs() to fail correctly if more than 3 args are missing. http://hg.python.org/cpython/rev/35302cc4fc93 New changeset 9f06cbb7962b by Yury Selivanov in branch '3.4': inspect: Fi

[issue18932] selectors and modify()

2014-03-27 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed for 3.4.1 and 3.5. Thank you Jeremiah! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20816] inspect.getcallargs() attempts to iterate over None

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3de2e729d0fb by Yury Selivanov in branch 'default': inspect: Fix getcallargs() to raise correct TypeError http://hg.python.org/cpython/rev/3de2e729d0fb New changeset 070dfca74610 by Yury Selivanov in branch '3.4': inspect: Fix getcallargs() to raise

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Charles-François Natali
Charles-François Natali added the comment: This patch can't be reviewed: please re-generate without --git. -- nosy: +neologix ___ Python tracker ___ _

[issue20668] Remove dependency on tests.txt when running test_asyncio suite

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, good idea. Committed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue20668] Remove dependency on tests.txt when running test_asyncio suite

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07984815003f by Yury Selivanov in branch '3.4': asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668 http://hg.python.org/cpython/rev/07984815003f -- ___ Python tracker

[issue21063] Touch up one-line descriptions of modules for module index

2014-03-27 Thread Brett Cannon
Brett Cannon added the comment: Sure, if you are just looking for "This module" you won't find very many instances. The bug is more about doing a sweep through *every* module's synopsis and just cleaning them up to read better. The "this module" instance for linecache is just an example of why

[issue21063] Touch up one-line descriptions of modules for module index

2014-03-27 Thread Angad Singh
Angad Singh added the comment: Not a lot of occurrences if I only look at the synopsis. Attaching a diff. Also saw a weird "This subpackage" in apiref.rst line 1767. Fix that too? -- keywords: +patch Added file: http://bugs.python.org/file34639/this_module_doc_fix.patch

[issue21063] Touch up one-line descriptions of modules for module index

2014-03-27 Thread Angad Singh
Angad Singh added the comment: Interested in taking this up as my first patch - @brett - are you only talking about the :synopsis: or the occurrence of "This module" at the beginning of the description as well? -angad -- nosy: +angad ___ Python track

[issue21063] Touch up one-line descriptions of modules for module index

2014-03-27 Thread Brett Cannon
Brett Cannon added the comment: Just the synopsis lines for the modules. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread R. David Murray
R. David Murray added the comment: That facility already mostly exists. The bug is that the code in question doesn't use it. >>> m['Content-Disposition'].content_disposition 'attachment' >>> m['Content-Disposition'].params {'filename': 'attachment.gz'} On the other hand, looking at that it is

[issue21073] Py_ReprEnter potentially misbehaves during malformed thread states

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: No, I haven't changed my mind. Feel free to add a comment explaining this. :-) -- ___ Python tracker ___ _

[issue21073] Py_ReprEnter potentially misbehaves during malformed thread states

2014-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: (but you're right, we could add a comment explaining this) -- ___ Python tracker ___ ___ Python-bugs

[issue21073] Py_ReprEnter potentially misbehaves during malformed thread states

2014-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: "hg annotate" shows it dates back to 4f0b7acffc7d by Guido, with the following diff: diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -150,6 +150,10 @@ C API - +- PyThreadState_GetDict() was changed not to raise an exception or + i

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
Brandon Rhodes added the comment: Given that methods like get_param() already exist for pulling data out of the right-hand-side of the ';' in a parameterized email header, would it be amiss for EmailMessage to also have a method that either returns everything to the left of the semicolon, or retu

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2014-03-27 Thread Éric Araujo
Éric Araujo added the comment: Not sure if 3.2 is still open to security fixes. -- nosy: +eric.araujo ___ Python tracker ___ ___ Pytho

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
Brandon Rhodes added the comment: Okay, having looked at the source a bit more it would probably make more sense to use _splitparam() instead of doing the split manually. -- ___ Python tracker _

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
Brandon Rhodes added the comment: Oh - this also, happily, explains why iter_attachments() is ignoring all of the attachments on my email: because it internally relies upon is_attachment to make the decision. So this fix will also make iter_attachments() usable! -- _

[issue20668] Remove dependency on tests.txt when running test_asyncio suite

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: I think this is reasonable to also commit to the 3.4 branch so it will appear in 3.4.1. -- ___ Python tracker ___ ___

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
New submission from Brandon Rhodes: Most attachments (in my inbox, at least) specify a filename, and thus have a Content-Disposition header that looks like: Content-Disposition: attachment; filename="attachment.gz" In fact, this sample header was generated by the new add_attachment() method in

[issue21078] multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented

2014-03-27 Thread Brett Cannon
Brett Cannon added the comment: Is there any reason it isn't documented, Richard? And are there proper tests? -- nosy: +brett.cannon, sbt ___ Python tracker ___ _

[issue21078] multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented

2014-03-27 Thread Yuriy Taraday
New submission from Yuriy Taraday: We're going to use BaseManager for simple secure local RPC and for the "secure" part we can't use pickle, so we have to use "serializer" argument to switch to xmlrpclib. We need to be sure that argument won't go away so we need it to be documented and suppor

[issue20378] Implement `Signature.__repr__`

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9a81297b39 by Yury Selivanov in branch 'default': inspect.signature: Improve repr of Signature and Parameter. Closes #20378 http://hg.python.org/cpython/rev/3f9a81297b39 -- nosy: +python-dev resolution: -> fixed stage: test needed -> comm

[issue17373] Add inspect.Signature.from_callable()

2014-03-27 Thread Eric Snow
Eric Snow added the comment: Thanks, Yury! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20668] Remove dependency on tests.txt when running test_asyncio suite

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset bcc77493249c by Yury Selivanov in branch 'default': asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668 http://hg.python.org/cpython/rev/bcc77493249c -- nosy: +python-dev resolution: -> fixed stage: -> committed

[issue21077] Turtle Circle Speed 0

2014-03-27 Thread Garrett Grimsley
New submission from Garrett Grimsley: A circle is supposed to draw upon a click event, but if speed is set to 0 it appears that the circle fails to draw and all existing lines are erased. A screenshot of the behavior with radius = 20 can be seen here: http://i.imgur.com/y7z87AN.png This state

[issue20334] make inspect Signature hashable

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: If nobody has any objections on this, I'm going to commit this in 3.5 soon. -- ___ Python tracker ___ __

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17373] Add inspect.Signature.from_callable()

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a4e44473fdd by Yury Selivanov in branch 'default': inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373 http://hg.python.org/cpython/rev/8a4e44473fdd -- nosy: +python-dev resolution: -> fixed stage: patch review -> c

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Guido van Rossum
Changes by Guido van Rossum : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: OK, somebody please review this (not me). -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file34637/signals.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Added file: http://bugs.python.org/file34637/signals.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21076] Turn signal.SIG* constants into enums

2014-03-27 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': Relevant discussion + BDFL approval: https://mail.python.org/pipermail/python-ideas/2014-March/027286.html Patch (not tested on Windows) is in attachment. -- components: Library (Lib) files: signals.patch keywords: patch messages: 214959 nosy: giamp

[issue20726] inspect: Make Signature instances picklable

2014-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Picklability is more of a new feature than a bugfix. -- ___ Python tracker ___ ___ Python-bugs-list

[issue20726] inspect: Make Signature instances picklable

2014-03-27 Thread STINNER Victor
STINNER Victor added the comment: Why not backporting this change to Python 3.4? Would it break something? -- nosy: +haypo ___ Python tracker ___

[issue19573] Fix the docstring of inspect.Parameter and the implementation of _ParameterKind

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2b94f891c88 by Yury Selivanov in branch 'default': inspect.signature: Use enum for parameter kind constants. Closes #19573 http://hg.python.org/cpython/rev/c2b94f891c88 -- nosy: +python-dev resolution: -> fixed stage: patch review -> commi

[issue20726] inspect: Make Signature instances picklable

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a8e3c910c0a by Yury Selivanov in branch 'default': inspect.signature: Make Signature and Parameter picklable. Closes #20726 http://hg.python.org/cpython/rev/0a8e3c910c0a -- nosy: +python-dev resolution: -> fixed stage: -> committed/reject

[issue20739] PEP 463 (except expression) implementation

2014-03-27 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue17621] Create a lazy import loader mixin

2014-03-27 Thread Brett Cannon
Brett Cannon added the comment: So as-is, this won't help with startup as we already make sure that no unnecessary modules are loaded during startup. But one way we do that is through local imports in key modules, e.g. os.get_exec_path(). So what we could consider is instead of doing a local i

[issue21074] Too aggressive constant folding

2014-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not only is a lot of memory allocated but it also eats quite a bit of CPU time. -- nosy: +pitrou stage: -> needs patch versions: +Python 3.5 ___ Python tracker ___

[issue21075] fileinput should use stdin.buffer for "rb" mode

2014-03-27 Thread Brandon Rhodes
New submission from Brandon Rhodes: In Python 3, fileinput.input() returns str lines whether the data is coming from stdin or from a list of files on the command line. But if input(mode='rb') is specified, then its behavior becomes inconsistent: lines from stdin are delivered as already-decoded s

[issue20344] subprocess.check_output() docs misrepresent what shell=True does

2014-03-27 Thread Tuomas Savolainen
Tuomas Savolainen added the comment: Corrected the spelling of the patch. -- Added file: http://bugs.python.org/file34635/20344_3.patch ___ Python tracker ___ ___

[issue1043134] Add preferred extensions for MIME types

2014-03-27 Thread Wichert Akkerman
Wichert Akkerman added the comment: Here is a related question on SO: http://stackoverflow.com/questions/352837/how-to-add-file-extensions-based-on-file-type-on-linux-unix -- nosy: +wichert ___ Python tracker __

[issue20344] subprocess.check_output() docs misrepresent what shell=True does

2014-03-27 Thread R. David Murray
R. David Murray added the comment: Also, the "see below" sentence is missing. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2014-03-27 Thread Wichert Akkerman
Wichert Akkerman added the comment: I can reproduce this on Both OSX 10.9 and Ubuntu 12.04: >>> import mimetypes >>> mimetypes.guess_extension('image/jpeg') '.jpe' >>> mimetypes.init() >>> mimetypes.guess_extension('image/jpeg') '.jpeg' The same thing happens for Python 3.4: Python 3.4.0rc3 (d

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-03-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-03-27 Thread Ned Deily
Ned Deily added the comment: After looking at why the 2.7 version of the test does not fail, the problem became apparent. In 2.7, test_errno tests urlopen() of the original deprecated urllib module. In 3.x, the test was ported over but now uses urlopen() of urllib.request which is based on u

[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-03-27 Thread Ned Deily
Ned Deily added the comment: I've pushed the changes to 2.7, 3.4, and default. That has exposed a new intermittent failure of test_fileno in test.test_urllibnet (see Issue21069). I'll leave this issue open until that is resolved. And I'll leave it up to the respective release managers to de

[issue21069] test_fileno of test_urllibnet intermittently fails when using www.example.com

2014-03-27 Thread Ned Deily
Ned Deily added the comment: After pushing the changes for Issue20939, many of the buildbots started experiencing the test_fileno failure using www.example.com. The interesting thing is that not all of them do, including my primary development system (OS X 10.9) which is why I didn't see a pr

[issue16047] Tools/freeze no longer works in Python 3

2014-03-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Christian, please open a separate ticket for your problem. This ticket is about getting freeze, the tool itself, working, not any other issue you may find with the resulting frozen binary. Thanks, -- Marc-Andre Lemburg eGenix.com -- _

[issue20344] subprocess.check_output() docs misrepresent what shell=True does

2014-03-27 Thread Tobias Klausmann
Tobias Klausmann added the comment: Hi! On Tue, 25 Mar 2014, Tuomas Savolainen wrote: > Created a patch that adds notice of using shell=True and iterable to the > documentation. Please do comment if the formatting is wrong (this my first > documentation patch). I'd use articles, i.e. "and a

[issue21069] urllib unit tests failing without ssl module

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset adf1e04478b4 by Ned Deily in branch '3.4': Issue #21069: Temporarily use www.google.com while investigating http://hg.python.org/cpython/rev/adf1e04478b4 New changeset 8d4cace71113 by Ned Deily in branch 'default': Issue 21069: merge from 3.4 http:/

[issue21074] Too aggressive constant folding

2014-03-27 Thread STINNER Victor
STINNER Victor added the comment: Hi, I have a project called "astoptimizer" which does the same job than the CPython peephole optimizer, but it is implemented in Python. To avoid this issue (create an huge object and then discard it because it is too large), I have a "check_binop_cst" functio

[issue16047] Tools/freeze no longer works in Python 3

2014-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Christian: Please understand that it was not helpful to post into this issue. The issue discussed here is separate from the issue you are having. We prefer a strict "one issue at a time" policy in this tracker. So when this issue gets closed because Marc-Andr

  1   2   >