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

2014-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1619465c49d by Victor Stinner in branch '3.3': Issue #20311: Try to fix the unit test, use time.monotonic() instead of http://hg.python.org/cpython/rev/e1619465c49d New changeset 26c54e9a933b by Victor Stinner in branch 'default': (Merge 3.3) Issue

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2014-01-20 Thread Shiz
Shiz added the comment: > c) Many (or all) core committers did not have access to the platform > in question. I'd say Android is quite a common platform these days, although I'd concur that it's not particularly easy to run Python OOTB on. :) >Wikipedia claims that "QEMU also powers the

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-20 Thread Christopher Welborn
Christopher Welborn added the comment: Isn't this something you could do yourself? import pathlib def pathread(self, binary=False): with self.open('br'if binary else 'r') as fread: return fread.read() def pathwrite(self, data, mode='w'): with self.open(mode) as fwrite: f

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-20 Thread Christopher Welborn
Christopher Welborn added the comment: I was referring to writing helper functions like pathread(mypath), though the monkeypatch version (p.read()) does work (it did when I tested it). -- ___ Python tracker ___

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: A pointer in the 2.7 subprocess docs to subprocess32 does seem like a good idea, its what i tell everyone to do anyways. :) If you've got a patch for this in 2.7 feel free to add it here and I can take a look. leaving this open as a reminder to me to update

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: The patch seems reasonable. i'd modify it slightly to include a check the SYS_getdents64 is not already defined before doing the #define. -- assignee: -> gregory.p.smith ___ Python tracker

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-20 Thread berdario
New submission from berdario: This small script errors on both Python2.7, Python3.3 and Pypy2.0 (I just reduced the test case supplied to me by ezio) -- components: Interpreter Core files: bbug.py messages: 208608 nosy: berdario, ezio.melotti priority: normal severity: normal status: op

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon, eric.snow, ncoghlan stage: -> test needed type: -> behavior ___ Python tracker ___ ___

[issue12704] Language Reference: Clarify behaviour of yield when generator is not resumed

2014-01-20 Thread Nikolaus Rath
Nikolaus Rath added the comment: That makes sense. Attached is an updated patch. It removes most of the duplication, and clearly says that there is no semantic difference between the yield statement and the yield expression at all. I also moved the "see also" block to follow the description of

[issue20322] Upgrade ensurepip's pip and setuptools

2014-01-20 Thread Donald Stufft
New submission from Donald Stufft: Pip 1.5.1 and setuptools 2.1 are out which both fix some bugs that are likely to affect some people. They both should be fairly innocuous as far as issues go so there shouldn't be any harm in upgrading in 3.4. -- assignee: dstufft messages: 208610 nos

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-01-20 Thread Shiz
Shiz added the comment: That's probably a good idea. Fixed patch attached. -- Added file: http://bugs.python.org/file33584/Python-3.4.0tip-expose-SYS_getdents64-on-android-v2.patch ___ Python tracker _

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-01-20 Thread Shiz
Shiz added the comment: Please take note of the discussion in issue 20305 if you were planning to merge this, by the way. -- ___ Python tracker ___ _

[issue20222] unittest.mock-examples doc uses builtin file which is removed in Python 3

2014-01-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue20222] unittest.mock-examples doc uses builtin file which is removed in Python 3

2014-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36c9a233ebf0 by Terry Jan Reedy in branch '3.3': Issue #20222: file is no longer a builtin in 3.x. http://hg.python.org/cpython/rev/36c9a233ebf0 -- nosy: +python-dev ___ Python tracker

[issue20222] unittest.mock-examples doc uses builtin file which is removed in Python 3

2014-01-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ __

[issue20298] json library needs a non-strict option to decode single-quoted strings

2014-01-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy is correct. We're trying to stick close to the JSON spec. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue20122] Move CallTips tests to idle_tests

2014-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6f2d9d04cd0 by Terry Jan Reedy in branch '2.7': Issue #20122: Idlelib: Move tests in 3.x CallTips.py to test_calltips.py. http://hg.python.org/cpython/rev/f6f2d9d04cd0 New changeset 7befcc353d40 by Terry Jan Reedy in branch '3.3': Issue #20122: Idl

[issue20122] Move CallTips tests to idle_tests

2014-01-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Zachary Ware
New submission from Zachary Ware: The current two-pass output for the two-pass preset causes compile errors on Windows. A sample: ..\PC\winsound.c(71): error C2133: 'winsound_PlaySound__doc__' : unknown size Line 71 (clinic-generated docstring_prototype): PyDoc_VAR(winsound_PlaySound__doc__)

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Build, Demos and Tools, Windows versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Larry Hastings
Larry Hastings added the comment: I don't understand the problem--you didn't give me enough context. Can you attach a file that demonstrates the problem? -- ___ Python tracker

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Zachary Ware
Zachary Ware added the comment: Attached is PC/winsound.c, as converted in issue20172, but using the two-pass preset output scheme. Compiling with this file produces these errors: ..\PC\winsound.c(71): error C2133: 'winsound_PlaySound__doc__' : unknown size [P:\ath\to\cpython\PCbuild\winsound

[issue20310] Recommend using pprint for deterministic doctest

2014-01-20 Thread R. David Murray
R. David Murray added the comment: That's a very good point. You'd think I'd have thought of it since I mentioned that it had changed in 3.4. And it will most likely change more in future versions. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Larry Hastings
Larry Hastings added the comment: Does your proposed solution work properly when docstrings are turned off? Try undefining WITH_DOC_STRINGS. I bet you need to make the size 1 in that case. Also, the length must be len(f.docstring) + 1, to account for the trailing \0. Also, error C2133 doesn'

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why PyDoc_VAR prototype is used at all? There are only two occurrences of PyDoc_VAR in current code, and one of them actually can be replaced by PyDoc_STRVAR. -- nosy: +serhiy.storchaka ___ Python tracker

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-20 Thread Larry Hastings
Larry Hastings added the comment: Serhiy: PyDoc_VAR is used in the "two-pass" approach as a forward declaration for docstrings. Imagine if, in winsound.c, sound_methods was defined above the "dump buffer" block. The expansion of WINSOUND_PLAYSOUND_METHODDEF would include a reference to winso

[issue20320] select.select(timeout) and select.kqueue.control(timeout) must round the timeout to the upper bound

2014-01-20 Thread Charles-François Natali
Charles-François Natali added the comment: Just so it's clear, those bugs are theoretical: whether you pass 1e-7/1e-10 or 0 to select/kqueue is exactly the same (entering/leaving the syscall takes some time)... -- ___ Python tracker

[issue20313] inspect.signature should raise ValueError for builtins with no signature info

2014-01-20 Thread Larry Hastings
Larry Hastings added the comment: If you want to make sure that happens, please review my next patch for #20189, or fix it after that patch goes in if I forget. (Honestly it's hard for me to keep track of everything right now.) -- resolution: -> duplicate stage: -> committed/rejecte

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not every two line function are worth to be added to the stdlib. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker ___ ___

<    1   2