[issue35890] Cleanup some non-consistent API callings

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Thanks for the additional cleanup. In future, we'd still like a separate issue for new changes (that aren't fixing up something caused by the earlier change). -- ___ Python tracker

[issue40666] TarFile.add does not support pathlib.Path as a value to first argument.

2020-05-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ethan.furman, lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19488 pull_request: https://github.com/python/cpython/pull/20187 ___ Python tracker

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Also, for future reference, compile-only changes typically don't require a NEWS entry (since users are not going to be interested in reading it in the changelog, and we have commit messages for developers). We have the ability to skip the requirement on the

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19489 pull_request: https://github.com/python/cpython/pull/20188 ___ Python tracker

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-18 Thread Steve Dower
Steve Dower added the comment: New changeset f660567937277cc3a2cd53af77bbb18e905427e8 by Minmin Gong in branch 'master': bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137) https://github.com/python/cpython/commit/f660567937277cc3a2cd53af77bbb18e905427e8

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-18 Thread Steve Dower
Change by Steve Dower : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Missing piece of information, it's also _documented_ as being part of the winsock headers: https://docs.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-timeval Plenty of things get included inadvertently, but they can't be relied upon. In this case

[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Thanks! Nice catch. Closing this, but I'll keep an eye on the backports. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, deferring the blocker. But I'll still land Lysandros' fix ASAP. -- priority: release blocker -> deferred blocker ___ Python tracker

[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +19487 pull_request: https://github.com/python/cpython/pull/20186 ___ Python tracker ___

[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19486 pull_request: https://github.com/python/cpython/pull/20185 ___ Python tracker

[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-18 Thread Steve Dower
Steve Dower added the comment: New changeset 7f21c9ac872acc2114aee3313d132b016550ff42 by Minmin Gong in branch 'master': bpo-40653: Move _dirnameW out of #ifdef HAVE_SYMLINK/#endif (GH-20144) https://github.com/python/cpython/commit/7f21c9ac872acc2114aee3313d132b016550ff42 --

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney
Kevin Mooney added the comment: Ok, I think I see. Is there a concern that removing the cpython/ prefix might lead to the wrong initconfig.h being included? So your proposal is all includes in the root will do #include "cpython/cpython_foo.h" And any includes done in the cpython dir

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: > Please don't close tickets assigned to an owner without consent. Can you please elaborate why you reopened the issue? The initial "test_ssl: test_min_max_version() fails on FreeBSD and Fedora" issue is now fixed. For example, test_ssl pass on AMD64

[issue40439] Error in an external reference

2020-05-18 Thread Matteo Bertucci
Change by Matteo Bertucci : -- keywords: +patch nosy: +Akarys nosy_count: 4.0 -> 5.0 pull_requests: +19485 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20184 ___ Python tracker

Re: Can one make 'in' ungreedy?

2020-05-18 Thread Dieter Maurer
Chris Green wrote at 2020-5-18 11:50 +0100: > ... >So in the particular case where I have a problem sbstrip is "[Ipswich >Recycle]" and the Subject: is "[SPAM] [Ipswich Recycle] OFFER: >Lawnmower (IP11)". The match isn't found, presumably because 'in' is >greedy and sees "[SPAM] [Ipswich

[issue40410] test_multiprocessing_forktest_terminate() timed out after 15 min on s390x Fedora LTO + PGO 3.x

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I didn't see the failure recently, I close the issue as out of date. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Oh, and there certainly won't be a python2.exe :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Steve Dower
Steve Dower added the comment: The self-name checking is not something I'm volunteering to write, btw, nor any new options. But feel free to put those up as separate issues. I'm also not getting into symbolic links here - WiX doesn't support them natively, and custom actions are the source

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19484 pull_request: https://github.com/python/cpython/pull/20183 ___ Python tracker ___

[issue40003] test.regrtest: add an option to run test.bisect_cmd on failed tests, use it on Refleaks buildbots

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: While it would be nice, I'm not sure if it's a good idea to make buildbot jobs even longer. I wrote this issue to investigate an issue that I fixed in the meanwhile, so I close the issue. -- resolution: -> out of date stage: patch review ->

[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Zachary Ware
Zachary Ware added the comment: I'm in favor of this. I especially want this with the self-name-checking that Eryk mentioned, and even more if each installed Python adds its own symlink to `py.exe` with its own version (i.e. the Python 3.9 installer adds `python3.9.exe -> py.exe`). I'm

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-05-18 Thread Christian Heimes
Christian Heimes added the comment: Please don't close tickets assigned to an owner without consent. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue39983] test.regrtest: test marked as failed (env changed), but no warning: test_multiprocessing_forkserver

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: "Warning -- Unraisable exception" is now logged, but the exceptions is not when sys.stderr is redirected. That's better than nothing, so I close the issue. Moreover, test_multiprocessing_forkserver has been fixed. -- resolution: -> fixed stage:

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure why, but test_ssl does not pass on FreeBSD and Fedora, so I close the issue. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue38798] test_asyncio.test_sendfile.test_sendfile_ssl_pre_and_post_data(): Overlapped still has pending operation at deallocation error on AMD64 Windows8.1 Non-Debug 3.x

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this race condition recently, I just close the issue as out of date. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue38544] test_venv: test_isolation() failed on AMD64 Windows7 SP1 3.x: directory not empty: Scripts\

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this race condition recently, I just close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-18 Thread STINNER Victor
Change by STINNER Victor : -- title: [typing] PEP 563: Postponed evaluation of annotations: enable it by default before Python 4.0 -> [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10 ___ Python tracker

[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I don't think that such bug should block Python 3.9 beta1 (I'm talking about the "release blocker" priority). There is still time before 3.9 final to fix it. -- nosy: +vstinner ___ Python tracker

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I tested manually and I confirm that FreeBSD builds again, thanks :-) -- ___ Python tracker ___

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily
Ned Deily added the comment: New changeset 951ab58024de9b5a21f0b979cdbea51e1049d781 by Ned Deily in branch 'master': Revert "bpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176)" (GH-20182)

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily
Ned Deily added the comment: I'm not sure yet exactly what the problem is but it's almost certainly a difference between GNU make and BSD make and something that needs to be checked on FreeBSD. With the 3.9.0b1 cutoff coming very soon, I likely won't be able to test on FreeBSD before then

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-05-18 Thread Ned Deily
Ned Deily added the comment: I believe the Windows builds are still using 1.1.1f. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-05-18 Thread Łukasz Langa
Łukasz Langa added the comment: Should this still be open? -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-18 Thread Łukasz Langa
Change by Łukasz Langa : -- priority: release blocker -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-18 Thread Łukasz Langa
Łukasz Langa added the comment: This goes into 3.9, but please settle on a final design long before October. Scratch that, please do it ideally before beta 2. I'm downgrading from release blocker, exception handling can be discussed and changed after beta 1 as well. --

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: IMO a better approach would be to add "cpython_" prefix to all header files living in Include/cpython/. It would prevent bad surprises. I tried to avoid adding a prefix when I added Include/internal/ but I got many practical issues. Depending where the

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Is this different than what you would expect? Supplying garbage to timeit will result in an error: >>> from timeit import timeit >>> timeit('weofinwofinwe') Traceback (most recent call last): File "", line 1, in File

[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Eryk Sun
Eryk Sun added the comment: > For "python.exe", run as "py.exe", which is subject to shebangs, > VIRTUAL_ENV, and PY_PYTHON. Maybe in the "python[w].exe" case, it should skip shebang processing. That way only py[w].exe would handle shebangs, such as for the template command that gets

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +19483 pull_request: https://github.com/python/cpython/pull/20182 ___ Python tracker ___

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: > Doc/Makefile uses a virtual environment to install Sphinx and Sphinx > extensions. I suggest to do something similar. I like this approach. Let me try it. -- ___ Python tracker

[issue39026] pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2020-05-18 Thread Kevin Mooney
Change by Kevin Mooney : -- keywords: +patch nosy: +Kevin Mooney nosy_count: 5.0 -> 6.0 pull_requests: +19482 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20181 ___ Python tracker

Re: python3 - Import python file as module

2020-05-18 Thread Peter Otten
shivani.shi...@alefedge.com wrote: > Hi, > I am a beginner to Python. I want to achieve the following: > > My directory structure: > > a > └── b > └── c > ├── p > │ └── q > │ └── test.py > └── x > └── y > └── run.py > > In

[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Eryk Sun
Eryk Sun added the comment: > these may overtake people's existing installs and replace them > with something more clever (this annoys people) In particular, installing the launchers to %SystemRoot% means that in some contexts, such as the search path that CreateProcessW and SearchPathW

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19481 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/20177 ___ Python tracker ___

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: Doc/Makefile uses a virtual environment to install Sphinx and Sphinx extensions. I suggest to do something similar. -- nosy: +vstinner ___ Python tracker

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Guido van Rossum
Guido van Rossum added the comment: Soon nobody will remember to look at the memory stats at all. But I will review. -- ___ Python tracker ___

[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread Guido van Rossum
Guido van Rossum added the comment: Unfortunately, I do not understand enough about how Hypothes* works to be helpful here, other than by offering encouragement. (And please don't try to educate me. I have too many other things. Sorry.) -- ___

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Because `make time` and all the related Makefile targets use the local built Python in the cpython parent directory. In order to install it, one would have to go through various steps, like installing openssl, configuring python with ssl support,

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Steve Dower
Steve Dower added the comment: > Presumably, I'll be able to add a pre-release of Python 3.9 to the pipelines > config at jaraco/skeleton - that will ensure that all projects I maintain > going forward will get tested on the pre-release. I don't have a straightforward task for it, but these

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Ah right, it's realpath() that has the final step to remove an unnecessary \\?\ prefix. Firstly, I still think fixing copy is more important and more valuable. Given the possibility that the print name won't point to the real target, I'd much prefer to keep

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Guido van Rossum
Guido van Rossum added the comment: Why not just install it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington
miss-islington added the comment: New changeset d8cbfa2f2a9a972caf9cbc2b1e2565c456e0 by Miss Islington (bot) in branch '3.8': bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164) https://github.com/python/cpython/commit/d8cbfa2f2a9a972caf9cbc2b1e2565c456e0 --

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: The initial issue (be able to make a GitHub action job mandatory) is now fixed, I close the issue. Making Windows x64 job mandatory is now tracked at: https://github.com/python/core-workflow/issues/368 -- resolution: -> fixed stage: patch review

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread hai shi
hai shi added the comment: > Hai: do you want to work on a PR? Oh, Looks like I am late, Christian have crated a PR ;) -- ___ Python tracker ___

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: > The solution is incomplete because it fixes just this single security issue, > not the inherent fragility of this file. If you want to propose a change to make the file "less fragile", please open a *new* separated issue. The issue is about an exact

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily
Ned Deily added the comment: Sorry about that! Looking now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington
miss-islington added the comment: New changeset 9ecf25e04cb0b97f7f9a12f50b87ac4fad5dc3f5 by Miss Islington (bot) in branch '3.7': bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164) https://github.com/python/cpython/commit/9ecf25e04cb0b97f7f9a12f50b87ac4fad5dc3f5 --

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: This change broke the Python compilation on FreeBSD: https://buildbot.python.org/all/#/builders/152/builds/855 Either revert it (and re-apply a fixed change after beta1), or fix it. I suggest to block Python 3.9 beta1 release until it's resolved. I consider

[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-05-18 Thread Felipe Rodrigues
New submission from Felipe Rodrigues : Hi, Can you elaborate on this? Thanks! -- nosy: +fbidu ___ Python tracker ___ ___

[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -19480 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40600] Add option to disallow > 1 instance of an extension module

2020-05-18 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread anthony shaw
Change by anthony shaw : -- nosy: +anthonypjshaw nosy_count: 4.0 -> 5.0 pull_requests: +19480 pull_request: https://github.com/python/cpython/pull/17753 ___ Python tracker ___

[issue39162] setup.py not picking up tkinter headers from non-system macOS Tcl and Tk frameworks

2020-05-18 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and the PR. Yes, detect_tkinter_darwin() had a number of problems due mainly to how Apple has first deprecated and more recently removed the option to have header files installed in the running system. Plus some nasty quirks of how the Tcl

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: > The Python wrappers EVPobject, EVPXOFobject and HMACobject are **not** safe > to be transfered across subinterpreters. No Python object must be shared between two interpreter and no object should be transfered form one interpreter to another. That's not

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +19479 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20180 ___ Python tracker

Re: Can one make 'in' ungreedy?

2020-05-18 Thread Chris Green
Larry Martell wrote: > On Mon, May 18, 2020 at 7:05 AM Chris Green wrote: > > > > I have a strange/minor problem in a Python program I use for mail > > filtering. > > > > One of the ways it classifies messages is by searching for a specific > > string in square brackets [] in the Subject:, the

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +19477 pull_request: https://github.com/python/cpython/pull/20178 ___ Python tracker ___

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +19478 pull_request: https://github.com/python/cpython/pull/20179 ___ Python tracker ___

python3 - Import python file as module

2020-05-18 Thread shivani . shinde
Hi, I am a beginner to Python. I want to achieve the following: My directory structure: a └── b └── c ├── p │   └── q │   └── test.py └── x └── y └── run.py In my run.py file, I want to import everything from test.py(contains

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 20177 to avoid the netdb_lock in socket.getaddrinfo(), but the lock is still used on platforms which don't provide gethostbyname_r(): #if !defined(HAVE_GETHOSTBYNAME_R) && !defined(MS_WINDOWS) # define USE_GETHOSTBYNAME_LOCK #endif --

[issue25920] PyOS_AfterFork should reset socketmodule's lock

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

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2020-05-18 Thread Paul Ganssle
Paul Ganssle added the comment: > Should we fix utcfromtimestamp() internally to avoid the OverflowError, > rather than only fixing the http.cookiejar module? I'm not a big fan of utcfromtimestamp (as you can see here: https://blog.ganssle.io/articles/2019/11/utcnow.html ), but it seems we

[issue26317] _scproxy and Python Launcher fail to build wtih GNU gcc on macOS 10.13+

2020-05-18 Thread Ned Deily
Ned Deily added the comment: Thanks everyone for their comments and reviews and a very big thank you to Jeffrey for working through the details and providing a solid PR. The change will appear in the 3.9.0b1 pre-release. -- resolution: -> fixed stage: patch review -> resolved

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: "make install" ignores compileall errors no? If I recall correctly, only an error is logged into stdlib, "make install" doesn't fail. -- ___ Python tracker

[issue38112] Compileall improvements

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset adc72bb2f9a5d8b548ee04405e19a184e5699e8d by Lumír 'Frenzy' Balhar in branch 'master': bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt levels (GH-20174)

[issue38112] Compileall improvements

2020-05-18 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy nosy_count: 4.0 -> 5.0 pull_requests: +19475 pull_request: https://github.com/python/cpython/pull/20174 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > I think that there is no much benefit in avoiding to import modules which are > imported in libregrtest. Well, we should also enhance libregrtest in this case :-) > You should minimize import of test.libregrtest + test.support, not just >

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL's EVP and HMAC API depend on global state in OpenSSL, but they are still safe to be used in subinterpreters. OpenSSL ensures that the internal data structures are initialized in a thread-safe manner. The internal state cannot leak across

Re: Can one make 'in' ungreedy?

2020-05-18 Thread Skip Montanaro
> > Thanks for taking the trouble to look. It's a *bit* difficult to run > in the debugger as the program is a filter triggered by incoming > E-Mail messages. However I think I can fire stuff at it via stdin so > I'll see what I can fathon out doing that. > Cheapo debug trick: When your filter

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2020-05-18 Thread Ned Deily
Ned Deily added the comment: New changeset 0da546665075aefbb476e192ed64122d340164f4 by Ned Deily in branch 'master': bpo-26317: Support OBJC and OBJCXX configure command line variables (GH-20176) https://github.com/python/cpython/commit/0da546665075aefbb476e192ed64122d340164f4 --

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: > This is only an issue for broken symlinks, right? (More precisely, those that > cannot be resolved, which may include very long paths on some machines.) Unfortunately, no. In the original post above, you can see temp/bar points to

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-18 Thread STINNER Victor
New submission from STINNER Victor : In Modules/_hashopenssl.c:PyInit__hashlib(), PyModule_AddObject() can be replaced with PyModule_AddType() to add the 3 types: this function does the Py_INCREF for us, which reduces errors if the function fails. The results of other PyModule_AddObject()

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

2020-05-18 Thread STINNER Victor
Change by STINNER Victor : -- components: +Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +19473 pull_request: https://github.com/python/cpython/pull/20164 ___ Python tracker ___

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset c444108dd62672f2b41539bcc8f15da44501f405 by Filipe Laíns in branch 'master': bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164) https://github.com/python/cpython/commit/c444108dd62672f2b41539bcc8f15da44501f405 --

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2020-05-18 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +19474 pull_request: https://github.com/python/cpython/pull/20176 ___ Python tracker ___

Re: Can one make 'in' ungreedy?

2020-05-18 Thread Chris Green
Larry Martell wrote: > On Mon, May 18, 2020 at 7:05 AM Chris Green wrote: > > > > I have a strange/minor problem in a Python program I use for mail > > filtering. > > > > One of the ways it classifies messages is by searching for a specific > > string in square brackets [] in the Subject:, the

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: def valid_key(fpath): try: with open(fpath, "rb") as f: return f.read(4) == b"TZif" except Exception: # pragma: nocover return False Why not only catching "except OSError:" rather than any exception?

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-18 Thread Edison Abahurire
New submission from Edison Abahurire : The Error can be evidenced below: ``` >>> >>> import timeit >>> >>> timeit.timeit('', number=1) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.8/timeit.py", line 232, in timeit return Timer(stmt, setup, timer,

[issue40646] Builtins in doc show signature in documentation

2020-05-18 Thread Eric V. Smith
Eric V. Smith added the comment: "message signatures" -> "function signatures" -- ___ Python tracker ___ ___ Python-bugs-list

[issue40503] PEP 615: Add zoneinfo module

2020-05-18 Thread STINNER Victor
STINNER Victor added the comment: I suggest to open a separated issue to discuss how tzdata can be installed on Travis CI, Azure Pipelines, Buildbots, etc. when running tests. -- ___ Python tracker

[issue31033] Improve traceback of cancelled tasks / add cancel() msg argument

2020-05-18 Thread Chris Jerdonek
Change by Chris Jerdonek : -- pull_requests: +19472 pull_request: https://github.com/python/cpython/pull/20173 ___ Python tracker ___

Re: Can one make 'in' ungreedy?

2020-05-18 Thread Larry Martell
On Mon, May 18, 2020 at 7:05 AM Chris Green wrote: > > I have a strange/minor problem in a Python program I use for mail > filtering. > > One of the ways it classifies messages is by searching for a specific > string in square brackets [] in the Subject:, the section of code that > does this is:-

Can one make 'in' ungreedy?

2020-05-18 Thread Chris Green
I have a strange/minor problem in a Python program I use for mail filtering. One of the ways it classifies messages is by searching for a specific string in square brackets [] in the Subject:, the section of code that does this is:- # # # copy the fields from the filter

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +19471 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20172 ___ Python tracker

[issue40669] PEG Parser benchmarks fail if memory_profiler is not installed

2020-05-18 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Running the PEG Parser benchmarks requires having memory_profiler installed. In Tools/peg_generator: ➜ peg_generator git:(master) make time_stdlib ../../python -m zipfile -e data/xxl.zip data ../../python scripts/benchmark.py --parser=cpython

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Michael Felt
Michael Felt added the comment: I could not "fathom" the buildbot test results - however, a manual build of PR29170 on 3.9 works: I'll try 3.8, but then from master (assuming it is already part of master) -- and that works as well. Thanks for the quick update! --

<    1   2   3   >