[issue31803] time.clock() should emit a DeprecationWarning

2017-10-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: time.cock() is used in a lot of code. Why can't we simply replace the functionality with one of the other functions ? The documentation certainly allows for such a change, since it pretty much just says that only the delta between two

[issue31807] unitest.mock: Using autospec=True conflicts with 'wraps'

2017-10-17 Thread John Villalovos
Change by John Villalovos : -- title: Using autospec=True conflicts with 'wraps' -> unitest.mock: Using autospec=True conflicts with 'wraps' ___ Python tracker

[issue31753] Unnecessary closure in ast.literal_eval

2017-10-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I question those timings. Here's the results from a script I've been using for many years: $ python3.6 variable_access.py 0.065 read_local 0.068 read_nonlocal 0.179 read_global 0.236 read_builtin 0.267 read_classvar

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-17 Thread R. David Murray
R. David Murray added the comment: Heh, of course the socket server also only ends with ctl-C. And I misread the CAN example, it won't spin because the read isn't wrapped in a try/except. So yes, that should use a with on the socket as well, since the with will close

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-17 Thread R. David Murray
R. David Murray added the comment: I think in the echo examples the 'with conn' block should be indented and a 'with s:' added around it. The network sniffer should probably use a with statement with the created socket. The CAN example ends only on ctrl-C, and could go

[issue31676] test.test_imp.ImportTests.test_load_source has side effects

2017-10-17 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 178148025494c4058571831fb11fc8eeff8b7365 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)

[issue31798] `site.abs__file__` fails for modules where `__file__` cannot be modified

2017-10-17 Thread Eric V. Smith
Eric V. Smith added the comment: I don't have clr installed in order to test this. It would be good if you could produce it without us having to install additional software. Could you please copy the entire stack traceback you get when this error occurs? Does this error

[issue31807] Using autospec=True conflicts with 'wraps'

2017-10-17 Thread John Villalovos
New submission from John Villalovos : If have autospec=True, then no ValueError is raised. If autospec=False or not defined, then the ValueError is raised. import sys from unittest import mock def wrapped_func(value): raise ValueError(value)

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2017-10-17 Thread Eric V. Smith
Eric V. Smith added the comment: It does seem like overkill for something that's rarely used. I'm -0 on the structseq version. -- ___ Python tracker

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-17 Thread Chris Angelico
Chris Angelico added the comment: Thanks for handling that Terry. I take it the PR isn't needed now? I would have done it, but I'm on the way to the US (literally posting this from the airport), and hadn't gotten to looking at this in the interval. --

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 98e0f26f2e4cbf5c2ca27b39f43c1cb0114c6e3c by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (GH-4025) (#4028)

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ecacbb4f22ae86d29a73a5f715bce07d091da10d by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-13802: Use non-Latin characters in IDLE's Font settings sample. (GH-3960) (#4027)

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-10-17 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4003 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 27288de0856c6fbe56354adb312ae706ce8bc7de by Terry Jan Reedy in branch 'master': bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (#4025) https://github.com/python/cpython/commit/27288de0856c6fbe56354adb312ae706ce8bc7de

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-17 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4002 ___ Python tracker ___

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e2e42274ee5db1acedf57b63943e1f536d7a25bc by Terry Jan Reedy in branch 'master': bpo-13802: Use non-Latin characters in IDLE's Font settings sample. (#3960)

[issue31805] support._is_gui_available() hangs on x86-64 Sierra 3.6/3.x buildbot

2017-10-17 Thread Matt Billenstein
Matt Billenstein added the comment: Note, that's running ./python.exe Lib/tests/test_tk.py from a Terminal when logged into the gui... -- ___ Python tracker

[issue31805] support._is_gui_available() hangs on x86-64 Sierra 3.6/3.x buildbot

2017-10-17 Thread Matt Billenstein
Matt Billenstein added the comment: Did some debugging by sticking a couple prints in support.is_gui_available() and it appears everything is fine up until the call to app_services.SetFrontProcess() -- this is returning error code -606 which is defined in:

[issue31806] Use _PyTime_ROUND_TIMEOUT in _threadmodule.c, timemodule.c and socketmodule.c

2017-10-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +4001 stage: -> patch review ___ Python tracker ___

[issue31806] Use _PyTime_ROUND_TIMEOUT in _threadmodule.c, timemodule.c and socketmodule.c

2017-10-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Following PR for https://bugs.python.org/issue31786 time_sleep, lock_acquire_parse_args and socket_parse_timeout should use _PyTime_ROUND_TIMEOUT instead of _PyTime_ROUND_CEILING. -- components: Library (Lib) messages:

[issue28603] traceback module can't format/print unhashable exceptions

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Zane. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

[issue28603] traceback module can't format/print unhashable exceptions

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2712247ec94dcc12cf9abeec78f18f54fcc3357a by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions (GH-4014) (#4024)

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-10-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +4000 ___ Python tracker ___ ___

[issue31343] Include major(), minor(), makedev() from sysmacros

2017-10-17 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list

[issue31803] time.clock() should emit a DeprecationWarning

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, I modified time.clock() and time.get_clock_info('clock') to emit a DeprecationWarning. Let's wait for Python 3.8 to remove time.clock() ;-) Thanks for the reviews Serhiy Storchaka and Diana Clarke! -- resolution: ->

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 884d13a55fc328e2e1e3948a82b361b30804b818 by Victor Stinner in branch 'master': time.clock() now emits a DeprecationWarning (GH-4020) https://github.com/python/cpython/commit/884d13a55fc328e2e1e3948a82b361b30804b818

[issue28603] traceback module can't format/print unhashable exceptions

2017-10-17 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3999 ___ Python tracker ___

[issue28603] traceback module can't format/print unhashable exceptions

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset de86073a761cd3539aaca6f886a1f55effc0d9da by Serhiy Storchaka (Zane Bitter) in branch 'master': bpo-28603: Fix formatting tracebacks for unhashable exceptions (#4014)

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD

2017-10-17 Thread Jeff Allen
Change by Jeff Allen : -- nosy: +jeff.allen ___ Python tracker ___ ___ Python-bugs-list

[issue28603] traceback module can't format/print unhashable exceptions

2017-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I understand it, the patch amounts to ignoring any custom __eq__ and __hash__ on an Exception class when printing tracebacks and, in effect, using the default id-based versions inherited from object, as is being assumed. This seems

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not convinced that a named tuple is needed here. -- ___ Python tracker ___

[issue31753] Unnecessary closure in ast.literal_eval

2017-10-17 Thread Aaron Hall
Aaron Hall added the comment: New information: I think I have pinpointed at least a contributor to the difference - closure lookups seem to be currently slightly slower (by a few percent) than global lookups (see https://stackoverflow.com/a/46798876/541136). And as we

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +3997 stage: backport needed -> patch review ___ Python tracker ___

[issue25711] Rewrite zipimport from scratch

2017-10-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've ported the patch to a branch on GH. See PR 4023. I started from zipimport-2.patch. It doesn't work, but it will be easier to work on as a PR rather than a patch. Contributions welcome! Let's see if we can make this work.

[issue25711] Rewrite zipimport from scratch

2017-10-17 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- pull_requests: +3998 ___ Python tracker ___ ___

[issue31234] Make support.threading_cleanup() stricter

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: It seems like all attached PR are now merged. I didn't see any random "dangling thread" warning recently in the master branch, so I close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue26145] [WIP] PEP 511: Add sys.set_code_transformers()

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: I rejected my own PEP 511, so I now reject this issue as well. https://mail.python.org/pipermail/python-dev/2017-October/149903.html -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue26098] [WIP] PEP 510: Specialize functions with guards

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: I rejected my own PEP 510, so I reject this issue as well. https://mail.python.org/pipermail/python-dev/2017-October/149901.html -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: I documented the two new environment variables in What's New in Python 2.7, so this issue can now be closed again. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue31733] [2.7] Add PYTHONSHOWREFCOUNT environment variable to Python 2.7

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 355393e7438deeab4aeec3fcffea65e8cada083b by Victor Stinner in branch '2.7': [2.7] bpo-31733, bpo-31692: Document 2 new env vars in What's New in Python 2.7 (GH-4019)

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 355393e7438deeab4aeec3fcffea65e8cada083b by Victor Stinner in branch '2.7': [2.7] bpo-31733, bpo-31692: Document 2 new env vars in What's New in Python 2.7 (GH-4019)

[issue31799] Improve __spec__ discoverability

2017-10-17 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- stage: patch review -> resolved status: open -> closed versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue31799] Improve __spec__ discoverability

2017-10-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 858ea4354fafa36e57859d2dfd70f8a057984075 by Barry Warsaw (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31799: Make module.__spec__ more discoverable (GH-4010) (#4021)

[issue31799] Improve __spec__ discoverability

2017-10-17 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3996 ___ Python tracker ___

[issue31805] support._is_gui_available() hangs on x86-64 Sierra 3.6/3.x buildbot

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Matt: Would you like to look at your buildbot to check if something is wrong with Tkinter? The code hangs on the CGMainDisplayID() call in support._is_gui_available(): from ctypes import cdll, c_int, pointer, Structure from

[issue31799] Improve __spec__ discoverability

2017-10-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 191e3138200906e43cba9347177914325b54843f by Barry Warsaw in branch 'master': bpo-31799: Make module.__spec__ more discoverable (#4010) https://github.com/python/cpython/commit/191e3138200906e43cba9347177914325b54843f

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2017-10-17 Thread abraithwaite
abraithwaite added the comment: This might have been fixed by https://bugs.python.org/issue22928 Have not tested. -- nosy: +abraithwaite ___ Python tracker

[issue31753] Unnecessary closure in ast.literal_eval

2017-10-17 Thread Aaron Hall
Aaron Hall added the comment: Static analysis: My mental model currently says the rebuilt function every outer call is an expense with no offsetting benefit. It seems that a function shouldn't build a closure on every call if the closure doesn't close over anything

[issue31805] support._is_gui_available() hangs on x86-64 Sierra 3.6/3.x buildbot

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Same issue on x86-64 Sierra 3.x: http://buildbot.python.org/all/#/builders/14/builds/21 -- components: +Tkinter title: support._is_gui_available() hangs on x86-64 Sierra 3.6 buildbot -> support._is_gui_available() hangs on

[issue31805] support._is_gui_available() hangs on x86-64 Sierra 3.6 buildbot

2017-10-17 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/20/builds/11 Re-running test 'test_ttk_guionly' in verbose mode Timeout (0:15:00)! Thread 0x7fffc0cd73c0 (most recent call first): File

[issue31334] select.poll.poll fails on BSDs with arbitrary negative timeouts

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604 by Victor Stinner (Riccardo Coccioli) in branch 'master': bpo-31334: Fix timeout in select.poll.poll() (GH-3277)

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 4020 to emit a DeprecationWarning in time.clock() and time.get_clock_info('clock'). -- ___ Python tracker

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +3995 ___ Python tracker ___ ___

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-17 Thread Will Starms
Will Starms added the comment: I've realized that my patch may not be ideal for general-purpose use, but it's a good start for a discussion on the proper way to implement a timeout. My patch (which is based on a more involved modification to Pool) assumes that the joins

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-17 Thread Nathaniel Manista
Nathaniel Manista added the comment: As I am learning from the examples, I don't have the confidence to propose a fix to them. :-P For the IPv4-and-IPv6 "Echo server program": should s be closed at some point after "conn, addr = s.accept()"? Should s be closed on the

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread Matthew Barnett
Matthew Barnett added the comment: @Victor: True, people often ignore DeprecationWarning anyway, but that's their problem, at least you can say "well, you were warned". They might not have read the documentation on it recently because they have not felt the need to

[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2017-10-17 Thread Mario Corchero
Change by Mario Corchero : -- nosy: +mariocj89 ___ Python tracker ___ ___

[issue31804] multiprocessing calls flush on sys.stdout at exit even if it is None (pythonw)

2017-10-17 Thread Pox TheGreat
New submission from Pox TheGreat : If you start Python by pythonw then sys.stdout and sys.stderr are set to None. If you also use multiprocessing then when the child process finishes BaseProcess._bootstrap calls sys.stdout.flush() and sys.stderr.flush() finally. This

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> backport needed ___ Python tracker ___

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46 by Serhiy Storchaka (Pablo Galindo) in branch 'master': bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (#4003)

[issue31800] datetime.strptime: Support for parsing offsets with a colon

2017-10-17 Thread Mario Corchero
Mario Corchero added the comment: Yep, http://man7.org/linux/man-pages/man3/strptime.3.html does support it even if it might look asymetrical. Example: struct tm tm; char buf[255]; memset(, 0, sizeof(struct tm));

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "Isn't worth to document these changes in What's New?" Ok, I created the PR 4019. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +3994 ___ Python tracker ___ ___

[issue31733] [2.7] Add PYTHONSHOWREFCOUNT environment variable to Python 2.7

2017-10-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +3993 ___ Python tracker ___ ___

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "I think it is better to not remove time.clock() until EOL of 2.7. And in any case it first should start emitting a deprecation warning for a one or two releases." I really hate using 2.7 EOL as the final countdown to start

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A runtime deprecation warning was not emitted in 3.3 because two alternatives, time.process_time() and time.perf_counter(), were not available before 3.3. It would be hard to write a warning-free code that supports 3.3 and

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Ben Hoyt: "... from the PR it's clear that the standard library and tests do too." I disagree here. The standard library doesn't use time.clock() since Python 3.3. Better clocks like time.perf_counter() or time.monotonic() are now

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is better to not remove time.clock() until EOL of 2.7. And in any case it first should start emitting a deprecation warning for a one or two releases. -- nosy: +benjamin.peterson, serhiy.storchaka

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread Ben Hoyt
Ben Hoyt added the comment: I don't think this is a good idea. I still use time.clock() out of habit (on Windows), and from the PR it's clear that the standard library and tests do too. I wouldn't be at all surprised to find others do as well. I realize it's been

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread Ned Deily
Change by Ned Deily : -- nosy: +belopolsky, lemburg ___ Python tracker ___ ___

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread Fred L. Drake, Jr.
Change by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: With the PR, Python 3.7 will still requires the C clock() function to build on Unix, since time.process_time() uses it as the last fallback if all other functions failed. Maybe we can require to have other functions used by

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +3992 stage: -> patch review ___ Python tracker ___

[issue31803] Remove not portable time.clock(), replaced by time.perf_counter() and time.process_time()

2017-10-17 Thread STINNER Victor
New submission from STINNER Victor : The behaviour of the time.clock() function is not portable: on Windows it mesures wall-clock, whereas it measures CPU time on Unix. Python has time.process_time() and time.perf_counter(), since Python 3.3, which are portable, well

[issue31343] Include major(), minor(), makedev() from sysmacros

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Louie Lu proposed the fix for this issue in issue30013. -- nosy: +serhiy.storchaka ___ Python tracker

[issue30013] Compiler warning in Modules/posixmodule.c

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, Louie Lu, this already has been fixed in issue31343. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Include major(), minor(), makedev() from sysmacros

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-10-17 Thread Julien Palard
Julien Palard added the comment: Finally have a combination of latex engines that work for every cases, did a PR on docsbuild-scripts: https://github.com/python/docsbuild-scripts/pull/34/ I already pulled xelatex on docs.iad1.psf.io via

[issue31802] 'import posixpath' fails if 'os.path' has not be imported already.

2017-10-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +3991 stage: needs patch -> patch review ___ Python tracker

[issue30013] Compiler warning in Modules/posixmodule.c

2017-10-17 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-10-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c by Victor Stinner (Mario Corchero) in branch 'master': bpo-30541: Add new method to seal mocks (GH61923)

[issue31802] 'import posixpath' fails if 'os.path' has not be imported already.

2017-10-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka components: +Library (Lib) nosy: +serhiy.storchaka type: crash -> behavior versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't worth to document these changes in What's New? -- ___ Python tracker ___

[issue31733] [2.7] Add PYTHONSHOWREFCOUNT environment variable to Python 2.7

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7.15 now requires to set PYTHONSHOWREFCOUNT env var to dump "[xxx refs]". -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7.15 will require to compile Python with COUNT_ALLOCS defined *and* to set the PYTHONSHOWALLOCCOUNT environment variable (ex: PYTHONSHOWALLOCCOUNT=1) to dump allocation counts. Moreover, counts are now dumped into stderr,

[issue31802] 'import posixpath' fails if 'os.path' has not be imported already.

2017-10-17 Thread Mark Shannon
New submission from Mark Shannon : $ python3.7 -S >>> import posixpath Traceback (most recent call last): File "", line 1, in File "--/Lib/posixpath.py", line 13, in import os File "--/Lib/os.py", line 92, in from os.path import (curdir, pardir, sep, pathsep,

[issue19527] Test failures with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7b4ba62e388474e811268322b47f80d464933541 by Victor Stinner in branch '2.7': [2.7] bpo-31692: Add PYTHONSHOWALLOCCOUNT env var (GH-3927) https://github.com/python/cpython/commit/7b4ba62e388474e811268322b47f80d464933541

[issue31692] [2.7] Test `test_huntrleaks()` of test_regrtest fails in debug build with COUNT_ALLOCS

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7b4ba62e388474e811268322b47f80d464933541 by Victor Stinner in branch '2.7': [2.7] bpo-31692: Add PYTHONSHOWALLOCCOUNT env var (GH-3927) https://github.com/python/cpython/commit/7b4ba62e388474e811268322b47f80d464933541

[issue31733] [2.7] Add PYTHONSHOWREFCOUNT environment variable to Python 2.7

2017-10-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3c082a7fdb472f02bcac7a7f8fe1e3a34a11b70b by Victor Stinner in branch '2.7': bpo-31733: Add PYTHONSHOWREFCOUNT env var (GH-3932) https://github.com/python/cpython/commit/3c082a7fdb472f02bcac7a7f8fe1e3a34a11b70b

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2017-10-17 Thread Alex Dzyoba
Change by Alex Dzyoba : -- pull_requests: +3990 stage: -> patch review ___ Python tracker ___