[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-26 Thread Arne Recknagel
Arne Recknagel added the comment: I'll keep shouting from the sidelines, if it's ok. Is the following behavior still desired >>> [z := x for x in 'foo'] # valid over forcing parentheses here as well? >>> [(z := x) for x in 'foo'] # also valid, but redundant parentheses The section on

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
New submission from Thomas Haller : The line number for the frame object changed behaviour in 3.8. I am seeing this on Fedora rawhide, which ships "3.8.0~b4-1.fc32" package. That happens when wrapping lines for calling functions. Before, the line number sys._getframe(1).f_lineno indicate the

[issue38112] Compileall improvements

2019-09-26 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 4267c989e7fc6cd528e8a1d04a07fac5cca85ec7 by Petr Viktorin in branch 'master': bpo-38112: compileall: Skip long path path on Windows if the path can't be created (GH-16414)

[issue38112] Compileall improvements

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: Similar errors on AMD64 Windows10 3.x: https://buildbot.python.org/all/#/builders/3/builds/3567 pythoninfo: sys.windowsversion: sys.getwindowsversion(major=10, minor=0, build=17134, platform=2, service_pack='') windows.RtlAreLongPathsEnabled: False -- And

[issue38281] "+" ignored when determining file mode in gzip.GzipFile.__init__

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is a breaking change, it will break the code that reads gzipped temporary files. Note also that even if this change be accepted, you could not use this feature until Python 3.9 be released. But you can write to temporary files in all Python

[issue18309] Make python slightly more relocatable

2019-09-26 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Yes. msg191944 from Nick Coghlan, made me think that with all the initialization rework that appeared to be underway you want to incorporate that presented idea of basing the default onto the location of the libpython.so or the pythonX.X.dll instead of

[issue38112] Compileall improvements

2019-09-26 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +15994 pull_request: https://github.com/python/cpython/pull/16414 ___ Python tracker ___

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 90b4e49c98dd0ff948e13dd0618240c2294eb23d by Benjamin Peterson > in branch '2.7': > bpo-38174 follow up: Remove loadlibrary.c from VS9.0. (GH-16411) Oh, I was going to report AMD64 Windows7 SP1 VS9.0 2.7 buildbot failure and propose a fix,

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, there is a regression: vstinner@apu$ ./python Python 3.9.0a0 (heads/master:88feaecd46, Sep 26 2019, 03:26:37) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import _tkinter Could

[issue22273] abort when passing certain structs by value using ctypes

2019-09-26 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38272] test_ctypes: test_array_in_struct() failed on ARMv7 Debian buster 3.7 and PPC64LE Fedora 3.7

2019-09-26 Thread Vinay Sajip
Vinay Sajip added the comment: Closed, as these buildbots are now green. This was addressed via changes to the original PR for bpo-22273. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue38112] Compileall improvements

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: test_compileall failed on AMD64 Windows8.1 Non-Debug 3.x: https://buildbot.python.org/all/#/builders/12/builds/3257 Example: ERROR: test_compile_dir_pathlike (test.test_compileall.CompileallTestsWithSourceEpoch)

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-26 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution, I close it. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38223] Reorganize test_shutil

2019-09-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-26 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 1ad7be2f16cc9955f271f57a5089602bb41eee85 by Stéphane Wirtel (Mohammad Dehghan) in branch 'master': bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016)

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +15995 pull_request: https://github.com/python/cpython/pull/16415 ___ Python tracker ___

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +15996 pull_request: https://github.com/python/cpython/pull/16416 ___ Python tracker ___

[issue38244] example in ftplib.rst uses ftp.debian.org but it's not reachable

2019-09-26 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.8 ___ Python tracker ___

[issue38244] example in ftplib.rst uses ftp.debian.org but it's not reachable

2019-09-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset a7414571a113815033fdc9f7abb3f5a24e44c472 by Giampaolo Rodola (Prateek Nayak) in branch 'master': bpo-38244: [Documentation] Fix unreliable link to sever in ftplib.rst (#16319)

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +15998 pull_request: https://github.com/python/cpython/pull/16418 ___ Python tracker ___

[issue38112] Compileall improvements

2019-09-26 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks! The buildbot complained in the pull request a while ago; I commented there that I'm looking into it. I'd appreciate a review for the fix; I don't have a good way to test it other than offer it to the buildbots. --

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: Benjamin: Python 3.5 is in the Versions field, but I don't see any change related to 3.5 yet. It's also impacted, no? Do you plan to backport the fix? I can do it if you want. -- resolution: fixed -> status: closed -> open

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-26 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 68040edb79895c577e2526ad5f30b1b161b2c32b by Stéphane Wirtel (Miss Islington (bot)) in branch '3.8': bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016) (GH-16415)

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-26 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 5017a645b0be53c4f399ae39ac897539e8416ca6 by Stéphane Wirtel (Miss Islington (bot)) in branch '3.7': bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016) (GH-16416)

[issue28286] gzip guessing of mode is ambiguous

2019-09-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15997 pull_request: https://github.com/python/cpython/pull/16417 ___ Python tracker ___

[issue38223] Reorganize test_shutil

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4f2eac04e4fee4d7d188ad2eeb0e610e3d7254bb by Serhiy Storchaka in branch 'master': bpo-38223: Reorganize test_shutil. (GH-16281) https://github.com/python/cpython/commit/4f2eac04e4fee4d7d188ad2eeb0e610e3d7254bb --

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue12458 and issue34372. Related issues: issue34876, issue16806, issue31241. -- ___ Python tracker ___

[issue18309] Make python slightly more relocatable

2019-09-26 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Hi, Nice to see some progress. Still, I checked todays https://github.com/python/cpython.git master and 3.8 branch (is that the current cpython development code?). Neither of them contain a call to dladdr beside the macos code path mentioned in msg191994

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-26 Thread Guido van Rossum
Guido van Rossum added the comment: I beg to differ. The rule I use is: If it doesn't work without parentheses, try adding them. That's simple rnough. -- ___ Python tracker

[issue18309] Make python slightly more relocatable

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: Hum, I am confused. I understood that this issue is able customizing sys.path when Python is embedded. But it seems like the feature request is more about the *default* implementation, not how to reimplement it outside Python (with custm code). --

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
Change by Thomas Haller : -- components: +Interpreter Core type: -> behavior versions: +Python 3.8 ___ Python tracker ___ ___

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
Thomas Haller added the comment: Do you have a reference to the discussion about that? -- ___ Python tracker ___ ___

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Right, it is intended change. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue38112] Compileall improvements

2019-09-26 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 8e7bb991de7c88583bc6663d8bbc541054ca8dc4 by Petr Viktorin (Lumír 'Frenzy' Balhar) in branch 'master': bpo-38112: Compileall improvements (GH-16012) https://github.com/python/cpython/commit/8e7bb991de7c88583bc6663d8bbc541054ca8dc4 --

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-09-26 Thread Marcin Gozdalik
Marcin Gozdalik added the comment: A program which failed under Python 3.6 with TypeError: 'int' object is not callable still fails under Python 3.7.4 with same exception: import signal import os import sys import time import multiprocessing def fail(): def handler(*args):

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread miss-islington
miss-islington added the comment: New changeset df6ac7e2b82d921a6e9ff5571b40c6dbcf635581 by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-38275: Skip ssl tests for disabled versions (GH-16386) https://github.com/python/cpython/commit/df6ac7e2b82d921a6e9ff5571b40c6dbcf635581

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: If you have no time for contribution -- that's fine, CPython is the Open Source project driven by volunteers. The only caveat is that the issue may wait for years before we find a champion to pick it up. For example, this particular problem is on the very

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: AMD64 RHEL8 LTO 3.x is green again. I will keep the issue open until all mentionned buildbots are back to green (when test_gdb pass on these workers). -- ___ Python tracker

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Alori
Alori added the comment: ...would solve the issue (cut off from previous post) -- ___ Python tracker ___ ___ Python-bugs-list

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread Steve Dower
Steve Dower added the comment: There shouldn't be any annoyance to users, as nobody should be using Windows 8 anymore (the update to 8.1 was free and difficult to avoid). Updating to NTDDI_WINBLUE is fine, but not essential. Nothing about that flag has a real impact until we need or want to

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
Malversán added the comment: I'm sorry to read that. I thought the report could be enough to reach whoever put that SOCK_STREAM-only checks and ask him why, when the library actually works well also with other socket types. If I ever find enough time to dive into the CPython repository I

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +16007 pull_request: https://github.com/python/cpython/pull/16428 ___ Python tracker ___

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
Malversán added the comment: In the past it took me two days to analyze asyncio code, to think up and integrate the hack I´m using for this. But I´m not kidding when I tell you that it took me two years to find a while to come here and properly report it. I'm sorry, but I never have time to

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16005 pull_request: https://github.com/python/cpython/pull/16426 ___ Python tracker ___

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 doesn't seem to be affected: I failed to reproduce the test_gdb failure on Python 2.7 with LTO. -- versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue38112] Compileall improvements

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: FYI test_compileall.test_compile_dir_maxlevels() also fails on AMD64 FreeBSD CURRENT Shared 3.x: https://buildbot.python.org/all/#builders/168/builds/1529 -- ___ Python tracker

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Bruce Merry
Bruce Merry added the comment: I've submitted a PR: https://github.com/python/cpython/pull/16429 -- ___ Python tracker ___ ___

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread Eryk Sun
Eryk Sun added the comment: > I'm not sure that there is a big benefit for us to drop Windows 8 > support (only Windows 8 but continue to support Windows 8.1), > compared to the annoyance for users. According to statcounter.com and netmarketshare.com, Windows 8 still has 1% or less of the

[issue16575] ctypes: unions as arguments

2019-09-26 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +16009 pull_request: https://github.com/python/cpython/pull/16430 ___ Python tracker ___

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > Oh, there is a regression: (...) PyInit__tkinter() calls Py_GetProgramName(). > But Python initialization no longer copies PyConfig path configuration into > _Py_path_info (the global configuration). So Python has to recompute the path > configuration

[issue18309] Make python slightly more relocatable

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: My plan is not to change the default implementation to calculate the path configuration, but make it easier to customize the path configuration. One idea is to rewrite Modules/getpath.c and PC/getpathp.c in Python and convert it to a frozen module. It is

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +16004 pull_request: https://github.com/python/cpython/pull/16425 ___ Python tracker ___

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset e6b5ed1fbdbb7b44c7ab2a353fa0bc726b073740 by Victor Stinner in branch '3.7': bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) (GH-16426) https://github.com/python/cpython/commit/e6b5ed1fbdbb7b44c7ab2a353fa0bc726b073740

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Bruce Merry
Change by Bruce Merry : -- keywords: +patch pull_requests: +16008 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/16429 ___ Python tracker

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 9f77268f901cc3e8874e5042361520a0e482476a by Christian Heimes in branch 'master': bpo-38275: Fix test_ssl issue caused by GH-16386 (#16428) https://github.com/python/cpython/commit/9f77268f901cc3e8874e5042361520a0e482476a --

[issue38287] tempfile.TemporaryDirectory() should behave the same as a context manager as when used directly

2019-09-26 Thread Pat Gunn
New submission from Pat Gunn : Right now, when tempfile.TemporaryDirectory() is used as a context manager, the context variable is stringy, usable as a string containing the directory name it made. When used directly, it returns an object that does not coerce to a nice string, instead

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
Thomas Haller added the comment: > We could keep f_lineno unchanged, despite the fact that its value can be wrong It was not completely wrong. It was seemingly good enough for the past 20+ years. The change in behaviour is one thing. It's also inconvenient that, even when being aware of

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 64b4a3a2deabcd4103fac2759a311fe94159b4d1 by Victor Stinner in branch 'master': bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) https://github.com/python/cpython/commit/64b4a3a2deabcd4103fac2759a311fe94159b4d1 --

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +16003 pull_request: https://github.com/python/cpython/pull/16424 ___ Python tracker ___

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +16006 pull_request: https://github.com/python/cpython/pull/16427 ___ Python tracker ___

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread miss-islington
miss-islington added the comment: New changeset c9893400652f38804aed0be8d8f70feda9465c47 by Miss Islington (bot) in branch '3.8': bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) https://github.com/python/cpython/commit/c9893400652f38804aed0be8d8f70feda9465c47 --

[issue38275] test_ssl: skip tests for disabled TLS/SSL versions

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: The change caused many buildbot failures, see examples from IRC logs below. I understand that PR 16428 will fix them. 17:22 < py-bb> Build s390x SLES 3.x #3824 is complete: Failure [failed test (failure)] -

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Alori
New submission from Alori : https://bugs.python.org/issue34097 addressed a zipfile.ZipFile() issue where zip files with timestamps prior to the year 1980 could not be created. The fix adds the strict_timestamps=True|False keyword argument to the ZipFile class. shutil.make_archive() is a

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Tahia K
Tahia K added the comment: Hello, I'm interested in picking this task up. Would it be alright for me to grab it? -- nosy: +ta1hia ___ Python tracker ___

[issue38141] Use fewer statics in Argument Clinic.

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-26 Thread Tahia K
Change by Tahia K : -- nosy: +ta1hia ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I do not know such workaround. At best, you can analyze the code object and get the line number of the next instruction. It may be the line past the last line of the function call, or be equal to it if the function call is the part of complex

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: We can implement these using the following procedure: 1. Use only one socket type per pull request 2. Add support for, e.g. SOCK_SEQPACKET to asyncio code 3. Add test(s) that checks that SOCK_SEQPACKET works fine (./Lib/test/test_asyncio folder, perhaps

[issue37883] threading.Lock.locked is not documented

2019-09-26 Thread Ido Michael
Ido Michael added the comment: Hey Remi, I've fixed it and created PR on the issue. Ido -- nosy: +Ido Michael ___ Python tracker ___

[issue38239] test_gdb fails on AMD64 Fedora Stable LTO 3.8 and AMD64 RHEL8 LTO 3.x: Unexpected gdb output

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16001 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16422 ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16002 pull_request: https://github.com/python/cpython/pull/16423 ___ Python tracker ___

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread Eryk Sun
Eryk Sun added the comment: Steve, in PR 15951 you updated Py_WINVER to 0x0602. I think it should be 0x0603 (_WIN32_WINNT_WINBLUE) and Py_NTDDI should be NTDDI_WINBLUE. Windows 8 hasn't been supported since 2016. Windows 8.1 is supported until 2023. --

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
New submission from Malversán : Currently the BaseEventLoop class in asyncio has explicit checks to raise ValueError when creating a connection if the socket argument has a type other than SOCK_STREAM: .create_connection() .create_server() This is also applicable for class

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Malversán
Malversán added the comment: Certainly I have only tested it with SOCK_SEQPACKET, but apparently no one has ever tested this before with a socket type other than SOCK_STREAM. It may be worth to consider the possibility that the current asyncio implementation may also support some other

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16000 pull_request: https://github.com/python/cpython/pull/16421 ___ Python tracker ___

[issue38286] tarfile forgets set sgid when targetpath has it

2019-09-26 Thread Charles Coulombe
New submission from Charles Coulombe : An archive that does not have sgid that is extracted in a directory with sgid set does not end up having its sgid set since the targetpath is chmod with the mode of the tarinfo. (Lib/tarfile.py#L2277) For comparison, an archive extracted with tar has

[issue38277] Allowing conditions with assignment expressions in comprehensions without parantheses

2019-09-26 Thread Arne Recknagel
Arne Recknagel added the comment: Alright, fair enough -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38284] signal.sigwait* do not intercept certain signals

2019-09-26 Thread Blindfreddy
New submission from Blindfreddy : On debian, signal.sigwait/sigwaitinfo/sigtimedwait do not properly handle the below signals (NOK). Steps to reproduce 1. start python and type: >>> import signal >>> signal.sigwait([

[issue38112] Compileall improvements

2019-09-26 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +15999 pull_request: https://github.com/python/cpython/pull/16419 ___ Python tracker ___

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think if we want to support SOCK_SEQPACKET by asyncio we should do it explicitly. In the other case, we can open a can of worms: we cannot guarantee that all existing protocols are supported by asyncio seamlessly. Anyway, this is a new feature request.

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > Steve, in PR 15951 you updated Py_WINVER to 0x0602. I think it should be > 0x0603 (_WIN32_WINNT_WINBLUE) and Py_NTDDI should be NTDDI_WINBLUE. Windows 8 > hasn't been supported since 2016. Windows 8.1 is supported until 2023. Dropping Windows 7 support

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Thomas Haller
Thomas Haller added the comment: OK, I see. Thanks for the references. FWIW, I think such changes in behavior are really bad. The issue should be fixed without changing existing API. -- ___ Python tracker

[issue18182] xml.dom.createElement() does not take implicit namespaces into account

2019-09-26 Thread karl
karl added the comment: The current specification as of today documents https://dom.spec.whatwg.org/#dom-document-createelementns If you run this in the browser console, var nsdoc = 'http://foo.bar/zoo'; var xmldoc = document.implementation.createDocument(nsdoc, 'Zoo', null); var cpd =

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37883] threading.Lock.locked is not documented

2019-09-26 Thread Ido Michael
Ido Michael added the comment: P.S PR: https://github.com/python/cpython/pull/16420 -- ___ Python tracker ___ ___ Python-bugs-list

[issue38283] sys._getframe(1).f_lineno changed behavior in 3.8

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, of course. We could keep f_lineno unchanged, despite the fact that its value can be wrong, and introduce f_lineno_new. Then we should change all code in the stdlib which uses f_lineno to use f_new_lineno, or rather, to keep absolute backward

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-09-26 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner Thank you for the feedback. I've updated the PR with the unit test you suggested :-) -- ___ Python tracker ___

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 12f2f177fc483723406d7917194e7f655a20631b by Victor Stinner in branch 'master': bpo-38234: Py_Initialize() sets global path configuration (GH-16421) https://github.com/python/cpython/commit/12f2f177fc483723406d7917194e7f655a20631b --

[issue38234] The value of Py_SetPath is not used to populate the configuration

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 96c8475362acb41decd1d7db9243f328973e5de7 by Victor Stinner in branch '3.8': [3.8] bpo-38234: Backport init path config changes from master (GH-16423) https://github.com/python/cpython/commit/96c8475362acb41decd1d7db9243f328973e5de7 --

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2019-09-26 Thread Tal Einat
Tal Einat added the comment: Michael, many many thanks for the time and effort that you have poured into getting this fixed, and for your patience and perseverance over the three years that it took to happen. Well done! -- resolution: -> fixed stage: patch review -> resolved

[issue38289] Add an option to point to an additional "site" directory

2019-09-26 Thread Michał Fronczyk
New submission from Michał Fronczyk : An environment variable to point to an additional site-packages directory (without disabling the one in Python itself) location would allow having different sets of extra packages that can be enabled by the users in their or shared Python installations.

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Was LOAD_METHOD optimized for builtin methods? -- ___ Python tracker ___ ___ Python-bugs-list

[issue38289] Add an option to point to an additional "site" directory

2019-09-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Yury Selivanov
Yury Selivanov added the comment: I already mentioned that in the PR, but we'll have to hit a pause on this. We decided to revert the latest streams implementation from 3.8, see https://bugs.python.org/issue38242. The upshot is that what we have in 3.9 should be more amenable for things

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-26 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> later status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28009] core logic of uuid.getnode() needs refresh

2019-09-26 Thread Tal Einat
Tal Einat added the comment: New changeset 0bcbfa43d55d9558cdcb256d8998366281322080 by Tal Einat (Michael Felt) in branch 'master': bpo-28009: Fix uuid.uuid1() and uuid.get_node() on AIX (GH-8672) https://github.com/python/cpython/commit/0bcbfa43d55d9558cdcb256d8998366281322080 --

[issue38136] Remove AsyncMock.assert_awaited_*

2019-09-26 Thread Lisa Roach
Change by Lisa Roach : -- pull_requests: +16010 pull_request: https://github.com/python/cpython/pull/16431 ___ Python tracker ___

[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: You're welcome to 3.5. On Thu, Sep 26, 2019, at 00:23, STINNER Victor wrote: > > STINNER Victor added the comment: > > Benjamin: Python 3.5 is in the Versions field, but I don't see any > change related to 3.5 yet. It's also impacted, no? Do you plan

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-26 Thread STINNER Victor
STINNER Victor added the comment: > A "PyInterpreterState *interp" field on PyTypeObject would allow us to > quickly access the originating interpreter from any object. Does it mean that a type A created in interperter 1 can be seen/accessed from interpreter 2? First I understood that an

  1   2   >