[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, spec

[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 __

[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) d

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

2014-02-01 Thread Nick Coghlan
Changes by Nick Coghlan : Added file: http://bugs.python.org/file33861/issue20184_builtin_conversion_v5.diff ___ Python tracker ___ ___ Pytho

[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 docstri

[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

[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

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov : Added file: http://bugs.python.org/file33858/sig_builtincls_02.patch ___ Python tracker ___ ___ Python-bugs-list m

[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 regres

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

2014-02-01 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue16123] IDLE - deprecate running without a subprocess

2014-02-01 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

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

2014-02-01 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[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 ___

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

2014-02-01 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file33857/set_encoding-4.patch ___ Python tracker ___ ___ Python-bugs-list maili

[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: http://bugs.python.org/file33856/issu

[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

[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 se

[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: +terry.

[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 : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[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 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

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov : Added file: http://bugs.python.org/file33854/sig_cython_03.patch ___ Python tracker ___ ___ Python-bugs-list maili

[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

[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 ___ _

[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 untouche

[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 e

[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 stro

[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 http://www.python.org/psf/

[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 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 for

[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 involved)

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

2014-02-01 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +Avoid inadvertently special casing Counter in statistics module versions: +Python 3.5 ___ Python tracker ___ _

[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

[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: >>> i

[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

[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

[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

[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 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. Howeve

[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

[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 ___

[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

[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 severit

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov : Added file: http://bugs.python.org/file33849/sig_cython_02.patch ___ Python tracker ___ ___ Python-bugs-list maili

[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. H

[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

[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 ___ Pyth

[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 : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[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 _

[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.) -- _

[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 : -- components: +Benchmarks versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ 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 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 working

[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 __

[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 n

[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

[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 __

[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 ___ __

[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 oth

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[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 ___

[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 : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[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 ___

[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 th

[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 d

[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?): https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/sysconf.3

[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 ___ ___ Python-bugs

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

2014-02-01 Thread Yury Selivanov
Changes by Yury Selivanov : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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

[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. --

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 -- nosy:

[issue19863] Missing function attributes in 2.7 docs.

2014-02-01 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ 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 ___ __

[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 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

[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 runn

[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

[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 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

[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

[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 conver

[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

[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 ___

[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 ___ __

[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 time.

[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 ___ _

[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 ___ __

[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. -- ___

[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 ___

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

2014-02-01 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file33842/issue20474.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

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

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

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

[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 (test.test_soc

[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

[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 _

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

2014-02-01 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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

[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 : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

  1   2   >