[issue35807] Update bundled pip to 19.0

2019-03-05 Thread Pradyun Gedam
Change by Pradyun Gedam : -- keywords: +patch pull_requests: +12184 stage: -> patch review ___ Python tracker ___ ___

[issue36203] PyWeakref_NewRef docs are misleading

2019-03-05 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation, ctypes nosy: +docs@python type: -> behavior ___ Python tracker ___

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-03-05 Thread Inada Naoki
Inada Naoki added the comment: It seems twice call of `optionxform` is not avoidable when read-and-write workflow. I'm not against about fixing readdict. But I don't think configparser supports non-idempotent optionxform. >>> import configparser >>> cfg = configparser.ConfigParser() >>>

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-05 Thread Nick Coghlan
Nick Coghlan added the comment: They weren't *intended* to change it, and didn't in the original implementation of the PEP, but they do in the as-shipped Python 3.7 implementation, and I abandoned my attempts to revert to the as-designed behaviour as impractical given the other changes made

[issue36198] Misleading in library/sets document

2019-03-05 Thread Han
Han added the comment: Thanks, I didn't notice the Deprecated sign on the Sets page. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue20774] collections.deque should ship with a stdlib json serializer

2019-03-05 Thread Lisa Roach
Lisa Roach added the comment: Serhiy might be right, it looks significantly worse with benchmarking: lisroach$ python3 -m timeit "import json; json.dumps(['test'])" 10 loops, best of 3: 2.73 usec per loop lisroach$ ./python.exe -m timeit "import json; json.dumps(['test'])" 1 loops,

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-05 Thread Inada Naoki
Inada Naoki added the comment: May I close this issue? I feel target SDK v21 is too old. https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html -- nosy: +inada.naoki ___ Python tracker

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-03-05 Thread Ned Deily
Ned Deily added the comment: Thanks for your report. There does indeed seem to be a problem but, as can be seen if you run your test from SO (please attach it to this issue!) with a current python.org 3.6.x installer for macOS which uses the same build infrastructure as the 3.7 and 3.8

[issue36172] csv module internal consistency

2019-03-05 Thread Josh Rosenberg
Change by Josh Rosenberg : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36158] Regex search behaves differently in list comprehension

2019-03-05 Thread Josh Rosenberg
Change by Josh Rosenberg : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36198] Misleading in library/sets document

2019-03-05 Thread Josh Rosenberg
Josh Rosenberg added the comment: The "returns" bit is accurate when referring to the in-place operator overloads (__ior__), so those lines may have been written referring to the overloads described on the same line (they shouldn't have been written that way, but that would explain why only

[issue36206] re.match() not matching escaped hyphens

2019-03-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: You don't escape the text you are searching. Try this: py> re.match(re.escape('-'), "-") <_sre.SRE_Match object; span=(0, 1), match='-'> py> re.match(re.escape('a-c'), "a-c") <_sre.SRE_Match object; span=(0, 3), match='a-c'> -- nosy:

[issue36206] re.match() not matching escaped hyphens

2019-03-05 Thread Josh Rosenberg
Change by Josh Rosenberg : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36206] re.match() not matching escaped hyphens

2019-03-05 Thread Josh Rosenberg
Josh Rosenberg added the comment: "\\-" is equivalent to the raw string r"\-" (that it, it has one backslash, followed by a hyphen). \X (where X is any ASCII non-letter, non-digit) matches the character itself (the escape does nothing except ensure the punctuation doesn't have any special

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: IPPROTO_TCP/UDP/RAW/ICMP are already there. AFAICT the only useful one here is IPPROTO_IPV6, because it's needed for enabling dual-stack. I don't think IPPROTO_IPV4 is a must (e.g. it's not available on Linux). Same for IPPROTO_ICMPV6. The only reason we

[issue36206] re.match() not matching escaped hyphens

2019-03-05 Thread Lottie Price
New submission from Lottie Price : Problem: re.match("\\-", "\\-") returns None. I expected a match. Context: I have some random text strings I want to match against. I'm using re.escape() to ensure that the text characters are not interpreted as special characters:

[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-05 Thread Lisa Roach
Lisa Roach added the comment: I agree with Raymond, I think this might end up complicating things too much. It is common in the unit test library to only recurse one level deep and not assume too much about the intentions of the tester. -- ___

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly (twice then expected)

2019-03-05 Thread Alexander Lopatin
New submission from Alexander Lopatin : I see this problem only on my iMac (macOS Mojave, Version 10.14.3). My Windows and Linux (CentOS) computers have no such problem. I asked the question on Stack Overflow today, investigated, and reported here:

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Andrew Brezovsky
Andrew Brezovsky added the comment: I see your point. Then perhaps only a subset of the more vital ones get added to previous releases? #define IPPROTO_IPV4 IPPROTO_IPV4 #define IPPROTO_IPV6 IPPROTO_IPV6 #define IPPROTO_TCP IPPROTO_TCP #define IPPROTO_UDP IPPROTO_UDP #define IPPROTO_ICMP

[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe this is outside the scope of what intended. For the most part, the test methods need to be as direct and non-magical as possible so that we're clear on what is being tested. Another issue with built in recursion is that different people

[issue36144] Dictionary addition. (PEP 584)

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > Is this issue directly or indirectly related to the PEP 584 "Add + and - > operators to the built-in dict class"? > https://www.python.org/dev/peps/pep-0584/ Ah yes, it's written in the title of the PR. I add it to the bug title as well. -- title:

[issue36144] Dictionary addition. (PEP 584)

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36144] Dictionary addition.

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: Is this issue directly or indirectly related to the PEP 584 "Add + and - operators to the built-in dict class"? https://www.python.org/dev/peps/pep-0584/ -- nosy: +vstinner ___ Python tracker

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > This is resolved with gh-12159, no? I was waiting to see if buildbot workers feel better. It's the case, so I close the issue. -- priority: release blocker -> normal resolution: -> fixed stage: -> resolved status: open -> closed

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > This is resolved with gh-12159, no? I was waiting to see if buildbot workers feel better. It's the case, so I close the issue. -- priority: release blocker -> normal resolution: -> fixed stage: -> resolved status: open -> closed

[issue36177] test_io: test_daemon_threads_shutdown_stdout_deadlock() fails on x86 Windows7 3.x

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > This is resolved with gh-12159, no? I was waiting to see if buildbot workers feel better. It's the case, so I close the issue. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue14385] Support other types than dict for __builtins__

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: This issues is now closed. Please open a new issue. -- ___ Python tracker ___ ___

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: By the way, according to Nick Coghlan (author of the PEP 538), Py_Initialize() and Py_Main() called from an application embedding Python should not coerce the C locale. -- ___ Python tracker

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: The "vim" editor embeds Python. It sets the Python home by calling Py_SetPythonHome() with the following code: --- size_t len = mbstowcs(NULL, (char *)p_py3home, 0) + 1; /* The string must not change later, make a copy in static

[issue36204] Deprecate calling Py_Main() after Py_Initialize()? Add Py_InitializeFromArgv()?

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-36202: Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake. -- ___ Python tracker ___

[issue36204] Deprecate calling Py_Main() after Py_Initialize()? Add Py_InitializeFromArgv()?

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: INADA-san proposed to make the existing _Py_UnixMain() function public. (Currently, the function is private.) https://discuss.python.org/t/adding-char-based-apis-for-unix/916 -- nosy: +inada.naoki ___ Python

[issue36204] Deprecate calling Py_Main() after Py_Initialize()? Add Py_InitializeFromArgv()?

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: PySys_SetArgvEx() can be called before Py_Initialize(), but arguments passed to this function are not parsed. https://docs.python.org/dev/c-api/init.html#c.PySys_SetArgvEx -- ___ Python tracker

[issue36204] Deprecate calling Py_Main() after Py_Initialize()? Add Py_InitializeFromArgv()?

2019-03-05 Thread STINNER Victor
New submission from STINNER Victor : If Py_Main() is called after Py_Initialize(), the configuration read by Py_Main() is mostly ignored to only keep the configuration read and writen by Py_Initialize(). Only sys.argv and the internal "path configuration" are updated. Problem: in this case,

[issue36203] PyWeakref_NewRef docs are misleading

2019-03-05 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : The docs for `PyWeakref_NewRef` state "if callback is not callable, None, or NULL, this will return NULL and raise TypeError". It does not appear as though there is a callable check for the callback. -- messages: 337255 nosy: Maxwell Bernstein

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: Ok, the _PyPreConfig structure is now available and used internally. The API can likely be enhanced, but I prefer to open new follow-up issues like bpo-36202, since this issue has already a long list of changes :-) I close this issue. Nick: thanks for

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-36202: "Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake". -- ___ Python tracker ___

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-05 Thread STINNER Victor
New submission from STINNER Victor : Calling Py_DecodeLocale() before Py_Initialize() or _Py_InitializeCore() is broken since Python 3.7 if the C locale coercion (PEP 538) or UTF-8 mode (PEP 540) changes the encoding in the middle of _Py_InitializeCore(). I added a new phase to the Python

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Steve Dower
Steve Dower added the comment: The problem is that if we add lots of new constants in 3.7.3, code written in that version very easily becomes incompatible with 3.7.2 and earlier. So we don't like making changes like that. If we know which ones are "normally" defined on Linux machines, where

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: Description of this long serie of changes. I modified Py_Main() and _Py_InitializeCore() to clearly separate "pre-configuration" from "configuration" steps. The pre-configuration now decodes temporarily the command line arguments and uses its own command

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fffd380a4070aff39b7fd443d90e60746c1b623 by Victor Stinner in branch 'master': bpo-36142: _PyPreConfig_Read() sets LC_CTYPE (GH-12188) https://github.com/python/cpython/commit/4fffd380a4070aff39b7fd443d90e60746c1b623 --

[issue36201] AssertCountEqual does not work for nested dictionaries.

2019-03-05 Thread Walter Qian
New submission from Walter Qian : For dictionaries of dictionaries unittest.util._count_diff_all_purpose does not work correctly. It should recursively call itself when it encounters another dictionary. -- components: Tests messages: 337248 nosy: walterqian priority: normal severity:

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12183 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36199] libzmq.dll causes uncontrollable screen flickering when accessing windows 2012 R2 server through remote desktop

2019-03-05 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this as third party. libzmq.dll is not part of a standard Python 3 distribution. Search for an existing issue at the site's for PyZMQ [1] and ZeroMQ [2]. [1]: https://github.com/zeromq/pyzmq [2]: https://github.com/zeromq/libzmq -- nosy:

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset c656e25667c9acc0d13e5bb16d3df2938d0f614b by Victor Stinner in branch 'master': bpo-36142: Add _PyPreConfig_SetAllocator() (GH-12187) https://github.com/python/cpython/commit/c656e25667c9acc0d13e5bb16d3df2938d0f614b --

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14385] Support other types than dict for __builtins__

2019-03-05 Thread Kevin Shweh
Kevin Shweh added the comment: The patch for this issue changed LOAD_GLOBAL to use PyObject_GetItem when globals() is a dict subclass, but LOAD_NAME, STORE_GLOBAL, and DELETE_GLOBAL weren't changed. (LOAD_NAME uses PyObject_GetItem for builtins now, but not for globals.) This means that

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c by Victor Stinner in branch 'master': bpo-36142: _PyPreConfig_Write() sets the allocator (GH-12186) https://github.com/python/cpython/commit/7d2ef3ef5042356aaeaf832ad4204b7dad2e1b8c --

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-03-05 Thread Guido van Rossum
Guido van Rossum added the comment: Everyone watching, the PR is now ready for review! -- ___ Python tracker ___ ___

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Andrew Brezovsky
Andrew Brezovsky added the comment: I lean towards it being considered a bug fix. First, the lack of parity between Windows and Linux-based OSs causes confusion. Second, the current workaround to hard-code the value in is far from best practice. --

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset a9df651eb4c18a07ec309df190419613e95cba7b by Victor Stinner in branch 'master': bpo-36142: Add _PyMem_GetDebugAllocatorsName() (GH-12185) https://github.com/python/cpython/commit/a9df651eb4c18a07ec309df190419613e95cba7b --

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Done: https://github.com/python/cpython/pull/12183/ This adds quite a bunch of new constants so I would be keen on considering it an enhancement rather than a bugfix and land it in 3.8 only. As for 3.7 and 3.6 (and 2.7?) it may make sense to fix

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ./python -m test -W -u network -j0 -r -F test_asyncio ERROR: test_start_tls_server_1 (test.test_asyncio.test_sslproto.SelectorStartTLSTests) -- Traceback (most recent call last): File

[issue35782] Missing whitespace after comma in randrange raise error

2019-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Terry that no backport is warranted. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27409] List socket.SO_*, SCM_*, MSG_*, IPPROTO_* symbols

2019-03-05 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34776] Postponed annotations break inspection of dataclasses

2019-03-05 Thread Eric V. Smith
Eric V. Smith added the comment: I'm finally getting time to look at this. I'll see what I can do. -- ___ Python tracker ___ ___

[issue36187] Get rid of NamedStore

2019-03-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36187] Get rid of NamedStore

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d8b3a98c9098c66a714fd5593e1928af0ffbc631 by Serhiy Storchaka in branch 'master': bpo-36187: Remove NamedStore. (GH-12167) https://github.com/python/cpython/commit/d8b3a98c9098c66a714fd5593e1928af0ffbc631 --

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: The bug is hard to reproduce even manually. I can test a PR for you once it's ready. -- title: [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed. -> Add a cross-interpreter-safe mechanism to

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-03-05 Thread Open Close
Open Close added the comment: Am I wrong with something? But test_start_tls_server_1 in newly made cpython fails on my plain intel linux personal PC. If I comment out the FreeBSD conditional (to apply ssl.OP_NO_TLSv1_3), the test passes. If I change HELLO_MSG to 1*1024*1024 (msg328157),

[issue36200] display index on IndexError

2019-03-05 Thread SilentGhost
Change by SilentGhost : -- resolution: -> duplicate superseder: -> Add index attribute to IndexError ___ Python tracker ___ ___

[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-03-05 Thread Open Close
Change by Open Close : -- nosy: +op368 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36200] display index on IndexError

2019-03-05 Thread Aditya Shankar
Aditya Shankar added the comment: closed as this is a duplicate for https://bugs.python.org/issue18162 -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36200] display index on IndexError

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Possibly related issues in the past : issue18162, issue1534607 , issue21911, https://www.python.org/dev/peps/pep-0473/ -- nosy: +xtreak ___ Python tracker

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +12179 stage: -> patch review ___ Python tracker ___ ___

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Harmandeep Singh
Change by Harmandeep Singh : -- keywords: +patch pull_requests: +12178 stage: -> patch review ___ Python tracker ___ ___

[issue36200] display index on IndexError

2019-03-05 Thread Aditya Shankar
New submission from Aditya Shankar : considering a list of 5 elements, if the 6th element is asked, the Interpreter would raise IndexError: list index out of range, I think It'd be better if it actually said what the invalid index is Improvement benefits: *quicker debugging of faulty python

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-03-05 Thread James Edwards
James Edwards added the comment: It may be worth also addressing the fact that IPv6Network makes no restriction on it's netmask (when specified as a tuple). -- nosy: +jedwards ___ Python tracker

[issue36200] display index on IndexError

2019-03-05 Thread Aditya Shankar
Change by Aditya Shankar : -- components: +Interpreter Core title: display index on Index -> display index on IndexError type: -> enhancement versions: +Python 3.8 ___ Python tracker

[issue36200] display index on Index

2019-03-05 Thread Aditya Shankar
Change by Aditya Shankar : -- nosy: Aditya Shankar priority: normal severity: normal status: open title: display index on Index ___ Python tracker ___

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Eryk Sun
Eryk Sun added the comment: > do you mind if I make a PR with your code(I will of course author you)? Go for it. I prefer no credit, but you're free to do as you wish. -- ___ Python tracker

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-03-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @maxtrixise, thanks for PR, > there is a function for the validation of an address with the netmask Which one do you want to use? -- ___ Python tracker

[issue36199] libzmq.dll causes uncontrollable screen flickering when accessing windows 2012 R2 server through remote desktop

2019-03-05 Thread Michel Nijs
New submission from Michel Nijs : My internal Windows team has identified libzmq.dll to be the culprit. When the file is renamed and the server restarted, the issue goes away. The screen/desktop flickers multiple times per second and we cannot click on anything or do anything on the server

[issue36197] Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset adfffc7343ce7ebc88ec734a803d3247ba8927fb by Serhiy Storchaka in branch 'master': Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180)

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset b35be4b3334fbc471a39abbeb68110867b72e3e5 by Victor Stinner in branch 'master': bpo-36142: Add _PyPreConfig.allocator (GH-12181) https://github.com/python/cpython/commit/b35be4b3334fbc471a39abbeb68110867b72e3e5 --

[issue31652] make install fails: no module _ctypes

2019-03-05 Thread Mr. Pligin
Mr. Pligin added the comment: Linux Mint 19.1 sudo make altinstall Traceback (most recent call last): File "/usr/src/Python-3.7.2/Lib/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/src/Python-3.7.2/Lib/runpy.py", line 85, in _run_code exec(code,

[issue34484] Unicode HOWTO incorrectly refers to Private Use Area for surrogateescape

2019-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the fix. @akuchling: safe to close this issue? -- ___ Python tracker ___ ___

[issue36085] Enable better DLL resolution

2019-03-05 Thread Steve Dower
Steve Dower added the comment: > Would this be a hard drop, i.e. would installing 3.8 be prevented in Windows > 7? Or would it install but require users to manually install KB2533623? That's the question I'm asking :) Python 3.9 is currently going to be a hard drop, according to our policy,

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-03-05 Thread Eric Snow
Eric Snow added the comment: This is resolved with gh-12159, no? -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list

[issue36114] test_multiprocessing_spawn dumps core in AMD64 FreeBSD CURRENT Shared 3.x

2019-03-05 Thread Eric Snow
Eric Snow added the comment: This is resolved with gh-12159, no? -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list

[issue36177] test_io: test_daemon_threads_shutdown_stdout_deadlock() fails on x86 Windows7 3.x

2019-03-05 Thread Eric Snow
Eric Snow added the comment: This is resolved with gh-12159, no? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12177 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-05 Thread Eric Snow
Eric Snow added the comment: Thanks for taking a look Victor! That info is helpful. It will likely be a few days before I can sort this out. Once I have addressed the problem I'll re-merge. I plan on using the "buildbot-custom" branch to make sure the buildbots are happy with the change

[issue35782] Missing whitespace after comma in randrange raise error

2019-03-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: Assigning to Raymond regarding the question about the backport. -- assignee: cheryl.sabella -> rhettinger ___ Python tracker ___

[issue36097] Use only public C-API in _xxsubinterpreters module.

2019-03-05 Thread Eric Snow
Eric Snow added the comment: Actually, this is independent of that change. It had to be reverted because the PR was based on the earlier PR from #33608. So I may merge this separately...or not, since it would mean having to sort out merge conflicts. :) -- stage: -> needs patch

[issue36097] Use only public C-API in _xxsubinterpreters module.

2019-03-05 Thread Eric Snow
Eric Snow added the comment: I'll re-merge this once this problem in issue #33608 is resolved. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker

[issue36196] sys.executable does not return python3 executable when using uwsgi

2019-03-05 Thread Inada Naoki
Inada Naoki added the comment: I don't think this is a documentation bug. They insert "uwsgi" to "sys.executable" manually. https://github.com/unbit/uwsgi/blob/3149df02ed443131c54ea6afb29fcbb0ed4d1139/plugins/python/pyutils.c#L398-402 #ifdef PYTHREE PyDict_SetItemString(sys_dict,

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I find issue6333 slightly relatable to this issue where it talks about external modules possibly closing sys.stdout/stderr. -- ___ Python tracker

[issue36197] Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is only for methods with METH_NOARGS. The code that calls such method, calls it with two arguments, passing NULL as the second argument. So the signature of the C function should have two parameters. Functions for methods with METH_KEYWORDS or

[issue36197] Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @serhiy, Thank you for your PR, I prefer your patch, just because you have just added the PyObject *Py_UNUSED(ignored) to the tuplegetter_reduce function. And in this case, you don't need to cast to (void(*)(void)). I will use this tip for the next

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread Andrius Laukavičius
Andrius Laukavičius added the comment: Peter Otten thanks for examples, though with capture_output function, I had a little bit different intentions. At first I actually did similarly as you described in case 2, where I called BasicConfig explicitly. Then I could specify where to redirect

[issue36196] sys.executable does not return python3 executable when using uwsgi

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: related uwsgi issue : https://github.com/unbit/uwsgi/issues/670 -- nosy: +xtreak ___ Python tracker ___

[issue36197] Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not correct fix for tuplegetter_reduce. tuplegetter_reduce should have two parameters, just the second is unused. -- nosy: +serhiy.storchaka ___ Python tracker

[issue36197] Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

2019-03-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12176 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36015] streamhandler cannot represent streams with an integer as name

2019-03-05 Thread Riccardo Magliocchetti
Riccardo Magliocchetti added the comment: @Vinay Do you have any update on this? thanks -- ___ Python tracker ___ ___

[issue36198] Misleading in library/sets document

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: To add to this is actually present in sets module documentation which has been deprecated since 2.6 though the report is true that the methods don't return a set. Link : https://docs.python.org/2/library/sets.html#set-objects -- nosy:

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: harman786 good luck for your PR, if you need a review. Have a nice day, -- ___ Python tracker ___

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29571] test_re is failing when local is set for `en_IN`

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the relationship with bpo-20087, so I removed the dependency. I fixed test_re in 3.7 and master branches. I close the issue. -- dependencies: -Mismatch between glibc and X11 locale.alias resolution: -> fixed stage: patch review

  1   2   >