[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2020-06-09 Thread Tal Einat
Tal Einat added the comment: Terry, kudos for getting back to this! Let me make a PR for this, it will make reviewing and testing easier. -- ___ Python tracker ___ __

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-09 Thread Thomas Scheruebl
Thomas Scheruebl added the comment: >From what I can see this behavior is intended starting with Python 3.8 for >Windows and DLL loading for extension modules. You can use add_dll_directory to add directories to the DLL load path (see https://docs.python.org/3/library/os.html#os.add_dll_dire

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2020-06-09 Thread Tal Einat
Tal Einat added the comment: > You solution is to add a new parameter to __init__ only used by 'flash'. I > would rather replace 'mustclose' with mode = 'tip', 'flash', or 'close'. I > believe that Stopatindex could be revised within the call. The problem with this suggestion is that 'must

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2020-06-09 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +19955 pull_request: https://github.com/python/cpython/pull/20753 ___ Python tracker ___ ___

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2020-06-09 Thread Tal Einat
Tal Einat added the comment: I've created a PR against current master based on the patch, see GH-20753. -- ___ Python tracker ___ _

[issue40890] Dict views should be introspectable

2020-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant that you can make dict_view.mapping always returning a MappingProxyType. -- ___ Python tracker ___

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So it needs to add 100 lines of C code to speed up a pretty uncommon operation for arguments of a particular type. -- ___ Python tracker _

[issue39372] The header files in Include/ have many declarations with no definition

2020-06-09 Thread Petr Viktorin
Petr Viktorin added the comment: Since the removal of PyNoArgsFunction breaks user code, does it deserve a mention in What's New – Porting to Python 3.9? -- nosy: +petr.viktorin ___ Python tracker __

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Steve Dower
Steve Dower added the comment: That was a *big* patch to importlib.resources... And newly defined and standardised protocols? That seems like a lot to bring in without having gone through a PEP anyway, despite the minor bug that has drawn attention to it. I don't think backports should be tr

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Laël Cellier
Laël Cellier added the comment: Unlike gcc, icc can pretty much parallelize everything while detecting cases like the mutexes used by the ɢɪʟ for deciding not to parallelize. The requirement is to use a less conservative approach using -par-threshold97 while using -par-schedule-auto -qoverrid

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2020-06-09 Thread Tal Einat
Change by Tal Einat : -- components: -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2020-06-09 Thread Tal Einat
Change by Tal Einat : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19670] SimpleCookie Generates Non-RFC6265-Compliant Cookies

2020-06-09 Thread Tal Einat
Tal Einat added the comment: It seems that the docs haven't been updated regarding this, so I don't think this should be closed. On the contrary, A PR adding a clarification to the docs would be most welcome. -- ___ Python tracker

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-09 Thread Mark Shannon
New submission from Mark Shannon : Currently, there are fourteen macros provided for stack manipulation. Along with the fundamental, POP(), PUSH() and PEEK(n) the following eleven are also provided: TOP() SECOND() THIRD() FOURTH() SET_TOP(v) SET_SECOND(v)

[issue40926] command line interface of symtable module is broken

2020-06-09 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : (.venv) (Python 3.10.0a0) [ 1:11ÖS ] [ isidentical@x200:~ ] $ cat t.py import x a = 1 print(x) (.venv) (Python 3.10.0a0) [ 1:11ÖS ] [ isidentical@x200:~ ] $ python -m symtable t.py True False True False True False True False True False ... It can

[issue40926] command line interface of symtable module is broken

2020-06-09 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19956 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20757 ___ Python tracker _

[issue40926] command line interface of symtable module is broken

2020-06-09 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +benjamin.peterson, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: s/icc/Python compiled with icc/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-09 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : It looks like the warning registry does not get flushed properly: ./python -m test test___all__ test_binhex 0:00:00 load avg: 1.55 Run tests sequentially 0:00:00 load avg: 1.55 [1/2] test___all__ 0:00:01 load avg: 1.55 [2/2] test_binhex test test_binhex crashed

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: It would be easier to understand this issue if you provide the exact command line. icc also segfaults without -fwrapv, see #40223, so that may be the cause here, too. -- nosy: +skrah ___ Python tracker

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-09 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +19957 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20758 ___ Python tracker ___

[issue40594] urljoin since 3.5 incorrectly filters out double slashes

2020-06-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: > The problem is: double slashes are perfectly legal in a URI/URL, and for > reasons I don't understand, they are in use in the wild And what is the de-facto behavior of browsers, when double URL is used? As far as I know, the browsers remove them, combine

[issue40888] Add close method to queue

2020-06-09 Thread Андрей Казанцев
Андрей Казанцев added the comment: How to do this? -- type: enhancement -> ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17013] Allow waiting on a mock

2020-06-09 Thread Ilya Kulakov
Change by Ilya Kulakov : -- nosy: +Ilya.Kulakov nosy_count: 11.0 -> 12.0 pull_requests: +19958 pull_request: https://github.com/python/cpython/pull/20759 ___ Python tracker ___

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: I understand the issue here and can supply more details soon (no later than this weekend). -- ___ Python tracker ___ __

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Łukasz Langa
Łukasz Langa added the comment: In this case we need to revert the 3.9 backport to release a hotfix tonight. Please respect the beta feature freeze. -- ___ Python tracker ___

[issue40888] Add close method to queue

2020-06-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The python-ideas is hosted at https://mail.python.org/mailman3/lists/python-ideas.python.org/, you can create an account and once it's validated you will be able to post a new message either using the web UI or by sending a mail directly to the list. -

[issue40888] Add close method to queue

2020-06-09 Thread Андрей Казанцев
Андрей Казанцев added the comment: Thank you so much -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue40594] urljoin since 3.5 incorrectly filters out double slashes

2020-06-09 Thread Tal Einat
Tal Einat added the comment: According to section 3.3 of RFC 3986[1], and also RFC 2396[2] which preceded it, a path is made up of zero or more consecutive "/" + section pieces, and a section may be empty. In other words, paths may include consecutive slashes. Several StackOverflow answers

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Laël Cellier
Laël Cellier added the comment: I’m using parallel studio xe 2020 and I didn’t receive any crash from icc itself. The problem is the resulting binary which can be downloaded here https://filebin.net/4lp4nb61dav9qamo but that can’t be posted on this issue that is crashing. The only thing I pu

[issue7949] IDLE: avoid no-contrast popups and dialogs.

2020-06-09 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe this was fixed with #36176. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40594] urljoin since 3.5 incorrectly filters out double slashes

2020-06-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Tal, Thank you. To be specific, it is about parsing behavior, specifically urljoin behavior, There is no question about the validity of the double-slash in the URL. If we find a source (like libcurl) which exhibits parsing behavior different than CPy

[issue39791] New `files()` api from importlib_resources.

2020-06-09 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 6.0 -> 7.0 pull_requests: +19960 pull_request: https://github.com/python/cpython/pull/20760 ___ Python tracker ___ __

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +19959 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20760 ___ Python tracker _

[issue40807] Codeop: Show warnings once during _maybe_compile

2020-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 3.7 backport is needed but required a revised example. The changeset is 4b378acb97a575892c0e372a6bb0c17da1ccdf3e. PRs 20486, 20639, 20672, and 20673 are the main patch. PRs 20646 and 20647 for 3.8 and 3.7 backport a test_codeop import change made elsew

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-06-09 Thread Jonathan Haigh
Jonathan Haigh added the comment: >> But I wonder, was this situation discussed in the original bug/issue? >Doesn't look like it: I was looking at the wrong PR link. This has more discussion: https://github.com/python/cpython/pull/13305. nargs is discussed but I'm not sure it was realized th

[issue7949] IDLE: avoid no-contrast popups and dialogs.

2020-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for finding that. Technically, #36176 should have been closed as a duplicate of this issue. But a fix anywhere is OK. Any other contrast problems should be a new issue. -- resolution: -> duplicate stage: needs patch -> resolved status: ope

[issue40684] make install doesn't respect configure --with-platlibdir=lib64

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 51ae31e5b93b986e57a7e18e25f981a6ffcdefb7 by Victor Stinner in branch 'master': bpo-40684: Fix make install for platlibdir=lib64 (GH-20736) https://github.com/python/cpython/commit/51ae31e5b93b986e57a7e18e25f981a6ffcdefb7 -- __

[issue40684] make install doesn't respect configure --with-platlibdir=lib64

2020-06-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19961 pull_request: https://github.com/python/cpython/pull/20761 ___ Python tracker _

[issue40684] make install doesn't respect configure --with-platlibdir=lib64

2020-06-09 Thread miss-islington
miss-islington added the comment: New changeset 6cb24a035c5980cab39b6dc5d70762af07293bea by Miss Islington (bot) in branch '3.9': bpo-40684: Fix make install for platlibdir=lib64 (GH-20736) https://github.com/python/cpython/commit/6cb24a035c5980cab39b6dc5d70762af07293bea -- ___

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Here's the result of "./python -m test test_decimal -m test_maxcontext_exact_arith": 0:00:00 load avg: 1.33 Run tests sequentially 0:00:00 load avg: 1.33 [1/1] test_decimal python(7835,0x11a218dc0) malloc: can't allocate region :*** mach_vm_map(size=8421052631

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: Yes, the generated Python crashes (as the link I gave shows). I'm using the command line, so I can't be of any assistance with Parallel Studio XE. -- ___ Python tracker _

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue40923] Thread safety : disable intel’s compiler autopar where it’s being relevant.

2020-06-09 Thread Laël Cellier
Laël Cellier added the comment: I’m talking about the latest icc installed along with Parallel studio xe. -- ___ Python tracker ___

[issue40684] make install doesn't respect configure --with-platlibdir=lib64

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

[issue40223] Add -fwrapv for new icc versions

2020-06-09 Thread Laël Cellier
Laël Cellier added the comment: If -fwrapv isn’t enabled (whereas with gcc this is the default with ‑O2), then it means -ftrapv is enabled. And from the manual page : This option generates traps for signed overflow on addition, subtraction, multiplication operations. Did you checked if the b

[issue40684] make install doesn't respect configure --with-platlibdir=lib64

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: > make install writes into /opt/py39b1/lib/python3.9/lib-dynload/ ("lib") I tested manually my fix: it works as expected. Install: ./configure --prefix /opt/py39_lib64 --with-platlibdir=lib64 make make install Test: $ /opt/py39_lib64/bin/python3.9 -m site

[issue40873] Something wrong with html.unescape()

2020-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: The annoying "error" looks the same as #5614, which was closed as "won't fix". Is this the only place in the test suite now? If it is, I'm okay with squashing the remark. -- nosy: +skrah versions: +Python 3.9 ___ Pyth

[issue40873] Something wrong with html.unescape()

2020-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue40873] Something wrong with html.unescape()

2020-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-09 Thread Saba Kauser
Saba Kauser added the comment: Thanks a ton! That worked.. As I understand, users are required to add the directory path of the dll. Is there any way I can set this while building the extension with dependency? I basically want to hard-code the dependency path so that import module works fine

[issue40223] Add -fwrapv for new icc versions

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: I'm aware of what -fwrapv does, it is a long standing issue in Python. I didn't try to find the exact location of overflow, since we also use -fwrapv for gcc. It is also possible that giving -fwrapv to icc disables another optimization that is the actual culpr

[issue40873] Something wrong with html.unescape()

2020-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: needs patch -> versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list ma

[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-09 Thread r n
Change by r n : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue40891] Use pep573 in functools

2020-06-09 Thread Petr Viktorin
Petr Viktorin added the comment: I wrote about the _PyType_GetModuleByDef idea on the capi-sig mailing list: https://mail.python.org/archives/list/capi-...@python.org/thread/T3P2QNLNLBRFHWSKYSTPMVEIL2EEKFJU/ -- ___ Python tracker

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > The annoying "error" looks the same as #5614, which was closed as "won't fix". Yes, it's a similar message, test_io does not display it on Catalina anymore thought. > Is this the only place in the test suite now? As far as I know yes. > If it is, I'm okay

[issue40929] Multiprocessing. Instance of the custom class is missing in subprocesses

2020-06-09 Thread cyberlis
New submission from cyberlis : When I use python3.7 everything works correctly and every subprocess has its own `Hello` instance. When I use python3.8 subprocesses do not have an instance of `Hello` class. Is this behavior correct? My code to reproduce an issue ```python from concurrent.fut

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19962 pull_request: https://github.com/python/cpython/pull/20763 ___ Python tracker ___

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: "squashing the remark" means suppressing the message from malloc(). I would really like it if the test could be executed by default though. Looking at: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/malloc.3.h

[issue40929] Multiprocessing. Instance of the custom class is missing in subprocesses

2020-06-09 Thread cyberlis
Change by cyberlis : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 20763 to "finalize" static types in Py_Finalize(). It mostly works, but "./Programs/_testembed test_forced_io_encoding" crash. This program calls Py_Initialize() and Py_Finalize() multiple times in a loop. It doesn't look to be safe to clear stati

[issue40077] Convert static types to PyType_FromSpec()

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: I tried to finalize static types in Py_Finalize(), but it didn't work: * https://bugs.python.org/issue1635741#msg371119 * https://github.com/python/cpython/pull/20763 -- ___ Python tracker

[issue40890] Dict views should be introspectable

2020-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I meant that you can make dict_view.mapping always > returning a MappingProxyType. That would be a reasonable constraint. -- ___ Python tracker __

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Ned Deily
Change by Ned Deily : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Thanks, I found "MallocDebugReport" in `man malloc` (I could have thought to look into there...) that seem to do the trick: $ MallocDebugReport=none ./python -m test test_decimal -m test_maxcontext_exact_arith 0:00:00 load avg: 1.27 Run tests sequentially 0:00

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I forgot to say that MallocLogFile=/dev/null did not work, that's why I tried MallocDebugReport. -- ___ Python tracker ___

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-06-09 Thread honglei jiang
honglei jiang added the comment: c:\Python39>python -m test -j4 == CPython 3.9.0b2 (tags/v3.9.0b2:0b1a1c8, Jun 8 2020, 22:55:31) [MSC v.1924 64 bit (AMD64)] == Windows-10-10.0.18362-SP0 little-endian == cwd: C:\Users\jhong\AppData\Local\Temp\test_python_5960 == CPU count: 4 == encodings: local

[issue39372] The header files in Include/ have many declarations with no definition

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: > Maybe backport this change (except PyNoArgsFunction)? I don't think that it's a good idea. I suggest to only do cleanup in the master branch, just in case if something goes wrong. Like the PyNoArgsFunction removal :-) -- nosy: +vstinner _

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 1.0 -> 2.0 pull_requests: +19963 pull_request: https://github.com/python/cpython/pull/20764 ___ Python tracker ___ ___

[issue40223] Add -fwrapv for new icc versions

2020-06-09 Thread Laël Cellier
Laël Cellier added the comment: No I’m meaning disabling all optimization when using gcc and using ‑ftrapv. This should cause the same problem : a crashing binary… -- ___ Python tracker _

[issue40223] Add -fwrapv for new icc versions

2020-06-09 Thread Laël Cellier
Laël Cellier added the comment: since ‑fwrapv is the default with ɢᴄᴄ as ‑O2 is used in Cpython build scripts. -- ___ Python tracker ___ ___

[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: Thanks Sandro Mani. The new env var should be part of the incoming Python 3.9.0 beta3. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2020-06-09 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-09 Thread Eric V. Smith
Eric V. Smith added the comment: What type of changes are you proposing to make? -- nosy: +eric.smith ___ Python tracker ___ ___ Py

[issue39791] New `files()` api from importlib_resources.

2020-06-09 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ce5e6f098f8a270e50b989baa75765584573706b by Łukasz Langa in branch '3.9': [3.9] bpo-40924: Revert "bpo-39791 native hooks for importlib.resources.files (GH-20576)" (#20760) https://github.com/python/cpython/commit/ce5e6f098f8a270e50b989baa75765584

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ce5e6f098f8a270e50b989baa75765584573706b by Łukasz Langa in branch '3.9': [3.9] bpo-40924: Revert "bpo-39791 native hooks for importlib.resources.files (GH-20576)" (#20760) https://github.com/python/cpython/commit/ce5e6f098f8a270e50b989baa75765584

[issue17013] Allow waiting on a mock

2020-06-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: isn't PR 20759 backwards incompatible? If I understand correctly, this would break anyone that is checking for identity as : assert mymock.called is True -- nosy: +pablogsal ___ Python tracker

[issue40275] test.support has way too many imports

2020-06-09 Thread hai shi
Change by hai shi : -- pull_requests: +19964 pull_request: https://github.com/python/cpython/pull/20765 ___ Python tracker ___ ___ P

[issue40802] AbstractEventLoop.shutdown_default_executor breaks backwards compatibility

2020-06-09 Thread Yury Selivanov
Yury Selivanov added the comment: > Since asyncio is no longer provisional, should it break backwards > compatibility with just a What's New entry? Adding new APIs to asyncio can't be classified as a backward compatibility issue. Otherwise the development of it would stall and nobody would b

[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-06-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19965 pull_request: https://github.com/python/cpython/pull/20766 ___ Python tracker ___ __

[issue40594] urljoin since 3.5 incorrectly filters out double slashes

2020-06-09 Thread Tal Einat
Tal Einat added the comment: Putting aside backwards compatibility, I would argue the opposite: Since consecutive slashes are valid, I suggest we would need to see that collapsing them into a single slash is the status quo, otherwise we should avoid such collapsing. Here's some evidence that

[issue40077] Convert static types to PyType_FromSpec()

2020-06-09 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue40930] zoneinfo gives incorrect dst() in Pacific/Rarotonga between 1978 and 1991

2020-06-09 Thread Paul Ganssle
New submission from Paul Ganssle : While developing a shim for deprecating pytz, I discovered this issue with the Pacific/Rarotonga zone: >>> from datetime import datetime, timedelta >>> from backports.zoneinfo import ZoneInfo >>> datetime(1991, 2, 1, tzinfo

[issue40931] zoneinfo gives incorrect dst() in Europe/Madrid in 1938

2020-06-09 Thread Paul Ganssle
New submission from Paul Ganssle : Apparently in 1938, Madrid had a "double daylight saving time", where they transitioned from WET (+0) → WEST (+1) → WEMT (+2) → WEST (+1) → WET (+0): $ zdump -V -c 1938,1940 'Europe/Madrid' Europe/Madrid Sat Apr 2 22:59:59 1938 UT = Sat Apr 2 22:59:59 1938

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue stems from improper reliance on implementation details of `importlib.resources.path`, which returns a context manager that is designed to clean up the file after the context closes. certifi would have encountered the same problem on older Pythons

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: To my eyes, the patch looks somewhat tame. It is readable enough and doesn't do anything tricky. The set object implementation aimed to never recompute the hash when it was already known. It is reasonable that other set-like operations share that aspir

[issue40932] subprocess docs don't qualify the instruction to use shlex.quote by OS

2020-06-09 Thread Stephen Farris
Change by Stephen Farris : -- type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue40932] subprocess docs don't qualify the instruction to use shlex.quote by OS

2020-06-09 Thread Stephen Farris
New submission from Stephen Farris : The subprocess docs state: "When using shell=True, the shlex.quote() function can be used to properly escape whitespace and shell metacharacters in strings that are going to be used to construct shell commands." While this is true on Unix, it is not true o

[issue40933] zoneinfo may give incorrect dst() in Europe/Minsk in 1942

2020-06-09 Thread Paul Ganssle
New submission from Paul Ganssle : Related to bpo-40930 and bpo-40931, it *seems* that in 1942 only, `zoneinfo.ZoneInfo` returns -01:00 for DST in Europe/Minsk: >>> from datetime import datetime, timedelta >>> from backports.zoneinfo import ZoneInfo >>> datetime(1942, 1, 1, tzinfo=

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-09 Thread Stefan Krah
Stefan Krah added the comment: Thanks for checking, it's a pity that os.putenv() does not work. There's a global variable malloc_logger that is set from the environment on startup: https://opensource.apple.com/source/libmalloc/libmalloc-53.1.1/src/malloc.c It seems to be always checked for

[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-06-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19966 pull_request: https://github.com/python/cpython/pull/20767 ___ Python tracker ___ __

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Łukasz Langa
Łukasz Langa added the comment: > I do respect the beta feature freeze. The relevant feature was added prior to > b1. The reverted change is an incremental fix addressing underlying > implementation details such as how resources are resolved and removing > duplicate code paths. Using the rev

[issue18319] gettext() cannot find translations with plural forms

2020-06-09 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +barry versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue40869] errno missing descriptions

2020-06-09 Thread YoSTEALTH
Change by YoSTEALTH : -- components: +C API ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30533] missing feature in inspect module: getmembers_static

2020-06-09 Thread kernc
Change by kernc : -- nosy: +kernc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue30533] missing feature in inspect module: getmembers_static

2020-06-09 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: -lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: I feel terrible and really regret that this was able to break things so badly. What options are available at this point? I'd at the very least like to remove the `loader.files()` behavior to avoid encouraging other loaders to implement it. Should we also re

[issue29242] Crash on GC when compiling PyPy

2020-06-09 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue40847] New parser considers empty line following a backslash to be a syntax error, old parser didn't

2020-06-09 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +19967 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20769 ___ Python tracker _

  1   2   >