[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
New submission from STINNER Victor: The failure is minor, it's just a suboptimal code. Calling _run_once() 4 times instead of 3. http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/9630/steps/test/logs/stdio

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

2014-01-31 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20451 ___ ___

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5545634d98a1 by Victor Stinner in branch 'default': Issue #20452: add more info in case of test_asyncio failure to try to debug the http://hg.python.org/cpython/rev/5545634d98a1 -- nosy: +python-dev ___

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: _run_once() can be called more than expected if selector.select() was interrupted by a signal or because the granularity is wrong. If we want to avoid that, a simple fix is just to loop again in this case. Attached patch implements that (I wrote it for Tulip,

[issue20406] Use application icon for IDLE

2014-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the default option of wm_iconbitmap works only on Windows. Does wm_iconbitmap affect taskbar icon and icon used in task switching? Here is a patch which supports also X11 systems. I'm nor sure about Mac. -- Added file:

[issue20406] Use application icon for IDLE

2014-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file33822/idle_appicon_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20406 ___

[issue20406] Use application icon for IDLE

2014-01-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file33823/idle_appicon_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20406 ___

[issue20406] Use application icon for IDLE

2014-01-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, 'works' means displayed for title bar and task switching. Related but separate issue. A TreeWidget used for browsing files uses the old python.gif icon for .py files. I think we should switch to the modern one that you uploaded as python_16x16.gif.

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83e110399f3c by Victor Stinner in branch 'default': Issue #20452: Oops, fix debug code :-/ http://hg.python.org/cpython/rev/83e110399f3c -- ___ Python tracker rep...@bugs.python.org

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Run the attached file under Python 3.3 and you get: No JSON object could be decoded Run the same file under Python 3.4 and you get: Expecting value: line 1 column 1 (char 0) So a couple of things: Since the error message changed, it makes it difficult to

[issue20406] Use application icon for IDLE

2014-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Related but separate issue. A TreeWidget used for browsing files uses the old python.gif icon for .py files. I think we should switch to the modern one that you uploaded as python_16x16.gif. Agree? Agree. As for 2.7, we can use root.tk.call('wm',

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: It looks like select() and poll() in Linux 2.6.28 has a resolution of 1/HZ, where HZ can be retrieved from os.sysconf('SC_CLK_TCK'). Since Linux 2.6.28, hrtimers are now used for timeouts. High- (but not too high-) resolution timeouts

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Platform of x86 Ubuntu Shared 3.x buildbot: Linux-2.6.31.5-linode21-i686-with-debian-lenny-sid little-endian, so a Linux kernel 2.6.31. It looks common on this buildbot that selector.select(timeout) takes less timeout seconds (without returning any event).

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the change is deliberate (issue16009). -- nosy: +ezio.melotti, pitrou, rhettinger, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20453

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread Charles-François Natali
Charles-François Natali added the comment: It looks like select() and poll() in Linux 2.6.28 has a resolution of 1/HZ, where HZ can be retrieved from os.sysconf('SC_CLK_TCK'). Since Linux 2.6.28, hrtimers are now used for timeouts. Attached patch improves the resolution field of

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: What do you think of combining the error messages, e.g. No JSON object could be decoded, expecting value: line 1 column 1 (char 0) ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20453

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Just round the timeout away from 0 and be happy: this will fix the busy-wait problem, and that's all we want. I didn't work, see: http://bugs.python.org/issue20311#msg208601 Once again, I know I keep repeating myself, but having select/epoll/whatever

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: More debug info on a new failure: test_timeout_rounding failed because once EPollSelector.select(timeout=0.0099) took dt=0.0086 seconds. dt-timeout=-0.0014 and dt+granularity timeout is False (granularity=0.001, 1 millisecond). * Buildbot: x86 Gentoo

[issue20454] platform.linux_distribution() returns empty value on Archlinux and python 2.7

2014-01-31 Thread Francis Moreau
Changes by Francis Moreau francis.m...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20454 ___ ___

[issue20454] platform.linux_distribution() returns empty value on Archlinux and python 2.7

2014-01-31 Thread Francis Moreau
New submission from Francis Moreau: On Archlinux: $ python2.7 -c 'import platform; print(platform.linux_distribution())' ('', '', '') This is because Archlinux is not part of the '_supported_dists' list. Could Archlinux be added to this list ? Thanks. -- components: Library (Lib)

[issue20231] Argument Clinic accepts no-default args after default args

2014-01-31 Thread Larry Hastings
Larry Hastings added the comment: Yup! -- assignee: - larry resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20231 ___

[issue20349] Argument Clinic: error on __new__ or __init__ with no arguments

2014-01-31 Thread Larry Hastings
Larry Hastings added the comment: parser_body_fields is initialized to () these days, which should make this problem go away. Do you still have the issue in current trunk? Again, if you'd attached a reproducable test case, I could have independently verified the problem, and that it was

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 827d948ac6aa by Victor Stinner in branch 'default': Issue #20452: select and selectors round (again) timeout away from zero for http://hg.python.org/cpython/rev/827d948ac6aa -- ___ Python tracker

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 827d948ac6aa by Victor Stinner in branch 'default': Issue #20452: select and selectors round (again) timeout away from zero Let's test Charles-Francois option. test_timeout_rounding failed because once EPollSelector.select(timeout=0.0099)

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's certainly possible to write a proper dealloc - just call PyObject_Del directly. This is correct if the type isn't subclassable, and works if it actually isn't subclassed, or if the subclass object can also be released through PyObject_Del. That this

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Larry Hastings
Larry Hastings added the comment: I was thinking of a subclass of an existing class, both implemented in C. collections.Counter does that, but it uses _PyType_LookupId() which is in the limited API. Would it be possible to achieve equivalent functionality by using _PyType_LookupId()? If

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Larry Hastings
Larry Hastings added the comment: (And, I freely admit I don't understand all this that well and that could be a very dumb question.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17162

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Results on x86 Gentoo 3.x buildbot: [136/389] test_asyncio WARNING: selector.select(timeout=0.09997069113887846470) took dt=0.09961039200425148010 sec (dt-timeout=-0.00036029913462698460) WARNING: dt+0.0012 timeout? True WARNING:

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9a09b40bc17 by Victor Stinner in branch 'default': Issue #20311, #20452: poll and epoll now round the timeout away from zero, http://hg.python.org/cpython/rev/f9a09b40bc17 -- ___ Python tracker

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21aa1a224049 by Victor Stinner in branch 'default': Issue #20452: Remove debug code, no more needed http://hg.python.org/cpython/rev/21aa1a224049 New changeset f9a09b40bc17 by Victor Stinner in branch 'default': Issue #20311, #20452: poll and epoll

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

2014-01-31 Thread Stefan Behnel
Stefan Behnel added the comment: pretty please? :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___ ___ Python-bugs-list mailing list

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Summary of this issue: - test_asyncio was still failing because BaseEventLoop._granularity was not enough to round correctly timeouts, deadlines and times. poll/epoll rounded towards zero, whereas asyncio rounds away from zero. So the maximum difference in

[issue20434] Process crashes if not enough memory to import module

2014-01-31 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: These are very unusual semantics. The convention in the python api is that functions are refernece-invariant when there are errors. i.e. if a function fails or not does not change the caller's reference passing assumptions. For example,

[issue20328] mailbox:

2014-01-31 Thread Jonathan Dowland
Jonathan Dowland added the comment: Hi David, thanks for replying! On Tue, Jan 21, 2014 at 03:08:04PM +, R. David Murray wrote: Conceptually the problem with this is that if you use the object to delete the folder, you now have an object with no folder...that is, an invalid object.

[issue20328] mailbox:

2014-01-31 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- nosy: -larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20328 ___ ___ Python-bugs-list

[issue20328] mailbox:

2014-01-31 Thread Larry Hastings
Larry Hastings added the comment: Could you give this issue a more descriptive name please? -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20328 ___

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Oh, another question: should I reopen the issue #20320 (round timeout in select and kqueue)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20452 ___

[issue20434] Process crashes if not enough memory to import module

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Python 3 should have taken the opportunity to remove remove this unusual inheritance from _PyString_Resize() It's not so unusual. PyUnicode_InternInPlace() replaces also a pointer to a object in the caller for example. There are many other functions taking

[issue20349] Argument Clinic: error on __new__ or __init__ with no arguments

2014-01-31 Thread Tal Einat
Tal Einat added the comment: This has indeed been fixed by the change you mentioned. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20349 ___

[issue20455] test_asyncio hangs on Windows

2014-01-31 Thread STINNER Victor
New submission from STINNER Victor: It's probably a regression caused by my changeset 73dbb884eb09 which fixed a bug (issue #20449). Related Tulip issue: http://code.google.com/p/tulip/issues/detail?id=121 -- messages: 209783 nosy: gvanrossum, haypo, sbt priority: normal severity:

[issue20455] test_asyncio hangs on Windows

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c496d53b1e1 by Victor Stinner in branch 'default': Issue #20455: asyncio: write a new write pipe transport class for proactor (on http://hg.python.org/cpython/rev/4c496d53b1e1 -- nosy: +python-dev ___

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

2014-01-31 Thread Larry Hastings
New submission from Larry Hastings: Probably the last rollup patch for a while; I need to move on to code reviewing. Here's a list of changes in this patch: * I added the oft-requested rename the C variable for a parameter functionality. That works as follows: os.rename path

[issue20455] test_asyncio hangs on Windows

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: I commited my patch before a review (even if Guido already wrote me that the approach is correct) because I wanted to unblock Windows buildbots (which were all red). Please review http://hg.python.org/cpython/rev/4c496d53b1e1 --

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

2014-01-31 Thread Larry Hastings
Larry Hastings added the comment: Tell you what. If this *specifically* is a fix for Cython, please add a some text saying that to the comment for the duck-type test function. If you do that, and assuming that test_inspect still passes, then you may check it in. --

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file33594/pyexpat_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Brett Cannon added the comment: Here is pyexpat updated with ErrorString converted (and generally updated to manage changes now required by AC for class definitions). -- Added file: http://bugs.python.org/file33827/pyexpat_derby.diff ___ Python

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Brett Cannon added the comment: Should only have two modules left to convert: Modules/cmathmodule.c: 8 sites Modules/arraymodule.c: 27 sites I have already started arraymodule.c; it's just taking a while. -- assignee: larry - brett.cannon

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___ ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33828/pyexpat_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file33827/pyexpat_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33829/multibytecodec_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file33514/multibytecodec_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20390] Argument Clinic rollup patch, 2014/01/25

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06b4fbb09c93 by Larry Hastings in branch 'default': Issue #20390: Removing detritus from Argument Clinic file preset name change. http://hg.python.org/cpython/rev/06b4fbb09c93 -- ___ Python tracker

[issue20420] BufferedIncrementalEncoder violates IncrementalEncoder interface

2014-01-31 Thread Walter Dörwald
Walter Dörwald added the comment: I dug up an ancient email about that subject: However, I've discovered that BufferedIncrementalEncoder.getstate() doesn't match the specification (i.e. it returns the buffer, not an int). However this class is unused (and probably useless, because it

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-01-31 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20170 ___ ___ Python-bugs-list

[issue20328] mailbox: add method to delete mailbox

2014-01-31 Thread R. David Murray
R. David Murray added the comment: I think your arguments are good ones. So, if you want to propose a patch that defines some semantics for delete (and possibly address the maildir folder delete similarly), I will review it. Also fine if you want to discuss it more before working on a

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread R. David Murray
R. David Murray added the comment: It seems to me that it should indeed have been that way. I thought the referenced issue was *adding* the location information to the existing error messages. -- nosy: +r.david.murray ___ Python tracker

[issue20434] Process crashes if not enough memory to import module

2014-01-31 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I'm not talking about the PyObject** argument, Victor. I'm talking about reference counting semantics. It is a rule that reference counting semantics should be the same over a function call whether that function raised an exception or not. The this

[issue20455] test_asyncio hangs on Windows

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8fc69d43bc49 by Victor Stinner in branch 'default': Issue #20455: math.ceil() returns an int in Python 3, no need to cast the http://hg.python.org/cpython/rev/8fc69d43bc49 New changeset 3f54bc5392c3 by Victor Stinner in branch 'default': Issue

[issue20455] test_asyncio hangs on Windows

2014-01-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- Removed message: http://bugs.python.org/msg209795 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20455 ___

[issue20455] test_asyncio hangs on Windows

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: (I removed the message msg209795 because the commits are related to #20452, not to this issue.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20455 ___

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: Oops, I mentionned the wrong issue number in the following commits. There were related to this issue (#20452): New changeset 8fc69d43bc49 by Victor Stinner in branch 'default': Issue #20455: math.ceil() returns an int in Python 3, no need to cast the

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2014-01-31 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond: it would have been nice to do this, but it's too late. Closing. -- nosy: +eric.smith resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f649ff0756c by Victor Stinner in branch 'default': Issue #20452: test_asyncio: Add more info if the test fails http://hg.python.org/cpython/rev/7f649ff0756c -- ___ Python tracker rep...@bugs.python.org

[issue20452] test_timeout_rounding() of test_asyncio fails on x86 Ubuntu Shared 3.x buildbot

2014-01-31 Thread STINNER Victor
STINNER Victor added the comment: There is a similar (but different?) issue on Windows XP. I tried to fix it with the 4 last commits. The test uses a busy loop. The scheduled handle is called after 0.100 - granularity. The granularity is usually 15.6 ms on Windows, so the expected mimiumum

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33831/array_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: So, here's a patch that should work. One thing I'm not positive about is that this is a more expansive change then just merging the two messages in the one case in the original description. But it probably makes sense to be consistent. Or should we try

[issue20457] Use partition and enumerate make getopt easier

2014-01-31 Thread dongwm
Changes by dongwm ciici...@gmail.com: -- components: Library (Lib) files: getopt_2.7_3.X.path nosy: dongwm priority: normal severity: normal status: open title: Use partition and enumerate make getopt easier type: enhancement versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

[issue20458] ``clinic.py --converters`` raises an exception

2014-01-31 Thread Brett Cannon
New submission from Brett Cannon: ./python.exe Tools/clinic/clinic.py --converters ~/Repositories/cpython/default Legacy converters: Traceback (most recent call last): File Tools/clinic/clinic.py, line 4045, in module sys.exit(main(sys.argv[1:])) File

[issue20457] Use partition and enumerate make getopt easier

2014-01-31 Thread dongwm
Changes by dongwm ciici...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file33834/getopt_3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20457 ___

[issue20459] No Argument Clinic documentation on how to specify a return converter

2014-01-31 Thread Brett Cannon
New submission from Brett Cannon: There's no actual example of using a return converter so it's not obvious how to specify one. Is it specifying an argument of 'return'? -- assignee: larry components: Documentation messages: 209803 nosy: brett.cannon, larry priority: normal severity:

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread R. David Murray
R. David Murray added the comment: If backward compatibility is the concern, I'd think you'd just want to restore that one message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20453

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

2014-01-31 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20456 ___ ___

[issue20458] ``clinic.py --converters`` raises an exception

2014-01-31 Thread Zachary Ware
Zachary Ware added the comment: This is a duplicate of (part of) #20456; adding you there, Brett. -- nosy: +zach.ware resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - Argument Clinic rollup patch, 2014/01/31

[issue20457] Use partition and enumerate make getopt easier

2014-01-31 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20457 ___ ___ Python-bugs-list

[issue20460] Wrong markup in c-api/arg.rst

2014-01-31 Thread OSAMU NAKAMURA
New submission from OSAMU NAKAMURA: :func:`bytes` in description for ``y`` format should be :class:`bytes`. -- assignee: docs@python components: Documentation files: mywork.patch keywords: patch messages: 209806 nosy: OSAMU.NAKAMURA, docs@python priority: normal severity: normal

[issue20453] json.load() error message changed in 3.4

2014-01-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 31, 2014, at 04:23 PM, R. David Murray wrote: If backward compatibility is the concern, I'd think you'd just want to restore that one message. Yeah. I think the tests are a little more difficult to adjust in that case, and of course, if we do change

[issue20461] Argument Clinic included return converters hard code use of ``_return_value``

2014-01-31 Thread Brett Cannon
New submission from Brett Cannon: E.g. NoneType_return_converter assumes _return_value is used in render() although CReturnConverter.declare() stores it in data.return_value and it's a parameter to render(). -- assignee: larry components: Build messages: 209808 nosy: brett.cannon,

[issue20460] Wrong markup in c-api/arg.rst

2014-01-31 Thread Zachary Ware
Zachary Ware added the comment: Fixed, thanks for the report and patch! If you intend to ever contribute more than the simplest of patches, please consider signing a contributor's agreement: http://www.python.org/psf/contrib/ Thanks! -- nosy: +zach.ware resolution: - fixed stage: -

[issue20460] Wrong markup in c-api/arg.rst

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a611b7aae38 by Zachary Ware in branch '3.3': Issue #20460: Render 'bytes' as a class, not a function. http://hg.python.org/cpython/rev/7a611b7aae38 New changeset b56ce3410ca6 by Zachary Ware in branch 'default': Issue #20460: Merge with 3.3

[issue20462] Python IDLE auto closed when creating a new file or open existing file

2014-01-31 Thread Alessandro Reinoso
New submission from Alessandro Reinoso: I looked for some online help and i found a question on stackoverflow wich shows my same problem except that i just installed python to get started:

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

2014-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: Third version of the patch is attached (sig_func_ducktype_03.patch). Changes: - Toughen the tests for duck-typed function -- do not accept classes - Added comments to clarify the need of duck-typing - NEWS item - what's new item Stefan, please take a look. I

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

2014-01-31 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: Removed file: http://bugs.python.org/file33836/sig_func_ducktype_03.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm not sure we are looking at the same code base, I look at http://hg.python.org/cpython/file/b56ce3410ca6/Lib/collections/__init__.py#l401 and ISTM that collections.Counter is *not* implemented in C. Also, according to

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

2014-01-31 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file33837/sig_func_ducktype_03.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-01-31 Thread Ned Deily
Ned Deily added the comment: Update: the MacPorts certsync daemon has matured and is now included as an optional MacPorts port. It's not a perfect solution as noted in the macports-devel thread: The only catch is that custom added certificates or trust anchors need to be in the system keychain

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2014-01-31 Thread Zachary Ware
Zachary Ware added the comment: Robin Zimmermann on docs@ raised this issue again. Is this likely to be fixed soon, or would it be good to document this limitation of IDLE in the tutorial (since the tutorial is the most likely place for someone to be confused by this)? -- nosy:

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

2014-01-31 Thread Stefan Behnel
Stefan Behnel added the comment: Tried it, works for me. Explicitly rejecting classes is a good idea, IMHO, as is requiring that any function-like object must be callable, obviously. -- ___ Python tracker rep...@bugs.python.org

[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset c38f99554be4 by Yury Selivanov in branch 'default': inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly #18801 http://hg.python.org/cpython/rev/c38f99554be4 -- nosy: +python-dev

[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: Not sure if we need to backport this to older python versions -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18801 ___

[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 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/issue18801 ___

[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0f95094033d by Yury Selivanov in branch 'default': NEWS: Add news item for #18801 http://hg.python.org/cpython/rev/d0f95094033d -- ___ Python tracker rep...@bugs.python.org

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

2014-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: Explicitly rejecting classes is a good idea, IMHO, as is requiring that any function-like object must be callable, obviously. Yeah, I think it's good to restrict this duck-typing as much as possible. Committing the patch. --

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

2014-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32a660a52aae by Yury Selivanov in branch 'default': inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159 http://hg.python.org/cpython/rev/32a660a52aae -- nosy: +python-dev

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

2014-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: OK, closing this one. Stefan, Larry, thank you for your reviews and time. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue18916] Various out-of-date Lock text in 3.2+

2014-01-31 Thread Christopher Welborn
Christopher Welborn added the comment: Here's the 3.3 version, with the PyThread_allocate_lock comment in the lock type. Still working on the 3.4 argument clinic version. -- Added file: http://bugs.python.org/file33838/threading.lock.docs.3.3-with-comment.patch

[issue18916] Various out-of-date Lock text in 3.2+

2014-01-31 Thread Christopher Welborn
Changes by Christopher Welborn cjwelb...@live.com: Removed file: http://bugs.python.org/file33819/threading.lock.docs3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18916 ___

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

2014-01-31 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks a lot! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17159 ___ ___ Python-bugs-list mailing list

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: when using virtual tables, dumpiter generates a broken db script virtual table entries must be created as master table entries the sqlite tools dump does that correctly however pythons iterdump seems to do that rather different and wrong sqlite3 test.db

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2014-01-31 Thread Ronny Pfannschmidt
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com: -- components: +Extension Modules type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20463 ___

  1   2   >