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

2019-03-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12190 stage: -> patch review ___ Python tracker ___ ___

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you @eamanu. -- keywords: -patch nosy: +matrixise stage: patch review -> ___ Python tracker ___

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread STINNER Victor
New submission from STINNER Victor : Seen on a custom builder: BUILDSTDERR: == BUILDSTDERR: ERROR: test_scrypt (test.test_hashlib.KDFTests) BUILDSTDERR: --

[issue35807] Update bundled pip to 19.0

2019-03-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +12189 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 25d13f37aa6743282d0b8b4df687ff8964b2 by Victor Stinner in branch 'master': bpo-36142: PYTHONMALLOC overrides PYTHONDEV (GH-12191) https://github.com/python/cpython/commit/25d13f37aa6743282d0b8b4df687ff8964b2 --

[issue36211] show full url when execute "make -C Doc/ serve"

2019-03-06 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : If we want to check the result of the compilation for the documentation, we can use open build/html or make serve ./configure --prefix=$PWD/build make -j 4 make PYTHON=../python -C Doc venv make PYTHON=../python -C Doc html serve Here is the current

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

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 25d13f37aa6743282d0b8b4df687ff8964b2 by Victor Stinner in branch 'master': bpo-36142: PYTHONMALLOC overrides PYTHONDEV (GH-12191) https://github.com/python/cpython/commit/25d13f37aa6743282d0b8b4df687ff8964b2 --

[issue36191] pubkeys.txt contains bogus keys

2019-03-06 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Agreed @xtreak, I have moved this issue to the respective Github repository https://github.com/python/pythondotorg/issues/1395 . I will close this issue. -- nosy: +nanjekyejoannah ___ Python tracker

[issue35807] Update bundled pip to 19.0

2019-03-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +12188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35807] Update bundled pip to 19.0

2019-03-06 Thread Donald Stufft
Donald Stufft added the comment: New changeset 01e0f439f5009f37b95ab516e91906fcc7fcb8c3 by Donald Stufft (Pradyun Gedam) in branch 'master': bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189) https://github.com/python/cpython/commit/01e0f439f5009f37b95ab516e91906fcc7fcb8c3

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

2019-03-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: fixed -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-03-06 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30766] Make CHECK_STATUS_PTHREAD signal-safe

2019-03-06 Thread Inada Naoki
Inada Naoki added the comment: May I close this issue? -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36210] ncurses versus cursus integration - platform differences and defaults

2019-03-06 Thread Michael Felt
New submission from Michael Felt : Only marking Python3.8, but this is a historical issue I have ignored as long as possible. There are many - ancient and recent issues open around the extension module _curses - and over the years it appears many assumptions have come into the code (such as

[issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

2019-03-06 Thread Jan Seeger
Jan Seeger added the comment: The intention for V4MAPPED is to allow "single-stack" usage of V4 and V6 addresses (or am I misunderstanding the purpose of the V4MAPPED socket option here?). The application only handles V6 addresses, and the system transparently converts from mapped addresses

[issue36191] pubkeys.txt contains bogus keys

2019-03-06 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

2019-03-06 Thread Jan Seeger
New submission from Jan Seeger : I'm working with aiocoap, which uses the AI_V4MAPPED flag to use IPv4-mapped addresses for dual-stack support. When trying to run on Windows, creating a connection fails, because the socket option IPV6_V6ONLY is set to true per default on Windows, whereas the

[issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35934. -- nosy: +giampaolo.rodola, vstinner ___ Python tracker ___ ___

[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2019-03-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12187 ___ 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-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12186 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36203] PyWeakref_NewRef docs are misleading

2019-03-06 Thread Windson Yang
Windson Yang added the comment: Yes, Maxwell. I guess the docs are misleading, the code locate in https://github.com/python/cpython/blob/master/Objects/weakrefobject.c#L748 if (callback == Py_None) callback = NULL; if (callback == NULL) /* return existing weak reference

[issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

2019-03-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm not sure I understand the issue, but setting IPV6_V6ONLY to 0 by default is not an option because asyncio wants to serve IPv4 and IPv6 with 2 distinct sockets on purpose. The reason for that is because when an IPv4 connection occurs we want

[issue36211] show full url when execute "make -C Doc/ serve"

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

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

2019-03-06 Thread muhzi
muhzi added the comment: Yeah, makes sense -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36193] Redirected stderr not reset properly when using logging

2019-03-06 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: [Andrius] > So it is not possible to consistently manage stderr when it involves > > logging library without explicitly "manage" it? That's what I think, at least from within a script. To me redirect_xxx() always looked like a workaround to

[issue36207] robotsparser deny all with some rules

2019-03-06 Thread wats0ns
New submission from wats0ns : RobotsParser parse a "Disallow: ?" rule as a deny all, but this is a valid rule that should be interpreted as "Disallow: /?*" or "Disallow: /*?*" -- components: Library (Lib) messages: 337285 nosy: quentin-maire priority: normal severity: normal status:

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

2019-03-06 Thread Joris VAN HOUTVEN
Joris VAN HOUTVEN added the comment: OK, so it is indeed uwsgi interfering with the sys.executable value. In the github pst Inada Naoki refers to: "uwsgi is your current python interpreter, as it links the libpython.so. Getting sys.executable is not possibile as there is no binary path

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 098b139816f379271b8d4de2561b5805dd47d229 by Victor Stinner (stratakis) in branch '2.7': bpo-36147: Fix a memory leak in ctypes s_get() (GH-12102) https://github.com/python/cpython/commit/098b139816f379271b8d4de2561b5805dd47d229 --

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread miss-islington
miss-islington added the comment: New changeset 42c649347a11789666c461ecbd3bdca27b957c9b by Miss Islington (bot) in branch '3.7': bpo-36209: Fix typo on hashlib error message (GH-12194) https://github.com/python/cpython/commit/42c649347a11789666c461ecbd3bdca27b957c9b -- nosy:

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

2019-03-06 Thread Steve Dower
Steve Dower added the comment: RE making UnixMain public, I'd rather the core runtime require a known encoding, rather than trying to detect it. We should move the call into the detection logic into Programs/python.c so that embedders have to opt-in to detection (many embedding scenarios

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12193 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-06 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity scan reports a leak on _hotshot.c: Python-2.7.15/Modules/_hotshot.c:442: alloc_arg: "unpack_string" allocates memory that is stored into "s1". Python-2.7.15/Modules/_hotshot.c:329:5: alloc_fn: Storage is returned from allocation function

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b71e28ea91259ca3914e2ff84fc126795ea6b848 by Victor Stinner (Emmanuel Arias) in branch 'master': bpo-36209: Fix typo on hashlib error message (GH-12194) https://github.com/python/cpython/commit/b71e28ea91259ca3914e2ff84fc126795ea6b848

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: Thanks Charalampos Stratakis! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2019-03-06 Thread Steve Dower
Steve Dower added the comment: I like having the functions you added to parse argv into config, and I like that they are separate from setting sys.argv. Might it be better to go the other way and deprecate calling Main *without* Initialize? That's easy to fix in Programs/python.c, and

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-03-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36193] Redirected stderr not reset properly when using logging

2019-03-06 Thread Andrius Laukavičius
Andrius Laukavičius added the comment: Peter, well I don't have deep experience with logging lib to know all ins and outs. So I might not be correct person to define what should be changed specifically. But I think it should be consistent on all standard libraries how it handles

[issue34033] distutils is not reproducible

2019-03-06 Thread Zbyszek Jędrzejewski-Szmek
Change by Zbyszek Jędrzejewski-Szmek : -- nosy: +zbysz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36201] AssertCountEqual does not work for nested dictionaries.

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

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-06 Thread Geoff Alexander
New submission from Geoff Alexander : I've found that subprocess.check_output() fails on Windows with OSError: [WinError 87] when the current directory's name is too long: ``` Traceback (most recent call last): File "migration.py", line 169, in migrate() File "migration.py", line 80,

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +12192 stage: -> patch review ___ Python tracker ___ ___

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-06 Thread SilentGhost
Change by SilentGhost : -- type: -> behavior versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-06 Thread Steve Dower
Steve Dower added the comment: The problem with improving the generic error message is that we then build a platform limitation into Python and if a later version of Windows fixes it then Python needs to make another fix. As Eryk said on the other issue, this may be because the current

[issue36203] PyWeakref_NewRef docs are misleading

2019-03-06 Thread Maxwell Bernstein
Maxwell Bernstein added the comment: NewProxy checks if it's callable, so I suppose the code should be fixed. On Wed, Mar 6, 2019, 03:32 Windson Yang wrote: > > Windson Yang added the comment: > > Yes, Maxwell. I guess the docs are misleading, the code locate in >

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: The bug: https://github.com/python/cpython/pull/12073/files#r263026496 -- ___ Python tracker ___

[issue36186] [2.7] Coverity scan: Modules/linuxaudiodev.c , fd handle is not closed.

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: Thanks Charalampos Stratakis! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2019-03-06 Thread Geoff Alexander
Geoff Alexander added the comment: The [WinError 87] does seems to be caused by the current directory's name being too long. The value of len(os.getcwd())is 260 when the exception occurs. The failing call was subprocess.check_output("git ls-files", shell=True). I've open Issue 36213 to

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: subprocess.Popen calls _winapi.CreateProcess. The current_directory is a wchar_t* string (Py_UNICODE*) passed to Windows CreateProcessW() (Unicode flavor of the API).

[issue36209] [EASY Doc] Typo in hashlib error message

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: Thanks Emmanuel Arias. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset bb9593af0ac835b93c2834d44b72fa34e30efed0 by Benjamin Peterson (Davide Rizzo) in branch 'master': closes bpo-36139: release GIL around munmap(). (GH-12073) https://github.com/python/cpython/commit/bb9593af0ac835b93c2834d44b72fa34e30efed0

[issue36214] AC_RUN_IFELSE macros not used as arguments of AC_CACHE_VAL et al

2019-03-06 Thread Xavier de Gaye
New submission from Xavier de Gaye : When the AC_RUN_IFELSE macro is used as the 'COMMANDS-TO-SET-IT' argument of the AC_CACHE_VAL or AC_CACHE_CHECK macros, it is possible to override the last argument of AC_RUN_IFELSE that is used when cross-compiling and set the variable with a cached

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

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: > RE making UnixMain public, I'd rather the core runtime require a known > encoding, rather than trying to detect it. We should move the call into the > detection logic into Programs/python.c so that embedders have to opt-in to > detection (many embedding

[issue36186] [2.7] Coverity scan: Modules/linuxaudiodev.c , fd handle is not closed.

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b2aefd77e1da438aed649d018d6aa504ec35eac8 by Victor Stinner (stratakis) in branch '2.7': [2.7] bpo-36186: Fix linuxaudiodev.linux_audio_device() error handling (GH-12163)

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: This change broke the Windows 7 buildbot: https://buildbot.python.org/all/#/builders/40/builds/1745 Example: 0:01:34 [ 66/420/1] test_mmap crashed (Exit code 2147483651) -- running: test_tools (1 min 22 sec) Fatal Python error: Python memory allocator

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: > As Eryk said on the other issue, ... link: https://bugs.python.org/issue35678#msg337171 -- ___ Python tracker ___

[issue9566] Compilation warnings under x64 Windows

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: > New changeset edad38e3e05586ba58291f47756eb3fb808f5577 by Victor Stinner > (Jeremy Kloth) in branch 'master': > bpo-9566: Fix compiler warnings in gcmodule.c (GH-11010) It fixed the last known warning. Thanks everyone who was involved in this funny ride.

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

2019-03-06 Thread Steve Dower
Steve Dower added the comment: > If you want to force the usage of UTF-8, you can opt-in for UTF-8 mode: call > putenv("PYTHONUTF8=1") before Py_UnixMain() for example. I'm not talking about forcing UTF-8, I'm talking about *assuming* it (and letting "someone else" worry about forcing it).

[issue32805] Possible integer overflow when call PyDTrace_GC_DONE()

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: I don't think that Python 3.7 should be modified. I prefer to avoid any risk and only modify Python 3.8. -- versions: -Python 3.6, Python 3.7 ___ Python tracker

[issue16385] evaluating literal dict with repeated keys gives no warnings/errors

2019-03-06 Thread Jonathan Fine
Jonathan Fine added the comment: I mention this issue, and related pages, in [Python-ideas] dict literal allows duplicate keys https://mail.python.org/pipermail/python-ideas/2019-March/055717.html It arises from a discussion of PEP 584 -- Add + and - operators to the built-in dict class.

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset dc078947a5033a048d804e244e847b5844734439 by Victor Stinner (Davide Rizzo) in branch 'master': bpo-36139: Fix mmap_object_dealloc(): hold the GIL to call PyMem_Free() (GH-12199)

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: """ r263026496">https://github.com/python/cpython/pull/12073/files#r263026496 """ Oh wow, that's really strange. I'm sure that I wrote "https://...; URL but my URL became "r263026496">https://...; !? 3rd attempt to post the link:

[issue9566] Compilation warnings under x64 Windows

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset edad38e3e05586ba58291f47756eb3fb808f5577 by Victor Stinner (Jeremy Kloth) in branch 'master': bpo-9566: Fix compiler warnings in gcmodule.c (GH-11010) https://github.com/python/cpython/commit/edad38e3e05586ba58291f47756eb3fb808f5577

[issue32021] Brotli encoding is not recognized by mimetypes

2019-03-06 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12195 stage: -> patch review ___ Python tracker ___ ___

[issue36216] urlsplit does not handle NFKC normalization

2019-03-06 Thread Steve Dower
New submission from Steve Dower : URLs encoded with Punycode/IDNA use NFKC normalization to decompose characters [1]. This can result in some characters introducing new segments into a URL. For example, \uFF03 is not equal to '#' under direct comparison, but normalizes to '#' which changes

[issue36216] urlsplit does not handle NFKC normalization

2019-03-06 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +12196 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue36210] ncurses versus cursus integration - platform differences and defaults

2019-03-06 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12197 stage: -> patch review ___ Python tracker ___ ___

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread Davide Rizzo
Davide Rizzo added the comment: BTW should this be backported to 3.7? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32805] Possible integer overflow when call PyDTrace_GC_DONE()

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: The warning in the C code has been fixed by: New changeset edad38e3e05586ba58291f47756eb3fb808f5577 by Victor Stinner (Jeremy Kloth) in branch 'master': bpo-9566: Fix compiler warnings in gcmodule.c (GH-11010)

[issue36215] Should AppVeyor run compile Python in debug mode?

2019-03-06 Thread STINNER Victor
New submission from STINNER Victor : The Windows buildbots have been broken by PR 12073. Problem: AppVeyor didn't catch the bug before the change has been merged. Why? Because AppVeyor builds Python in release mode, whereas Windows buildbots build Python in debug mode.

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: The bug: https://github.com/python/cpython/pull/12073/files#r263026496 (correct link, sorry) -- If nobody comes up quickly with a fix, I will revert the change to repair Windows buildbots: PR 12198, as part of the buildbot policy ("revert on failure"). I

[issue26910] dictionary literal should not allow duplicate keys

2019-03-06 Thread Jonathan Fine
Jonathan Fine added the comment: I mention this issue, and related pages, in [Python-ideas] dict literal allows duplicate keys https://mail.python.org/pipermail/python-ideas/2019-March/055717.html It arises from a discussion of PEP 584 -- Add + and - operators to the built-in dict class.

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread Davide Rizzo
Change by Davide Rizzo : -- pull_requests: +12194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread Davide Rizzo
Davide Rizzo added the comment: Thanks Victor. I think this fixes it https://github.com/python/cpython/pull/12199 -- ___ Python tracker ___

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread STINNER Victor
STINNER Victor added the comment: The second commit does fix the regression (I tested manually on Windows with Python compiled in debug mode). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36217] recvmsg support on Windows

2019-03-06 Thread chrysn
New submission from chrysn : Windows has support for advanced socket APIs of RFC 3542 (eg. pktinfo, see https://docs.microsoft.com/en-us/windows/desktop/api/ws2ipdef/ns-ws2ipdef-in6_pktinfo), but those can not be used on Python as there is no recvmsg implementation (tested on 3.7.1 on

[issue33346] Syntax error with async generator inside dictionary comprehension

2019-03-06 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Adding ned and Łukasz since this seems to happen on release builds. -- nosy: +lukasz.langa, ned.deily, xtreak ___ Python tracker

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-06 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +12198 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue23205] Unit test needed for IDLE's GrepDialog.py's findfiles()

2019-03-06 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've opened a PR with the changes. I did several commits, one for each stage. That is, the first one adds the test, then the second one moves `findfiles` to the module level, etc. I added the `onerror` function because if a directory that doesn't exist is

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread SilentGhost
SilentGhost added the comment: Can confirm on 3.7.1 on Linux. The same is happening for sorted. I wonder if the optimisation done in 1e34da49ef2 is responsible -- components: +Interpreter Core nosy: +SilentGhost, rhettinger stage: -> needs patch

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Lyn Levenick
New submission from Lyn Levenick : Running Python 3.7.2, it is possible to segfault the process when sorting some arrays. Executed commands are $ python3 Python 3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright",

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Can confirm for 3.7.2 on my macOS 10.14 system. Although this is the case in 3.7 on my current build of the master branch I get the following AssertionError instead: Assertion failed: (v->ob_type == w->ob_type), function unsafe_tuple_compare, file

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +elliot.gorokhovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Zachary Ware
Zachary Ware added the comment: Confirmed on Linux: $ python3.6 Python 3.6.8 (default, Mar 5 2019, 22:01:36) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> [(1.0, 1.0), (False, "A"), 6].sort() Traceback (most recent call last): File "",

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +elliot.gorokhovsky, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @remi.lapeyre please make sure you are not unsubscribing others by mistake while adding comment. -- nosy: +elliot.gorokhovsky, zach.ware ___ Python tracker

[issue36216] urlsplit does not handle NFKC normalization

2019-03-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +martin.panter, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36219] Add edit option in IDLE to convert smart quotes to ascii quotes

2019-03-06 Thread Raymond Hettinger
New submission from Raymond Hettinger : Some of my students routinely have to copy code samples from PDF documents where the regular Python acceptable ASCII quotation marks have been replaced by smart quotes. Let's add an Edit menu option to fix smart-quotes. -- assignee:

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread SilentGhost
Change by SilentGhost : -- nosy: +elliot.gorokhovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @xtreak, sorry for that. I think the issue may come from https://github.com/python/cpython/blob/master/Objects/listobject.c#L2273-L2357 where ms.key_compare is set, the conditions on the first ifs looks weird to me and I suspect ms.key_compare is set to

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: On mac I confirm that 1e34da49ef2 segfaults and 6c6ddf97c4 gives the expected result: ➜ cpython git:(6c6ddf97c4) ✗ ./python.exe tests.py Traceback (most recent call last): File "tests.py", line 1, in [(1.0, 1.0), (False, "A"), 6].sort() TypeError: '<'

[issue36218] .sort() segfaults consistently on crafted input

2019-03-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The code segfaults at https://github.com/python/cpython/blob/master/Objects/listobject.c#L2164 coming from https://github.com/python/cpython/blob/master/Objects/listobject.c#L1324. -- nosy: -elliot.gorokhovsky, zach.ware

[issue11614] import __hello__ is broken in Python 3

2019-03-06 Thread Solomon Ucko
Solomon Ucko added the comment: The byte code could be further optimized (because this is such a speed-critical module! :)): 1 0 LOAD_CONST 2 (True) 3 STORE_NAME 1 (initialized) 2 6 LOAD_NAME2 (print)

[issue33944] Deprecate and remove pth files

2019-03-06 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: > There was a single .pth file that I deemed "malicious" since it completely breaks the `subprocess` module (`subprocess-run`) It only seems to set an attribute. What's wrong with that? Does the early import of subprocess cause problems? --

[issue33944] Deprecate and remove pth files

2019-03-06 Thread Anthony Sottile
Anthony Sottile added the comment: > > There was a single .pth file that I deemed "malicious" since it completely breaks the `subprocess` module (`subprocess-run`) > > It only seems to set an attribute. What's wrong with that? Does the early import of subprocess cause problems? It assigns

[issue36139] release GIL on mmap dealloc

2019-03-06 Thread Ezio Melotti
Ezio Melotti added the comment: > Oh wow, that's really strange. I'm sure that I wrote "https://...; URL but my > URL became "r263026496">https://...; !? The links are now fixed (Roundup was getting confused by the rNN, since it looks like a SVN revision). -- nosy:

[issue36220] LOAD_NAME and LOAD_GLOBAL handle dict subclasses for globals() differently

2019-03-06 Thread Kevin Shweh
New submission from Kevin Shweh : LOAD_NAME and LOAD_GLOBAL don't treat dict subclasses for globals() the same way. If globals() is a dict subclass, LOAD_GLOBAL will respect overridden __getitem__, but LOAD_NAME will use PyDict_GetItem. This causes global lookup to behave differently in

  1   2   >