[issue29304] dict: simplify lookup function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Dmitry, please open a new issue for your proposition. It changes visible behavior, while Inada's patch doesn't do this. -- ___ Python tracker ___

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
New submission from Dmitry Rubanovich: lookdict_index() (and the rest of the files in dictobject.c) are using unnecessarily complicated perturb mechanism. And, in fact, it's slower than the simpler case. Instead of this: for (size_t perturb = hash;;) { perturb >>= PERTURB_SHIFT; i =

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread INADA Naoki
INADA Naoki added the comment: You may misunderstood current lookup loop. In your collisions_count.py, `yield i` must be added right before `while True:` -- ___ Python tracker _

[issue30348] IDLE: Add test_autocomplete unittest

2017-06-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: IDLE: Add test_autocoplete unittest -> IDLE: Add test_autocomplete unittest ___ Python tracker ___

[issue694339] IDLE: Dedenting with Shift+Tab

2017-06-15 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2254 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue694339] IDLE: Dedenting with Shift+Tab

2017-06-15 Thread Louie Lu
Louie Lu added the comment: PR 2210 add the smart-dedent to shift-tab in Windows, macOS, Linux. I can't saw <> nor <> in 3.7 (master) source code, so I'll take it as removed in IDLE somewhere else. -- nosy: +louielu versions: +Python 3.7 ___ Python

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2017-06-15 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 7926516ff95ed9c8345ed4c4c4910f44ffbd5949 by Nick Coghlan in branch 'master': bpo-28180: Standard stream & FS encoding differ on Mac OS X (GH-2208) https://github.com/python/cpython/commit/7926516ff95ed9c8345ed4c4c4910f44ffbd5949 -- __

[issue30672] PEP 538: Unexpected locale behaviour on Mac OS X

2017-06-15 Thread Nick Coghlan
New submission from Nick Coghlan: To get the new PEP 538 tests passing on Mac OS X (see [1,2]), I ended up having to skip the following test scenarios: LANG=UTF-8 (behaves like LANG=C, *not* LC_CTYPE=UTF-8) LANG=POSIX (behaves like a distinct locale is set, not LANG=C) LC_CTYPE=POSI

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2017-06-15 Thread Nick Coghlan
Nick Coghlan added the comment: The latest commit should get the Mac OS X buildbot back to green, but I had to disable some test cases to do it - see issue 30672 for details. Issue 30565 is the one that covers silencing the locale coercion and locale compatibility warnings by default. ---

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-15 Thread Nick Coghlan
Nick Coghlan added the comment: Updated issue title to reflect the fact we're now considering just silencing *all* the warnings by default. -- title: PEP 538: default to skipping warning for implicit locale coercion? -> PEP 538: silence locale coercion and compatibility warnings by def

[issue30647] CODESET error on AMD64 FreeBSD 10.x Shared 3.x caused by the PEP 538

2017-06-15 Thread Nick Coghlan
Nick Coghlan added the comment: Note that the coercion logic includes a runtime check to see if 'setlocale(LC_CTYPE, "")' succeeds. That's how we skip over the non-existent C.UTF-8 and C.utf8 to get to "LC_CTYPE=UTF-8" on Mac OS X and FreeBSD. That *appears* to work (and really does work on M

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
New submission from STINNER Victor: I need this option to increase the timeout (currently of 20 min) per test file on the "AMD64 Windows8.1 Refleaks 3.x" buildbot. We already changed the buildbot timeout (timeout x 10 for refleaks tests): https://github.com/python/buildmaster-config/commit/7731

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: The goal is to fix this failure: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.x/builds/29/steps/test/logs/stdio Re-running test 'test_largefile' in verbose mode (...) test_lseek (test.test_largefile.CLargeFileTest) ... ok test_ossta

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2255 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2256 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, I fixed a leak in test_spawnve_noargs() of test_os, but test_spawnv_noargs() still leaks :-) os.spawnv() is very similar to os.spawnve(). https://github.com/python/cpython/pull/2212 fixes os.spawnv() as well. I tested that "python -m test -R 3:3 test_os"

[issue30674] IDLE: add docstrings to grep.py

2017-06-15 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- assignee: terry.reedy components: IDLE nosy: csabella, terry.reedy priority: normal severity: normal status: open title: IDLE: add docstrings to grep.py type: enhancement versions: Python 3.7 ___ Python tracker

[issue30674] IDLE: add docstrings to grep.py

2017-06-15 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2257 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%202.7/builds/136/steps/test/logs/stdio ... 0:12:56 [402/404] test_linecache passed -- running: test_threading (413 sec) 0:12:56 [403/404] test_int_literal passed -- running: test_threading

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.5/builds/27/steps/test/logs/stdio [336/398/5] test_zipfile beginning 6 repetitions 123456 .. test_zipfile leaked [3, 9, 8] references, sum=20 test_zipfile leaked [3, 9, 8] memory blo

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: I tried "./python -m test -R 3:3 test_zipfile" on Linux and my Windows VM, but I'm unable to reproduce the issue. Maybe I passed the wrong options to regrtest (-m test)? -- ___ Python tracker

[issue30605] re.compile fails when compiling bytes under `-bb` mode

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2258 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30650] lack of right parentheses

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2259 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30650] lack of right parentheses

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2260 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread Louie Lu
Louie Lu added the comment: $ git checkout upstream/3.5 $ make -j8 $ ./python.exe -m test -R 3:3 test_zipfile [1/1] test_zipfile beginning 6 repetitions 123456 .. 1 test OK. That is a pass on my macOS with upstream/3.5 -- nosy: +louielu ___ Pyth

[issue30676] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread Stephan R.A. Deibel
New submission from Stephan R.A. Deibel: In acquire_timed in _threadmodule.c (used to implement threading lock acquire()) there is an optimization from https://github.com/python/cpython/commit/e75ff35af2b6c85d48c68b95f295aeac7396b162 that says it first tries non-blocking lock w/o releasing the

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8acb4cf2b3436652568d7a70228b166316181466 by Victor Stinner in branch 'master': bpo-30602: Fix refleak in os.spawnv() (#2212) https://github.com/python/cpython/commit/8acb4cf2b3436652568d7a70228b166316181466 -- __

[issue30676] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue30676] [Windows] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- title: Potential for GIL deadlock on Windows in threadmodule acquire_lock -> [Windows] Potential for GIL deadlock on Windows in threadmodule acquire_lock ___ Python tracker _

[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2261 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Me: > Write your own C extension to do that. Sorry, I don't know what is the best > way to write such C extension. Devin Jeanpierre: > If everyone who wants to convert intptr_t to a python int has to write their > own function, then why not just include it in

[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2262 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30605] re.compile fails when compiling bytes under `-bb` mode

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 523a243840feb4d5f444a1b128e540876afac3d2 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (GH-2016) (#2214) https://github.com/python/cpython/commit/523a243840feb4d5f444a1b128e540876a

[issue30650] lack of right parentheses

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f75f6edb1fdbaeb12f9de368ebdeb1b7d1836433 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30650: Fixed a syntax error: missed right parentheses (GH-2154) (#2215) https://github.com/python/cpython/commit/f75f6edb1fdbaeb12f9de368ebdeb1b7d1836433

[issue30650] lack of right parentheses

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b39c78a73c203dcaf8f2061da81827c667440402 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30650: Fixed a syntax error: missed right parentheses (GH-2154) (#2216) https://github.com/python/cpython/commit/b39c78a73c203dcaf8f2061da81827c667440402

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-15 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: > Devin, I asked you for a strong rationale to add the feature. I don't see > such rationale, so this issue will be closed again. I guess we have different definitions of "strong rationale". Clearer criteria would help. >> It may be better to make _PyLong_F

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-15 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: > Making two C functions public is very different from supporting intmax_t. I > expect a change of a few lines, whereas my intmax_t patch modified a lot of > code. I requested either a way to create from intmax_t, or from bytes. We have two existing functio

[issue29581] __init_subclass__ causes TypeError when used with standard library metaclasses (such as ABCMeta)

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30677] Enhance documentation of os.mkdir()

2017-06-15 Thread Enrico Bianchi
New submission from Enrico Bianchi: Currently, documentation for os.mkdir() (see https://docs.python.org/3.6/library/os.html#os.mkdir ) reports only FileExistsError exception if directory exists. Please, add other exceptions (e.g. FileNotFoundError if directory is created in a non existent pat

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-15 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Oh, to be clear on this last point: > Hum, who else needs such function except of you? Right now there is no way to convert an int that might be > 64 bits, into a python long, except really bizarre shenanigans, unless we want to rely on implementation-defin

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: > This request was part of the original bug report, so why open a new issue? Making two C functions public is very different from supporting intmax_t. I expect a change of a few lines, whereas my intmax_t patch modified a lot of code. I wanted to simplify the

[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cf58dfb44cc11d41ea1473cd7436618b210b8258 by Serhiy Storchaka in branch '3.6': [3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879) (#2217) https://github.com/python/cpython/commit/cf58dfb44cc11d41ea1473cd74366

[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c5a6fb654a280c7b17f1d348e2e40d62ca04c5d3 by Serhiy Storchaka in branch '3.5': [3.5] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879) (#2218) https://github.com/python/cpython/commit/c5a6fb654a280c7b17f1d348e2e40

[issue30650] lack of right parentheses

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ __

[issue30605] re.compile fails when compiling bytes under `-bb` mode

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ __

[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ __

[issue30678] Widget variable binding does not work if mainloop is called from a different function

2017-06-15 Thread Javier Dehesa
New submission from Javier Dehesa: When you build a Tkinter interface with variables, if tkinter.Tk.mainloop is called from a different function that the one creating the variable objects, then in some cases the widgets associated with the variables will not be set to the right value. I have n

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e45ea377b8d9ae23893d4587003c6d3e7f54b99a by Serhiy Storchaka (Dong-hee Na) in branch '3.6': bpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1662) https://github.com/python/cpython/commit/e45ea377b8d9ae23893d4587003c6d3e7f5

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fb0825c2784f80689c4c00c3ede22958faaf512c by Serhiy Storchaka (Dong-hee Na) in branch '3.5': bpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1663) https://github.com/python/cpython/commit/fb0825c2784f80689c4c00c3ede22958faa

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like I introduced a bug: https://github.com/python/cpython/pull/2184#pullrequestreview-44308536 -- ___ Python tracker ___ _

[issue29721] "abort: repository . not found!" during the build of Python 2.7

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The issue no longer reproduced. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue30627] Incorrect error message for a few functions called with keywod argument

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 96c7c0685045b739fdc5145018cddfd252155713 by Serhiy Storchaka (Sylvain) in branch 'master': bpo-20627: Fix error message when keyword arguments are used (#2115) https://github.com/python/cpython/commit/96c7c0685045b739fdc5145018cddfd252155713 -

[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg296105 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30627] Incorrect error message for a few functions called with keywod argument

2017-06-15 Thread SylvainDe
Changes by SylvainDe : -- pull_requests: +2263 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Arthur Darcet
New submission from Arthur Darcet: Here is the example code I am running: ``` import asyncio class it: async def __aenter__(self): return self async def __aexit__(self, *_): print('EXIT') async def main(): async with it():

[issue30677] Enhance documentation of os.mkdir()

2017-06-15 Thread R. David Murray
R. David Murray added the comment: We don't generally document all exceptions that a method can raise, only those that are relevant to its specific API. In this case, documenting the exception answers the question, "what happens if the directory already exists?" This question is relevant to

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2265 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: I succeeded to reproduce the bug, but only when running the -jN option, like: ./python -m test -j2 -R 3:3 test_zipfile I reduced the test to: ./python -m test -j2 -R 3:3 test_zipfile -m test_random_open This test heavily use random.randint(). In fact, the bu

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like Python 3.6 and master (3.7) are not impacted by this bug, thanks to my rework on regrtest (now libregrtest) in Python 3.6. It's unclear to me if Python 2.7 has the bug: I don't see the warm_caches() function. --

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Arthur Darcet
Arthur Darcet added the comment: Ok, thank you. I'm guessing the patch I proposed in the PR is not an option, for my curiosity, why is that? -- ___ Python tracker ___ __

[issue30603] textwrap: declining indent level has no test case

2017-06-15 Thread Emily Morehouse
Emily Morehouse added the comment: Looks great, thanks for the updates. Mariatta, can you get this merged in? -- ___ Python tracker ___ _

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Yury Selivanov
Yury Selivanov added the comment: Yes, this is a known limitation of asyncio -- keyboardinterrupt exceptions kills the loop rather abruptly. One way to handle this is to use 'signal.signal' for sigint to raise custom exception instead of keyboardinterrupt. --

[issue30676] [Windows] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread Steve Dower
Steve Dower added the comment: We recently tried switching the GIL implementation on Windows by changing the setting you refer to. It didn't work, so we didn't keep the change, but I don't recall the details - likely the same issue you bring up here. I don't have the other issue number handy r

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The last example causes a segfault with current PR. >>> import ast >>> ast.parse(r""" ... f'''\ ... \ ... {x}\ ... \ ... ''' ... """) python: Python/ast.c:4994: FstringParser_ConcatFstring: Assertion `!state->last_str || PyUnicode_GET_LENGTH(state->last_str)

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It causes segfault also with unpatched Python. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg296114 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30465] FormattedValue expressions have wrong lineno and col_offset information

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg296115 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30625] Documentation is unclear how "y*" and "y#" format units vary

2017-06-15 Thread Gregory Szorc
Gregory Szorc added the comment: IMO I don't find the 3.2 docs more useful. Specifically, the behavior for memoryview is still unclear. -- ___ Python tracker ___ ___

[issue30676] [Windows] Potential for GIL deadlock on Windows in threadmodule acquire_lock

2017-06-15 Thread Stephan R.A. Deibel
Stephan R.A. Deibel added the comment: I think I misunderstood the implementation of EnterNonRecursiveMutex -- the mutex that could block there is the internal 'cs' mutex, which would only be held only briefly while Enter/LeaveNonRecursiveMutex are running, and it looks like the 'cs' mutex is

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 145541cfa05394c38cfd64c0be2c5fb382860995 by Serhiy Storchaka in branch 'master': bpo-30626: Fix error handling in PyImport_Import(). (#2103) https://github.com/python/cpython/commit/145541cfa05394c38cfd64c0be2c5fb382860995 --

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2266 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2267 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fab05de21480fc54a5101cf813195cb32724b5ad by Serhiy Storchaka in branch '3.6': [3.6] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#2221) https://github.com/python/cpython/commit/fab05de21480fc54a5101cf813195cb32724b5ad ---

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 263dcc39daa74066c2b2fcb007a4bd4f7ec65073 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30626: Fix error handling in PyImport_Import(). (GH-2103) (#) https://github.com/python/cpython/commit/263dcc39daa74066c2b2fcb007a4bd4f7ec65073 ---

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 258bfc462b1e58689b43f662a10e44ece3a10bef by Victor Stinner in branch 'master': bpo-30673: test.bat: add -t option (timeout) (#2211) https://github.com/python/cpython/commit/258bfc462b1e58689b43f662a10e44ece3a10bef -- ___

[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue24484. The solution depends on the assumption that list(dict) is atomic. -- ___ Python tracker ___

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks a duplicate of issue29094. -- status: open -> pending superseder: -> Regression in zipfile writing in 2.7.13 ___ Python tracker __

[issue26491] Defer DECREFs until enum object is in a consistent state for re-entrancy

2017-06-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue1360] Queue.get() can't be interrupted with Ctrl-C unless timed out

2017-06-15 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2268 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
New submission from Jonathan Eunice: The textwrap module goes to great lengths to "do the right thing" when it finds the ASCII simulation of an em-dash (two or more consecutive hyphens), but it does nothing to recognize and similarly treat true (Unicode) em-dashes (aka '\N{EM DASH}', '\u2014',

[issue29606] urllib FTP protocol stream injection

2017-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to solve this issue on the level of the ftplib module or FTP handler in urllib.request instead of urllib.parse? -- nosy: +serhiy.storchaka ___ Python tracker

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2269 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread R. David Murray
R. David Murray added the comment: This seems sensible to me (I haven't looked at the PR, I'm talking about adding the support). When textwrap was written python was pretty ascii oriented, so it is not too much of a surprise that unicode em dashes were not supported. -- nosy: +r.david

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
Jonathan Eunice added the comment: Agreed. It makes great sense that textwrap started as highly ASCII-centric. But in the Python 3, Unicode-friendly era, ASCII-biased isn't where we should leave things. -- ___ Python tracker

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2270 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2271 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Ok, using attached test_x.py, I'm able to reproduce this bug on Python 2.7. -- Added file: http://bugs.python.org/file46955/test_x.py ___ Python tracker ___

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33cf0c4cd6e8abe138c3469ca9ec1502410945f0 by Victor Stinner in branch '3.5': bpo-30675: Fix multiprocessing code in regrtest (#2220) https://github.com/python/cpython/commit/33cf0c4cd6e8abe138c3469ca9ec1502410945f0 -- ___

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset e064d4dfeda09fd206653697b70b434e98cc1b57 by Victor Stinner in branch '3.6': bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225) https://github.com/python/cpython/commit/e064d4dfeda09fd206653697b70b434e98cc1b57 -- __

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab4ea09604ea7754a80e4fc36280f5772bf4a8b2 by Victor Stinner in branch '3.5': bpo-30673: test.bat: add -t option (timeout) (#2211) (#2226) https://github.com/python/cpython/commit/ab4ea09604ea7754a80e4fc36280f5772bf4a8b2 -- __

[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2272 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 50dbf577e10f806056d60ac956db0748d2cc8257 by Victor Stinner in branch '3.6': bpo-23890: Fix ref cycle in TestCase.assertRaises (#858) https://github.com/python/cpython/commit/50dbf577e10f806056d60ac956db0748d2cc8257 -- __

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: I added the -t options to 3.5, 3.6 and master (3.7) branches. I have a small issue: in Python 2.7, regrtest has no --timeout option. In Python 3, the timeout was implemented using faulthandler, module which was added to Python 3.3. I guess that we can handle

[issue30673] Add -t option (timeout) to Tools/buildbot/test.bat for "AMD64 Windows8.1 Refleaks 3.x" buildbot

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Oh wait, it seems like I misunderstood how Tools/buildbot/test.bat works: unknown parameters as passed as if to regrtest. So it wasn't needed to add a new -t option, using --timeout should just work. There were two bugs in the buildbot configuration: * the de

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2273 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3dc573c8d19dc42ed786ca3237afdad183c41ca0 by Victor Stinner in branch '3.5': Fix ref cycles in TestCase.assertRaises() (#193) (#2228) https://github.com/python/cpython/commit/3dc573c8d19dc42ed786ca3237afdad183c41ca0 -- __

[issue23890] assertRaises increases reference counter

2017-06-15 Thread STINNER Victor
STINNER Victor added the comment: Thank you Vjacheslav Fyodorov for your bug report! The bug should now be fixed in 3.5, 3.6 and master (future 3.7) branches. Python 2.7 is not affected by the bug. -- ___ Python tracker

  1   2   >