[issue20400] Add create_read_pipe_protocol/create_write_pipe_protocol to asyncio.SubprocessProtocol

2014-02-01 Thread STINNER Victor
STINNER Victor added the comment: asyncio has a new asyncio.subprocess module which implements my feature request. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20400

[issue20476] If new email policies are used, default message factory should be EmailMessage

2014-02-01 Thread R. David Murray
New submission from R. David Murray: This was part of the design of the new stuff added in 3.4, so it is a bug that it doesn't work...somehow I missed implementing this detail. The full implementation should make this a policy setting, so that a custom policy could specify its own factory.

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: Added file: http://bugs.python.org/file33849/sig_cython_02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___

[issue20477] Add examples of using the new contentmanager api to the email docs

2014-02-01 Thread R. David Murray
New submission from R. David Murray: Here are the examples I promised to write in issue 18891. -- assignee: docs@python components: Documentation, email files: contentmanager-examples.patch keywords: patch messages: 209922 nosy: barry, docs@python, r.david.murray priority: normal

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Those are C level descriptors, so we'd have to add new fields to the structs, and that's not going to happen at this stage of the release cycle. However, there's also the fact that tp_new and tp_init are required to have the *same* signature, and those override

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: http://hg.python.org/releasing/3.4/file/447c758cdc26/Modules/_sqlite/cursor.c#l789 also i dont see the isolation level being taking into account in other parts of the code -- ___ Python tracker

[issue18891] Master patch for content manager addition to email package

2014-02-01 Thread R. David Murray
R. David Murray added the comment: Opened issue 20477 with the proposed examples. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18891

[issue14665] faulthandler prints tracebacks in reverse order

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: For additional context, Guido's patch in issue 19306 changed Traceback to Stack and added the (most recent call first) to some places where it was missing. Given the technical arguments in favour of keeping this code as simple as possible, agreed this is a

[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Peter, could you take a look at this one? The status quo seems reasonable to me (and I assume to you since the stdlib ipaddress matches the way ipaddr handles this case), but there are details to Michiel's proposal that I'm not able to adequately assess.

[issue16136] Removal of VMS support

2014-02-01 Thread John Malmberg
John Malmberg added the comment: Encompasserve.org is now back up. It took a little longer than expected. Should be no issues now in getting free hobby license keys for VMS on VAX, Alpha, and Itanium by using the web forms. -- ___ Python tracker

[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2014-02-01 Thread pmoody
pmoody added the comment: Ack. My first impression is that #1 is probably the right way to do this. I'm arguing with hg about the right way to stash a change, but I'll get this fixed. -- assignee: - pmoody ___ Python tracker rep...@bugs.python.org

[issue20478] Avoid inadvertently special casing Counter in statistics module

2014-02-01 Thread Nick Coghlan
New submission from Nick Coghlan: As per the python-ideas thread at https://mail.python.org/pipermail/python-ideas/2014-February/025226.html the statistics.mode() function currently passes its argument directly to the collections.Counter() constructor. This results in Counter() objects being

[issue20478] Avoid inadvertently special casing Counter in statistics module

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 20479 covers providing tools for efficiently working with weight/frequency mappings in 3.5 (and presumably the statslib PyPI module) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20478

[issue20480] Add ipaddress property to get reverse DNS name

2014-02-01 Thread Leon Weber
New submission from Leon Weber: I was missing a method to compute the reverse DNS name for an IP address, and I felt this is something that would belong in the ipaddress module; so here’s a patch for the ipaddress module adding a reverse_name property to IPv?Address. This is an example:

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2014-02-01 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +Avoid inadvertently special casing Counter in statistics module versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20479

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2014-02-01 Thread Nick Coghlan
New submission from Nick Coghlan: Issue 20478 suggests ensuring that even weight/frequency mappings like collections.Counter are consistently handled as iterables in the current statistics module API. However, it likely makes sense to provide public APIs that support efficiently working with

[issue20481] Clarify type coercion rules in statistics module

2014-02-01 Thread Nick Coghlan
New submission from Nick Coghlan: I haven't completely following the type coercion discussion on python-ideas. but the statistics module at least needs a docs clarification (to explain that the current behaviour when mixing input types is not fully defined, especially when Decimal is

[issue20480] Add ipaddress property to get reverse DNS name

2014-02-01 Thread Eric V. Smith
Eric V. Smith added the comment: I think the functionality is reasonable for this module. When I originally read the bug title, I was concerned that it was actually doing a reverse DNS lookup, which would not be appropriate. But now I realize it's just computing the name that would be used

[issue20480] Add ipaddress property to get name of reverse DNS pointer

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Heh, my initial reaction based on the issue title was the same as Eric's, but yes, I agree the pure text manipulation proposed in the patch is actually a good fit. Rather than reverse_name (which I feel is ambiguous about whether or not it does the DNS lookup

[issue20480] Add ipaddress property to get name of reverse DNS pointer

2014-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch, Leon. Is the trailing dot actually desired? ipaddress.ip_address(127.0.0.1).reverse_name '1.0.0.127.in-addr.arpa.' Also, to accept your contribution, we will need you to fill a contributor's agreement. See

[issue20480] Add ipaddress property to get name of reverse DNS pointer

2014-02-01 Thread Leon Weber
Leon Weber added the comment: Thanks for the feedback, I agree reverse_pointer is a better, less ambiguous name for the property. I’ve amended the patch to reflect this suggestion. Regarding the trailing dot, I felt it more appropriate to have it that to leave it out, but I don’t have a

[issue20480] Add ipaddress property to get name of reverse DNS pointer

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Gah, we still haven't fixed the contributor license docs on the main CLA page (hopefully we'll finally have that sorted later this month). In the meantime, if you go directly to http://www.python.org/psf/contrib/contrib-form/ it should give you the option to sign

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Please review the attached patch (sig_builtins_01.patch). Some details: - All parsing code from Signature.from_builtin was moved in a separate helper '_signature_fromstr' - Signature.from_builtin calls '_signature_fromstr'. All its validation logic is

[issue20480] Add ipaddress property to get name of reverse DNS pointer

2014-02-01 Thread Leon Weber
Leon Weber added the comment: Oh nice, then fewer trees have to die. I’ve now signed the contributor’s agreement. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20480 ___

[issue15216] Support setting the encoding on a text stream after creation

2014-02-01 Thread Nikolaus Rath
Nikolaus Rath added the comment: Wow, I didn't realize that programming Python using the C interface was that tedious and verbose. I have attached a work-in-progress patch. It is not complete yet, but maybe somebody could already take a look to make sure that I'm not heading completely in the

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: Added file: http://bugs.python.org/file33854/sig_cython_03.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___

[issue20482] smtplib.SMTP.sendmail: improve exception message

2014-02-01 Thread yegle
New submission from yegle: Currently the `msg` argument of `smtplib.SMTP.sendmail` accept a `str` in Py3k if every characters in this `str` is in ASCII range, or a `bytes`. This is confusing for new comer because: 1. When you send your mail using only ASCII characters, everything is fine (no

[issue20475] pystone.py in 3.4 still uses time.clock(), even though it's marked as deprecated since 3.3

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Well, I guess we can replace from time import clock with something like try: from time import monotonic as clock except ImportError: from time import time as clock Victor, what do you think? -- nosy: +yselivanov

[issue20482] smtplib.SMTP.sendmail: improve exception message

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20482 ___ ___ Python-bugs-list

[issue20475] pystone.py in 3.4 still uses time.clock(), even though it's marked as deprecated since 3.3

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20475 ___ ___ Python-bugs-list

[issue9974] tokenizer.untokenize not invariant with line continuations

2014-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: One could argue that The guarantee applies only to the token type and token string as the spacing between tokens (column positions) may change. covers merging of lines, but total elimination of needed whitespace is definitely a bug. -- nosy:

[issue20387] tokenize/untokenize roundtrip fails with tabs

2014-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whitespace equivalence is explicitly disclaimed. The guarantee applies only to the token type and token string as the spacing between tokens (column positions) may change. The assert is not a valid test. I think you should close this. (Note that there are

[issue20483] Missing network resource checks in test_urllib2 test_smtplib

2014-02-01 Thread Nick Coghlan
New submission from Nick Coghlan: These two tests appear to rely on DNS lookups or other network access that isn't guarded by the network resource (my internet dropped out and these two tests failed, but they work correctly now the internet connection is back up). -- components: Tests

[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Revised patch that avoids doing multiple lookups of the same codec name while creating the stream. Absent any comments, I'll commit this version with appropriate NEWS and What's New updates tomorrow. -- Added file:

[issue15216] Support setting the encoding on a text stream after creation

2014-02-01 Thread Nikolaus Rath
Changes by Nikolaus Rath nikol...@rath.org: Added file: http://bugs.python.org/file33857/set_encoding-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15216 ___

[issue20404] Delayed exception using non-text encodings with TextIOWrapper

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, just noticed the test case is still using the overly specific check for the exception wording. I'll fix that, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20404

[issue18823] Idle: use pipes instead of sockets to talk with user subprocess

2014-02-01 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser k...@shore.net: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18823 ___ ___ Python-bugs-list mailing list

[issue16123] IDLE - deprecate running without a subprocess

2014-02-01 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser k...@shore.net: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16123 ___ ___ Python-bugs-list mailing list

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2014-02-01 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser k...@shore.net: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15663 ___ ___ Python-bugs-list mailing list

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: Added file: http://bugs.python.org/file33858/sig_builtincls_02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20473 ___

[issue20484] test_pydoc can alter execution environment causing subsequent test failures

2014-02-01 Thread Ned Deily
New submission from Ned Deily: With the pydoc.synopsis() for 'binary' modules changes (d6c3fb8d5f84) to pydoc and test_pydoc for Issue20123, running test_pydoc can leave the regrtest environment altered and cause subsequent tests to fail in strange ways. I ran into this issue running

[issue20473] inspect.Signature no longer handles builtin classes correctly

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Second patch attached: sig_builtincls_02.patch, with a fix, that Nick suggested. Larry, I'd like you to take a quick look at it as well, before I commit it. -- ___ Python tracker rep...@bugs.python.org

[issue20451] os.exec* mangles argv on windows (splits on spaces, etc)

2014-02-01 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: i have tried a workaround for this issue by explicitly escaping args so that same result is produced on all platforms.this patch does NOT change the behavior on non-NT platforms. If this patch is accepted,i also recommend to specify on the help pages,that

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-02-01 Thread Nick Coghlan
Nick Coghlan added the comment: Larry, if this version looks good to you, I'd like to commit it. - id() is now back to being a properly generated AC function (since AC can now preserve the old C level signature) - sorted() is partially converted and has a __text_signature__ compatible

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-02-01 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Added file: http://bugs.python.org/file33861/issue20184_builtin_conversion_v5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20184 ___

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: I tried the third patch and it works, but when I write this into a docstring: def func(x, *, y=None): sig=(a,b) then it fails to extract the signature again and returns (a,b) instead. I also tried putting in some math term as (non-signature)

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: I tried this in Cython and ISTM that the C level parser is a bit too forgiving: def sig(a, b): sig=(a*b) return a * b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20326

[issue20481] Clarify type coercion rules in statistics module

2014-02-01 Thread Wolfgang Maier
Wolfgang Maier added the comment: Thanks Nick for filing this! I've been working on modifications to statistics._sum and statistics._coerce_types that together make the module's behaviour independent of the order of input types (by making the decision based on the set of input types) and,

<    1   2