[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: Another question to consider: is inspect the best place for this? I don't think it is, because (a) It's not really an inspection facility (b) Importing inspect to get this functionality would pull in lots of stuff which wouldn't be used in the typical use

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

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

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

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: OK, I'll take a look tomorrow. Don't think it's related to #20471 though, as in there, if fails to find a signature for the 'builtin.object' (but I may be wrong). -- ___ Python tracker rep...@bugs.python.org

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-02-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18622 ___ ___

[issue20472] test_write_pty() of test_asyncio fails on x86 Tiger 3.x buildbot

2014-02-01 Thread Ned Deily
Ned Deily added the comment: FYI, besides 10.4 (Tiger), the test also fails on OS X 10.5 but appears to pass on 10.6 and later releases. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20472

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

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: OK, there was no unit-test for this... looking into the problem, the first questing is: why is __text_signature__ is on the '_pickle.Pickler' object, not on '_pickle.Pickler.__init__'? -- ___ Python tracker

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
New submission from Ned Deily: Three send timeout test cases in test_socket were changed by a4e4facad164 for Issue12958 to be expected failures on OS X because of observed failures on the OS X buildbots running OS X 10.6 (Snow Leopard) and earlier. testInterruptedSendTimeout

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- keywords: +patch Added file: http://bugs.python.org/file33842/issue20474.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20474 ___

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file33843/issue20474.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20474 ___

[issue20474] test_socket failures on OS X due to fixed expected failures

2014-02-01 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Removed file: http://bugs.python.org/file33842/issue20474.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20474 ___

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

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: Because slots like tp_init and tp_call don't have docstrings. So it has to go in the class's docstring. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20473

[issue12958] test_socket failures on Mac OS X

2014-02-01 Thread Ned Deily
Ned Deily added the comment: FYI, the OS X platform bugs causing the three send timeout test failures were fixed in OS X 10.7 causing those test cases to have previously silently skipped unexpected successes. See Issue20474 for more details. --

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Stefan Krah
Stefan Krah added the comment: The build is --without-doc-strings. That should do the trick. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

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

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: I meant to say slots like tp_new and tp_init. But fwiw it's true of tp_call too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20473 ___

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

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: And, I don't see how your changes to inspect.py could have caused the failures on the buildbot either. But, then, I don't see how *anything* could cause the failures on the buildbot. And your changes to inspect.py happened at (I think) roughly the same

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: Good thinking! I don't know when I can get to it though, maybe Sunday. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Stefan Krah
Stefan Krah added the comment: I think you just need to use the @requires_docstrings decorator for the test. -- To me the failure looks expected if there aren't any docstrings. -- ___ Python tracker rep...@bugs.python.org

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

2014-02-01 Thread Larry Hastings
Larry Hastings added the comment: Stefan Krah suggests that the failure in 20473 is because that platform builds without docstrings, and the test requires them. So that should be an easy fix. -- ___ Python tracker rep...@bugs.python.org

[issue20456] Argument Clinic rollup patch, 2014/01/31

2014-02-01 Thread Vajrasky Kok
Vajrasky Kok added the comment: The converters argument in command line is still broken. [sky@localhost cpython3.4]$ hg pull -u pulling from http://hg.python.org/cpython searching for changes no changes found [sky@localhost cpython3.4]$ ./python Tools/clinic/clinic.py --converters Legacy

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-02-01 Thread Hendrik
Hendrik added the comment: I found a solution for reading Safari cookies, but struggling around with hg diff. Because always when i typ hg diff Lib/http/cookiejar.py it returns me the complete file not only my changes.. -- nosy: +Hendrik ___ Python

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Brett Cannon
Brett Cannon added the comment: importlib.util.resolve_name() already exists for resolving an explicit relative import name to an absolute one, so closing this as out of date. -- resolution: - out of date status: open - closed ___ Python tracker

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think Raymond's original concern still applies: The macros do add to the learning curve. I would personally expect that Py_REPLACE(op, op2) does an INCREF on op2, but it does not. Explicit is better than implicit. -- nosy: +loewis

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: importlib.util.resolve_name() already exists But that's not what the proposed functionality is for, is it? This covers finding values inside an imported module which can be accessed via a dotted path from the module globals. -- resolution: out of date

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

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, I now notice that I was mistaken about this working: ''' import inspect def test_isfunction(): test_isfunction() True return inspect.isfunction(test_isfunction) ''' It only worked in Cython's test suite because its test runner

[issue19683] test_minidom has many empty tests

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset fed468670866 by Mark Dickinson in branch '2.7': Issue #19683: Add __closure__ and other missing attributes to function docs. http://hg.python.org/cpython/rev/fed468670866 -- ___ Python tracker

[issue19863] Missing function attributes in 2.7 docs.

2014-02-01 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset fed468670866 by Mark Dickinson in branch '2.7': Issue #19683: Add __closure__ and other missing attributes to function docs. http://hg.python.org/cpython/rev/fed468670866 -- ___ Python tracker

[issue19683] test_minidom has many empty tests

2014-02-01 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; wrong issue number. That commit message was for issue 19863. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19683 ___

[issue19863] Missing function attributes in 2.7 docs.

2014-02-01 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19863 ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: could we please get the option to opt-out of that behaviour, as a extra connection option maybe with the normal python sqlite bindings its impossible to have database migrations work safely which IMHO makes this a potential data-loss issue --

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread R. David Murray
R. David Murray added the comment: Opt out of what behavior? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Brett Cannon
Brett Cannon added the comment: Importlib already has importlib.import_module() (since Python 2.7) and that's as far as I'm willing to go for finding a module by name. Anything past that is a getarr() call on the resulting module and thus not worth adding to importlib. --

[issue12915] Add inspect.locate and inspect.resolve

2014-02-01 Thread Vinay Sajip
Vinay Sajip added the comment: and thus not worth adding to importlib. Okay, fair enough. It's not purely an import function, though partly related to imports. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12915

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___ ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: the sqlite binding deciding how to handle transactions -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___

[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2014-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The current os.cpu_count implementation calls sysconf(_SC_NPROCESSORS_ONLN), which is apparently defined under OS X, and returns the number of online CPUs (logical?):

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

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan Krah suggests that the failure in 20473 is because that platform builds without docstrings, and the test requires them. So that should be an easy fix. Good news ;) OK, I'll decorate the test. Because slots like tp_init and tp_call don't have

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

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Would this be ok? Probably. I need to take a closer look. I'm not sure I like the idea that Cython functions are chimeras of some sort, i.e. they have a type of python builtin functions, hence, logically, Signature.from_builtin should work on them (and they

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1f214165471 by Yury Selivanov in branch 'default': inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471 http://hg.python.org/cpython/rev/b1f214165471 -- nosy: +python-dev

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

[issue20471] test_signature_on_class() of test_inspect fails on AMD64 FreeBSD 9.0 3.x buildbot

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Should be OK now. Thank you guys for the report and for the hint of what was going on ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20471 ___

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

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/issue20473 ___ ___ Python-bugs-list

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

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: I'm not sure I like the idea that Cython functions are chimeras of some sort, i.e. they have a type of python builtin functions, hence, logically, Signature.from_builtin should work on them (and they have to follow __text_signature__ API), and on the other

[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-02-01 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch against 2.7. -- keywords: +patch Added file: http://bugs.python.org/file33845/issue20288.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20288

[issue20445] HAVE_BROKEN_NICE detected incorrectly due to configure.ac typo

2014-02-01 Thread George Kouryachy
George Kouryachy added the comment: Oops, looks like my local build system artifact. Thank you for your attention, all-clear. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20445

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

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: That's one way of looking at it. The way I see it is that CPython's builtin functions should rather behave exactly like Python functions. The fact that there is such a thing as a __text_signature__ and general special casing of builtins is IMHO a rather

[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d50b5851f38 by Ezio Melotti in branch '2.7': #20288: fix handling of invalid numeric charrefs in HTMLParser. http://hg.python.org/cpython/rev/0d50b5851f38 New changeset 32097f193892 by Ezio Melotti in branch '3.3': #20288: fix handling of invalid

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

2014-02-01 Thread Stefan Behnel
Stefan Behnel added the comment: Attached is a minimal patch that does what I think you meant. -- Added file: http://bugs.python.org/file33846/divert_from_builtin.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159

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

2014-02-01 Thread Paul Sokolovsky
New submission from Paul Sokolovsky: http://docs.python.org/3.3/library/time.html#time.clock says that it's deprecated, but pystone.py in Python-3.4.0b3 tarball still uses it. Please kindly consider switching it to plain time.time() and not to some other novelties. My usecase is: I'm

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

2014-02-01 Thread Paul Sokolovsky
Changes by Paul Sokolovsky pfal...@users.sourceforge.net: -- components: +Benchmarks versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20475 ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-02-01 Thread R. David Murray
R. David Murray added the comment: As noted above you get that by setting isolation_level to None. That feature has always been available. (With isolation_level set to None, the sqlite wrapper module itself never issues any BEGIN statements.) --

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

2014-02-01 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan, Please try the attached patch (sig_cython_01.patch) -- Added file: http://bugs.python.org/file33847/sig_cython_01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159

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

2014-02-01 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20475 ___ ___ Python-bugs-list

[issue20400] Add create_read_pipe_protocol/create_write_pipe_protocol to asyncio.SubprocessProtocol

2014-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7ac90c0463a by Victor Stinner in branch 'default': Issue #20400: Merge Tulip into Python: add the new asyncio.subprocess module http://hg.python.org/cpython/rev/d7ac90c0463a -- nosy: +python-dev ___

[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

  1   2   >