[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,

[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() >>>

[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 ___

[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

[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

[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 ___

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Victor, Should I also fix these tests: test_urllibnet.py::urlretrieveNetworkTests.test_specified_path test_urllibnet.py::urlretrieveNetworkTests.test_header test_urllibnet.py::urlopenNetworkTests.test_fileno ? --

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-05 Thread Eryk Sun
Eryk Sun added the comment: Geoff, we probably need a new issue for this, but first, please report the value of len(os.getcwd()) in a case where check_output() fails. Prior to Windows 10, the working directory is limited to MAX_PATH - 2 (258) characters. (Windows uses the last two

[issue36192] Usage of `tmpnam_r` and `tempname` is dangerous, better use `mkstemp`

2019-03-05 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : Hi, I got these warning messages /usr/bin/ld: libpython2.7.a(posixmodule.o): in function `posix_tmpnam': /home/stephane/src/github.com/python/cpython/./Modules/posixmodule.c:7648: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'

[issue36085] Enable better DLL resolution

2019-03-05 Thread Paul Moore
Paul Moore added the comment: As someone whose work environment is still Windows 7, I'd prefer it if it were a soft desupport (i.e., we require users to manually ensure that the KB fix is installed, but we don't do anything specific to refuse to install Python on Win7). I'd rather not drop

[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 5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 by Victor Stinner in branch 'master': bpo-36142: Add _PyPreConfig.utf8_mode (GH-12174) https://github.com/python/cpython/commit/5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 --

[issue36191] pubkeys.txt contains bogus keys

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report but the tracker deals with bugs in CPython. python.org website has a Github repo and I think this can be reported at https://github.com/python/pythondotorg where it could get a better resolution. I would propose closing it as

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread SilentGhost
Change by SilentGhost : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36183] test_gdb failed on AMD64 FreeBSD CURRENT Shared 3.7 and 3.x

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: Since test_gdb only failed on your buildbot, I close the issue. As I wrote, I'm unable to reproduce the issue on my FreeBSD 12 VM. It's not easy to debug if I don't have a full access (root user) to the issue. Moreover, honestly, I'm not really excited to

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A little simplified reproducer : import io, contextlib, logging message = 'dummy test' with io.StringIO() as sio: with contextlib.redirect_stdout(sio), contextlib.redirect_stderr(sio): logging.warning(message) output =

[issue36192] Usage of `tmpnam_r` and `tempname` is dangerous, better use `mkstemp`

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix of this issue is Python 3. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread Andrius Laukavičius
New submission from Andrius Laukavičius : It looks like logging library uses always first assigned stderr object and won't change it even if it was reset. capture_output function redirects stdout and stderr to io.StringIO object, saves what was captured in string and returns it. And then

[issue22831] Use "with" to avoid possible fd leaks

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5b10b9824780b2181158902067912ee9e7b04657 by Serhiy Storchaka in branch 'master': bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) https://github.com/python/cpython/commit/5b10b9824780b2181158902067912ee9e7b04657

[issue35678] subprocess.check_output(): OSError: [WinError 87]

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > Geoff, we probably need a new issue for this, Yes please, this issue is closed. > Prior to Windows 10, the working directory is limited to MAX_PATH - 2 (258) > characters. (...) CreateProcessW fails with ERROR_INVALID_PARAMETER (87). Geoff: for your bug

[issue22831] Use "with" to avoid possible fd leaks

2019-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9e4861f52349011cd5916eef8e8344575e8ac426 by Serhiy Storchaka in branch 'master': bpo-22831: Use "with" to avoid possible fd leaks in tests (part 1). (GH-10928) https://github.com/python/cpython/commit/9e4861f52349011cd5916eef8e8344575e8ac426

[issue36192] Usage of `tmpnam_r` and `tempname` is dangerous, better use `mkstemp`

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, sure and there is a RuntimeWarning exception (tmpnam is a potential security risk to your program) when we want to use os.tmpnam(). And in the doc, there is a warning section. Ok, I close this issue. -- stage: -> resolved status: open ->

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: > For the backport, should I add support.TEST_HTTP_URL? Yes > Should I also fix these tests: Yes, all urllib and urllib2 tests which use http://www.example.com/ -- ___ Python tracker

[issue33608] [subinterpreters] 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: > That's okay, Victor. Thanks for jumping on this. I'll take a look when I > get a chance. >From what I saw, your first commit was enough to reproduce the crash. If I recall correctly, Antoine Pitrou modified the GIL so threads exit immediately when

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: Stéphane Wirtel backported his fix to Python 2.7. I didn't see failures related to example.com on 3.7 and master branches, so I think that it's now time to close the issue. Thanks Stéphane! -- resolution: -> fixed stage: patch review -> resolved

[issue36197] Compilation Warning for memoryview.tobytes

2019-03-05 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : gcc -pthread -c -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -g -Og -Wall-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include/internal -I.

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Ned Deily
Ned Deily added the comment: If someone is willing to make a doc fix PR for this, I will merge it for 3.6. -- ___ Python tracker ___

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok, I was working on a PR for this issue. but I am going to classify it as easy. -- nosy: +matrixise ___ Python tracker ___

[issue36197] Compilation Warning for memoryview.tobytes

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

[issue36198] Misleading in library/sets document

2019-03-05 Thread Han
New submission from Han : Doc/library/sets.rst said operation s.update(t)'s result is "return set s with elements added from t". But update()'s return value is None. I think change it to "set s with elements added from t" would be better. So are operations intersection_update(),

[issue36191] pubkeys.txt contains bogus keys

2019-03-05 Thread Peter Otten
Change by Peter Otten <__pete...@web.de>: -- nosy: +peter.otten ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48189/_testcapi.patch ___ Python tracker ___ ___ Python-bugs-list

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

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: I wrote C and Python code to check what is the effective encoding used by the LC_CTYPE locale before setlocale(LC_CTYPE, "") is called on Python 3.7. Result: Windows uses the Latin1 encoding. See attached files: _testcapi.patch + loc.py produced loc.log

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

2019-03-05 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file48188/loc.log ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 84772e0ab49ee09acb44e30551aa5cfc1eafe5dc by Victor Stinner (Stéphane Wirtel) in branch '2.7': [2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) (GH-12177)

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Harmandeep Singh
New submission from Harmandeep Singh : In Python 3.6, the docs for ThreadPoolExecutor mentions the following line: initializer is an optional callable that is called at the start of each worker thread; initargs is a tuple of arguments passed to the initializer. Should initializer raise an

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

2019-03-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Fix an other warning in the same PR _collections._tuplegetter.__reduce__ -- title: Compilation Warning for memoryview.tobytes -> Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. You are correct. The parameters were introduced in issue21423 in 3.7. It seems that this backported by mistake with PR 10958 where minor grammar was fixed with 40a61da40d252626f8b9ff524d76c1f0ccb3a4f7 but backporting caused

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

2019-03-05 Thread Joris VAN HOUTVEN
New submission from Joris VAN HOUTVEN : when serving a Flask app with uwsgi, using `sys.executable` will provide you the path to your uwsgi executable, not your python executable. However, the docs specify that it should always return the python interpreter:

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 359a2f3daba49fde0d3a07fb3c7a8b051c450d08 by Victor Stinner (Stéphane Wirtel) in branch 'master': bpo-33012: Fix compilation warnings in memoryobject.c and _collectionsmodule.c (GH-12179)

[issue36019] test_urllib fail in s390x buildbots: http://www.example.com/

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

[issue36194] Add "make regen-configure"

2019-03-05 Thread STINNER Victor
New submission from STINNER Victor : The policy of Fedora is to regenerate generated files in the source code of a package. python3.spec runs "autoconf" and "autoheader" to regenerate configure and pyconfig.h. IMHO it would be good to have such recipe upstream, something like "make

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Harmandeep Singh
Change by Harmandeep Singh : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue36197] Compilation Warning for memoryview.tobytes

2019-03-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12174 stage: -> patch review ___ Python tracker ___ ___

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: @Eryk do you mind if I make a PR with your code(I will of course author you)? Regardless from issue17561 I think this is an important fix because without IPPROTO_IPV6 is not possible to implement a dual-stack IPv4/6 socket on Windows. --

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2019-03-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +12175 ___ 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

[issue36193] Redirected stderr not reset properly when using logging

2019-03-05 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: I see various options to address this. (1) Change basicConfig() to use __stderr__ instead of stderr to avoid redirections from within the script. (2) Change your script to call basicConfig() explicitly, before the temporary redirection takes

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-36197 as a duplicate of this issue: """ gcc -pthread -c -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -g -Og -Wall-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers

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

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: I prefer to reuse bpo-33012. -- nosy: +vstinner resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Invalid function cast warnings with gcc 8 for METH_NOARGS ___ Python

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

2019-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 279657bac2856039ba422c18a3d7f227b455e9d6 by Victor Stinner in branch '3.7': [3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178) https://github.com/python/cpython/commit/279657bac2856039ba422c18a3d7f227b455e9d6 --

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-05 Thread Harmandeep Singh
Harmandeep Singh added the comment: I will raise a PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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 SilentGhost
Change by SilentGhost : -- resolution: -> duplicate superseder: -> Add index attribute to IndexError ___ Python tracker ___ ___

[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 ___ ___

[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 ___

[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),

[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

[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 --

[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 ___

[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

[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

[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

[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 ___ ___

[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

[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:

[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

[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 ___

[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,

[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 ___

[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:

[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,

[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

[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

[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

[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

[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 ___ ___

[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 ___ ___

[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

[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 ___

[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

[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:

[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 --

[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)

[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

[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 ___ ___

[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:

[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

[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

[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

[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,

[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

[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:

[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

[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

[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

  1   2   >