[issue40520] Remove redundant comment in pydebug.h

2020-05-05 Thread hai shi
hai shi added the comment: Thanks, Dong-hee Na ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40010] Inefficient signal handling in multithreaded applications

2020-05-05 Thread Eric Snow
Eric Snow added the comment: Good catch on this, Victor. Thanks for doing it. -- nosy: +eric.snow ___ Python tracker ___ ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread Eric Snow
Eric Snow added the comment: If this issue covers the GIL (which it seems to) then I'd expect _PyRuntimeState.gilstate to be handled here too. -- ___ Python tracker ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread Eric Snow
Eric Snow added the comment: >From a user perspective, does it make sense to have a different >recursion_limit per interpreter? I don't see a problem with it. However, >does it make sense to also keep a global value that we default to when a >per-interpreter value is not set? I think it

[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40520] Remove redundant comment in pydebug.h

2020-05-05 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks hai shi :) -- nosy: +corona10 resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40520] Remove redundant comment in pydebug.h

2020-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- title: port the declartions in pydebug.h to initconfig.h -> Remove redundant comment in pydebug.h ___ Python tracker ___

[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread miss-islington
miss-islington added the comment: New changeset 6351d9e4400a77fe1fcbe4f03e5fb6620cca236d by Hai Shi in branch 'master': bpo-40520: Remove redundant comment in pydebug.h (GH-19931) https://github.com/python/cpython/commit/6351d9e4400a77fe1fcbe4f03e5fb6620cca236d -- nosy:

[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread Eric Snow
Eric Snow added the comment: FWIW, I think it would make sense to keep "signals_pending" under _PyRuntimeState rather than moving it to PyInterpreterState. Signals are only handled by the main interpreter (in its main thread). Even though "signals_pending" is useful to only one interpreter

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0be6b3b94fbdf31b796adc19dc86a04a52b03e1 by Victor Stinner in branch 'master': bpo-29587: _PyErr_ChainExceptions() checks exception (GH-19902) https://github.com/python/cpython/commit/b0be6b3b94fbdf31b796adc19dc86a04a52b03e1 --

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19247 pull_request: https://github.com/python/cpython/pull/19932 ___ Python tracker ___

[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread hai shi
hai shi added the comment: Got it, thanks for your explanation, victor ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread hai shi
Change by hai shi : -- pull_requests: +19246 pull_request: https://github.com/python/cpython/pull/19931 ___ Python tracker ___ ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4e30ed3af06ae655f4cb8aad8cba21f341384250 by Victor Stinner in branch 'master': bpo-40513: Per-interpreter recursion_limit (GH-19929) https://github.com/python/cpython/commit/4e30ed3af06ae655f4cb8aad8cba21f341384250 --

[issue32117] Tuple unpacking in return and yield statements

2020-05-05 Thread miss-islington
miss-islington added the comment: New changeset 627f7012353411590434a7d5777ddcbcc8d97fcd by Javier Buzzi in branch 'master': bpo-32117: Updated Simpsons names in docs (GH-19737) https://github.com/python/cpython/commit/627f7012353411590434a7d5777ddcbcc8d97fcd --

[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: Global configuration variables are part of the C API. They are now documented: https://docs.python.org/dev/c-api/init.html#global-configuration-variables They are used to populate PyConfig (PEP 587). At startup, the PyConfig is copied into these global

[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +19245 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19930 ___ Python tracker ___

[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: --with-experimental-isolated-subinterpreters option name is very long on purpose: to advertize that you must not use it, unless you fully understand its purpose :-) I didn't document the build option in Misc/SpecialBuilds.txt or Doc/whatsnew/3.9.rst on

[issue40520] port the declartions in pydebug.h to initconfig.h

2020-05-05 Thread hai shi
New submission from hai shi : Nick left a comment in `pydebug.h` /* These global variable are defined in pylifecycle.c */ /* XXX (ncoghlan): move these declarations to pylifecycle.h? */ I have checked those global variables are not only debug variables and they are defined in

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: > IMHO we should create backport patch for 3.8 and 3.7 It's deadcode, I don't think that it's worth it. But it's up to you. If you consider that it's worth it, go ahead and backport the fix. -- ___ Python tracker

[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset c5fa364f4ea836f25dd07cfb328152d40a568371 by Victor Stinner in branch 'master': bpo-40514: Add --with-experimental-isolated-subinterpreters (GH-19926) https://github.com/python/cpython/commit/c5fa364f4ea836f25dd07cfb328152d40a568371 --

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-05 Thread Miguel
Miguel added the comment: I built with 'no-threads' option. I understand if you no longer wish to support non-threaded SSL. But it just seemed to me that you could if you protected the SSL API calls with locking since I can get all your ssl tests to work with this minor change. --

[issue40519] Preserve AttributeError exception context in __getattr__

2020-05-05 Thread Arusekk
Arusekk added the comment: Feel free to reuse the patches if you have better ideas -- Added file: https://bugs.python.org/file49123/robust.patch ___ Python tracker ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: For signals_pending, see also: bpo-40010 "Inefficient signal handling in multithreaded applications" which added _Py_ThreadCanHandleSignals() and _Py_ThreadCanHandlePendingCalls() functions. -- ___ Python tracker

[issue40519] Preserve AttributeError exception context in __getattr__

2020-05-05 Thread Arusekk
New submission from Arusekk : This is another attempt at issue 39865, but with a different attitude. Please see that issue for some extra motivation for this change. My suggestion is to change getattr logic, which now is (in this case): def getattr(obj, attr): try: return

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19244 pull_request: https://github.com/python/cpython/pull/19929 ___ Python tracker ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b1e3307e24b0af45787ab6456535b8346e0239a by Victor Stinner in branch 'master': bpo-40513: Per-interpreter gil_drop_request (GH-19927) https://github.com/python/cpython/commit/0b1e3307e24b0af45787ab6456535b8346e0239a --

[issue40518] ValueError when using resource.setrlimit on macOS Catalina

2020-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: Python/ceval.c also has "int _Py_CheckRecursionLimit = Py_DEFAULT_RECURSION_LIMIT;". _Py_CheckRecursiveCall() has this comment: /* Needed for ABI backwards-compatibility (see bpo-31857) */ _Py_CheckRecursionLimit = recursion_limit; I converted

[issue40518] ValueError when using resource.setrlimit on macOS Catalina

2020-05-05 Thread Shota Iwamoto
New submission from Shota Iwamoto : Hello, I'm having trouble when using `resource.setrlimit` on macOS. ``` import resource resource.setrlimit(resource.RLIMIT_STACK, resource.getrlimit(resource.RLIMIT_STACK)) ``` Running this code gives the following error: ``` Traceback (most recent call

[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19243 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19928 ___ Python tracker ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19242 pull_request: https://github.com/python/cpython/pull/19927 ___ Python tracker ___

[issue40517] Syntax highlighting for ASDL

2020-05-05 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : ASDL is around here for a long time, and it was showed as raw text on documentation (under library/ast), IMHO it would be great to highlight it. -- assignee: docs@python components: Documentation messages: 368148 nosy: BTaskaya, docs@python,

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4e01946cafca0cf49f796c3118e0d65237bcad69 by Victor Stinner in branch 'master': bpo-40513: Per-interpreter signals pending (GH-19924) https://github.com/python/cpython/commit/4e01946cafca0cf49f796c3118e0d65237bcad69 --

[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19241 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19926 ___ Python tracker ___

[issue40516] GCC 9 compiler warnings on MacOS Catalina

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

[issue40516] GCC 9 compiler warnings on MacOS Catalina

2020-05-05 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Building master with GCC 9.3.0 gives some warnings on posix and nis: ./Modules/posixmodule.c: In function 'os_chown_impl': ./Modules/posixmodule.c:3397:39: warning: the comparison will always evaluate as 'false' for the address of 'lchown' will never be NULL

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-05 Thread Christian Heimes
Christian Heimes added the comment: How did you build OpenSSL 1.1.1d? Python assumes default build of OpenSSL. Since Python is now always multi-threaded we no longer support non-threaded OpenSSL builds. -- versions: -Python 3.5, Python 3.6, Python 3.8, Python 3.9

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Christian Heimes
Change by Christian Heimes : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Christian Heimes
Christian Heimes added the comment: It seems we agree that prime functions only appear to be easy until you realize that they are far from trivial. :) +1 to require a PEP. I'm happy to give my feedback on crypto and security-related part of the feature. OpenSSL now uses 64 MR rounds for

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-05 Thread Miguel
New submission from Miguel : Hello, this is my first python bug report! I've been running builds of Python 3.7.x on CentOS Linux release 7.7 (64bit/Intel Core 2 Duo) and I ran into hangs with test_ssl.py when using latest SSL 1.1.1d sources. I've done a full compilation from source for

[issue40514] Add --experimental-isolated-subinterpreters build option

2020-05-05 Thread STINNER Victor
New submission from STINNER Victor : Modifying Python internals to have one GIL per interpreter (bpo-40512) is a large project which requires to modify many small things (again, see bpo-40512). I propose to add a temporary build --experimental-isolated-subinterpreters build option to

[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: > Some changes have a negative impact on "single threaded" Python application. > Even if the overhead is low, one option to be able to move faster on this > issue may be to add a new temporary configure option to have an opt-in build > mode to better

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Speaking of OpenSSL, a few years ago this paper came out about OpenSSL's vulnerability to adversarial composites. Quote: "As examples of our findings, weare able to construct 2048-bit composites that are declared prime with probability 1/16 byOpenSSL’s

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19239 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19924 ___ Python tracker ___

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: See also: https://github.com/ericsnowcurrently/multi-core-python/issues/34 -- ___ Python tracker ___

[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor
STINNER Victor added the comment: > Move signals pending and gil_drop_request from _PyRuntimeState.ceval to > PyInterpreterState.ceval: > https://github.com/ericsnowcurrently/multi-core-python/issues/34 I created bpo-40513: "Move _PyRuntimeState.ceval to PyInterpreterState". --

[issue40513] Move _PyRuntimeState.ceval to PyInterpreterState

2020-05-05 Thread STINNER Victor
New submission from STINNER Victor : To get one GIL per interpreter (bpo-40512), remaining _PyRuntimeState.ceval members should be moved to PyInterpreterState.ceval. The work started in bpo-39984 with ceval "pending calls" and ceval "eval breaker". There are 4 remaining fields: struct

[issue40512] Meta issue: per-interpreter GIL

2020-05-05 Thread STINNER Victor
New submission from STINNER Victor : To be able to run multiple (sub)interpreters in parallel, the unique global interpreter lock aka "GIL" should be replace with multiple GILs: one "GIL" per interpreter. The scope of such per-interpreter GIL would be a single interpreter. The current

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

2020-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +19238 pull_request: https://github.com/python/cpython/pull/19923 ___ Python tracker ___

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think that it is right to emit a warning at import time. We should not punish people which do things right: fallback to xml.etree.ElementTree and test with -We. -- ___ Python tracker

Special issue on Recent Advances in Autonomous Vehicle Solutions in the Digital Continuum

2020-05-05 Thread SP
Special issue on Recent Advances in Autonomous Vehicle Solutions in the Digital Continuum Computing Journal, Springer Nature https://www.springer.com/journal/607/updates/17917580 SCOPE The domain of autonomous vehicle computing systems is changing rapidly under the pressure of an intense

[issue40511] IDLE yellow hint frame blinks when entering () in strings in functions/classes

2020-05-05 Thread wyz23x2
Change by wyz23x2 : -- title: IDLE yellow hint frame blinks when entering () in strings -> IDLE yellow hint frame blinks when entering () in strings in functions/classes ___ Python tracker

[issue40511] IDLE yellow hint frame blinks when entering () in strings

2020-05-05 Thread wyz23x2
Change by wyz23x2 : -- title: Yellow hint frame blinks when entering () in strings -> IDLE yellow hint frame blinks when entering () in strings ___ Python tracker ___

[issue40511] Yellow hint frame blinks when entering () in strings

2020-05-05 Thread wyz23x2
wyz23x2 added the comment: OMG, request too large. I can't upload mp4 /(ㄒoㄒ)/~~ -- ___ Python tracker ___ ___ Python-bugs-list

[issue40511] Yellow hint frame blinks when entering () in strings

2020-05-05 Thread wyz23x2
New submission from wyz23x2 : The yellow frame blinks as shown in mp4. It's annoying and isn't good to the eyes. -- assignee: terry.reedy components: IDLE messages: 368133 nosy: terry.reedy, wyz23x2 priority: normal severity: normal status: open title: Yellow hint frame blinks when

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19237 pull_request: https://github.com/python/cpython/pull/19921 ___ Python tracker ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Reopening as requested. Adding a new module to the standard library is a fairly big change. I don't think we can do that through just this issue and PR. I think we're going to need a PEP sooner or later. (In any case, a PEP is standard procedure for a new

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the relevant part of the dev. guide: https://devguide.python.org/stdlibchanges/#proposal-process The PEP would also need a core dev sponsor. -- ___ Python tracker

[issue36453] pkgutil.get_importer only return the first valid path_hook(importer)

2020-05-05 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch nosy: +christian.heimes nosy_count: 1.0 -> 2.0 pull_requests: +19236 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19921 ___ Python tracker

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19235 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19920 ___ Python tracker ___

[issue40510] [regression] ZipFile fails to round trip on some files

2020-05-05 Thread David Naylor
New submission from David Naylor : With commit 18ee29d0b8 [1] a change was introduced that prevents a round-trip of some zip files (i.e. files generated by Microsoft Excel) due to the clobbering of `ZipInfo.flag_bits`[2] and `external_attr`[3]. For example:

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Christian Heimes
Christian Heimes added the comment: I'm still not convinced that it's a good idea to add a general prime factor function to Python's standard library. IMO the feature is better suited for an external math library or crypto library. If we are going to add a prime factor function, then we

[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-05 Thread Shani Armon
Change by Shani Armon : -- keywords: +patch pull_requests: +19233 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19919 ___ Python tracker ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Miller-Rabin is known to be deterministic for all N < 2**64 too. To be pedantic, M-R is known to be deterministic if you check every value up to sqrt(N), or possibly 2*log(N) if the generalized Riemann hypothesis is true. The question is whether there is a

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Stefan Behnel
Stefan Behnel added the comment: >> But as I said, people don't read docs. > After seven, eight years we should do our users a service and point out the > deprecation with a concrete deadline. ¯\_(ツ)_/¯ Honestly, let's just keep it. Maybe we can add an invisible PendingDeprecationWarning

[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-05 Thread Shani Armon
New submission from Shani Armon : Options specified with the REMAINDER nargs should be treated as optional. And an empty list should be treated as default. -- components: Library (Lib) messages: 368126 nosy: Shani Armon, rhettinger priority: normal severity: normal status: open title:

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I can't mark the issue as open thought, can someone do this? -- ___ Python tracker ___ ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: >> Regardless, how can we best move forward with this idea? > Provide a pull request. Hi, I looked into what scientific programs where doing. Most of them uses a form of the Baillie–PSW primality test which is a probabilistic primality test that's never wrong

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Christian Heimes
Christian Heimes added the comment: 3.3.0 was released in 2012. That's almost a lifetime ago. I assume that majority of users either forgot, missed the note, or no longer took the deprecation serious. After seven, eight years we should do our users a service and point out the deprecation

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-05 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre nosy_count: 7.0 -> 8.0 pull_requests: +19232 pull_request: https://github.com/python/cpython/pull/19918 ___ Python tracker ___

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Stefan Behnel
Stefan Behnel added the comment: It's not like the deprecation was hidden – the ET docs have this line right at the top: "Changed in version 3.3: This module will use a fast implementation whenever available. The xml.etree.cElementTree module is deprecated."

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Christian Heimes
Christian Heimes added the comment: IMHO we don't have to spend extra work on an import hook. It might be a good idea to raise the problem with https://github.com/PyCQA/, though. Large projects tend to use code checkers and linters. -- ___ Python

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Christian Heimes
Christian Heimes added the comment: Stefan wrote: > Christian, I understand your complaint, but I've actually never seen code in > the wild that didn't provide a fallback for the import, usually something > like what Serhiy spelled out My package defusedxml broke with the change. Python's

[issue40496] re.findall() takes a long time (100% cup usage) on Python 3.6.10

2020-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is hard to say what is the problem, but seems it was solved in 3.7. Either it was an optimization, or a bug fix which had such side effect. If it was a bug fix, it was one of backward incompatible bugfixes which are not backported to older versions.

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Miro for information. It looks as awesome work! The simplest solution would be to restore xml.etree.cElementTree and keep it forever. It will not harm anyone, it is just outdated import here and there. We could also write an import hook which

[issue40508] IDLE won't open

2020-05-05 Thread Louis
Louis added the comment: Thank You for your reply -Louis -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40508] IDLE won't open

2020-05-05 Thread Ned Deily
Ned Deily added the comment: Thanks for submitting the version of IDLE you were using. It appears to be a Python 3.6.1 from 2017; the version is very old-of-date and no longer supported. Python 3.6.x is now in security fix mode only; Python 3.8.2 is now current. Unless you have a

[issue40508] IDLE won't open

2020-05-05 Thread Louis
Louis added the comment: Mac OS Catalina 10.15.4 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40508] IDLE won't open

2020-05-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: What version of macOS do you use? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks Miro, that's beautiful. Good to know that I'm not the only one who doesn't read documentation. ;-) So, how do we deal with this? We can't warn about the deprecation without annoying everyone. We can't just remove the empty module without breaking lots

Re: Is there anything in the script which could cause it to not run its full course please?

2020-05-05 Thread Cameron Simpson
On 04May2020 17:17, ozst...@gmail.com wrote: On Tuesday, 5 May 2020 01:35:42 UTC+10, David Raymond wrote: Not necessarily the cause of your problem, but if you're going to compare dates it should be as objects, or as text as year-month-day. Here you're comparing dates as text in

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-05 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: Turns out using _PKG_DIRECTORY as a type for namespace packages ended up making `_find_module` try to search for an __init__.py within them, since it had no understanding of the diff. between a namespace package and a regular one (the lack of

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-05 Thread Cajetan Rodrigues
Change by Cajetan Rodrigues : -- keywords: +patch pull_requests: +19231 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/19917 ___ Python tracker

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Miro Hrončok
Miro Hrončok added the comment: Some stats: See https://bugzilla.redhat.com/showdependencytree.cgi?id=PYTHON39_resolved=0 and Ctrl+F for cElementTree. -- ___ Python tracker

[issue40508] IDLE won't open

2020-05-05 Thread Louis
New submission from Louis : Hi, I cannot open IDLE. When i try and open it from finder it says that the file could not be opened. When I try and open it from the dock, it bounces once and then nothing else happens. When i try and open it from terminal, it says that there is a bad cpu type in

[issue40496] re.findall() takes a long time (100% cup usage) on Python 3.6.10

2020-05-05 Thread Sergio Rael
Sergio Rael added the comment: Thank you for your reply Rémi. I agree with you that the reason can be that the pattern is too complex. I just noticed that in Python 3.7 using the same pattern finish the searchall almost instantaneously, but in 3.6 the CPU goes to 100% and it takes ages to

[issue40508] IDLE won't open

2020-05-05 Thread Ned Deily
Change by Ned Deily : -- assignee: -> terry.reedy components: +IDLE -macOS nosy: +terry.reedy ___ Python tracker ___ ___

[issue40508] IDLE won't open

2020-05-05 Thread Louis
Change by Louis : -- components: macOS files: IDLE.app.zip nosy: Louis, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: IDLE won't open type: performance versions: Python 3.6 Added file: https://bugs.python.org/file49120/IDLE.app.zip

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: xml.etree.cElementTree should be treated in the same way as cStringIO and cPickle -- they where separate modules in the past, but now the acceleration is used by default in io.StringIO and pickle. It looks an oversign that it was not removed in 3.0.

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-05 Thread Russell Davis
Change by Russell Davis : -- keywords: +patch pull_requests: +19230 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19915 ___ Python tracker ___

<    1   2