[issue46841] Inline bytecode caches

2022-03-14 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +29986 pull_request: https://github.com/python/cpython/pull/31888 ___ Python tracker ___

[issue18309] Make python slightly more relocatable

2022-03-14 Thread Shakeeb Alireza
Shakeeb Alireza added the comment: Thanks, Mathias. This is all about improving python's 'relocatability'. Just to expand on my prior point: the scenario we are talking about is where one embeds python in a host application's plugin system rather than in the host application itself. In

[issue47021] Add separate match and case doc to pydoc

2022-03-14 Thread Duck
New submission from Duck : Currently pydoc (and therefore things like the interactive help prompt) do not have documentation for the soft-keywords "match" and "case". ``` help> match No Python documentation found for 'match'. Use help() to get the interactive help utility. Use help(str) for

[issue47015] Update tests from asyncore to asyncio

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +asvetlov, giampaolo.rodola, josiahcarlson, stutzbach, yselivanov ___ Python tracker ___ ___

[issue47019] Fatal Python Error in sqlite3 Python 3.10

2022-03-14 Thread hydroflask
hydroflask added the comment: If you connect to the sqlite3 database in the example without using the factory, it will simply segfault. -- ___ Python tracker ___

[issue47020] float('nan')==math.nan does NOT evaluate to True (as suggested by documentation).

2022-03-14 Thread Eric V. Smith
Eric V. Smith added the comment: Jelle gives the correct reason for what you're seeing. Also note: >>> math.nan == math.nan False >>> float('nan') == float('nan') False If there's some specific part of the documentation that you think is misleading, please reopen this and point us to the

[issue47020] float('nan')==math.nan does NOT evaluate to True (as suggested by documentation).

2022-03-14 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I'm guessing you're referring to https://docs.python.org/3.8/library/math.html#math.nan. The text says explicitly that math.nan is "equivalent" to float("nan"), not that it is equal. This is correct. nan is not equal to itself, because (for better or

[issue47020] float('nan')==math.nan does NOT evaluate to True (as suggested by documentation).

2022-03-14 Thread Pablo Dumas
New submission from Pablo Dumas : float('nan')==math.nan does NOT evaluate to True (as suggested by documentation). On the other hand, float('inf')==math.inf DOES evaluate to True (as suggested by documentation). Documentation we're referring to:

[issue47019] Fatal Python Error in sqlite3 Python 3.10

2022-03-14 Thread hydroflask
New submission from hydroflask : _destructor in connection.c in Python 3.10+ now calls `PyGILState_Ensure()`, this is a problem because if the destructor is being called while the thread is being torn down it will cause an unbalanced/erroneous call to "PyEval_RestoreThread" in

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46950] Windows 11, VENV not working with case sensitive windows paths

2022-03-14 Thread Eryk Sun
Eryk Sun added the comment: In 3.10, you should be able to work around the problem for the venv site-packages directory by setting the environment variable "PYTHONPLATLIBDIR" to "Lib". This sets sys.platlibdir, which the site module uses to create the site-packages directory. The default

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread miss-islington
miss-islington added the comment: New changeset f1a5e1b89a526da0d66c5b368c924298291abb1a by Miss Islington (bot) in branch '3.9': bpo-43721: Fix docstrings for property.getter/setter/deleter (GH-31046) https://github.com/python/cpython/commit/f1a5e1b89a526da0d66c5b368c924298291abb1a

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread miss-islington
miss-islington added the comment: New changeset cebdc325580b49f4c7eb3c61a24c9e7f41ca736b by Miss Islington (bot) in branch '3.10': bpo-43721: Fix docstrings for property.getter/setter/deleter (GH-31046) https://github.com/python/cpython/commit/cebdc325580b49f4c7eb3c61a24c9e7f41ca736b

[issue47012] Speed up iteration of bytes and bytearray

2022-03-14 Thread Jeremiah Gabriel Pascual
Change by Jeremiah Gabriel Pascual : -- nosy: +Crowthebird ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +29985 pull_request: https://github.com/python/cpython/pull/31887 ___ Python tracker ___

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +29984 pull_request: https://github.com/python/cpython/pull/31886 ___ Python tracker

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2022-03-14 Thread Irit Katriel
Irit Katriel added the comment: New changeset e3d348a5252549708fd19338b675a2c23b60d677 by Irit Katriel in branch 'main': bpo-43721: Fix docstrings for property.getter/setter/deleter (GH-31046) https://github.com/python/cpython/commit/e3d348a5252549708fd19338b675a2c23b60d677 --

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35844] Calling `Multiprocessing.Queue.close()` too quickly causes intermittent failure (BrokenPipeError)

2022-03-14 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47018] ImportError: cannot import name '_simple_enum' from 'enum'

2022-03-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: What makes you think you are supposed to be able to import _simple_enum? It is a name with a leading underscore, so even if it exists, it is private and you shouldn't touch it. Unless _simple_enum is documented as something you can use, this is not a bug

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2022-03-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue47018] ImportError: cannot import name '_simple_enum' from 'enum'

2022-03-14 Thread AverseMoon54797
New submission from AverseMoon54797 : Why is this happening? Is there a fix for this I can't even fix the install because I get this error trying to reinstall cpython. -- messages: 415206 nosy: AverseMoon priority: normal severity: normal status: open title: ImportError: cannot import

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maximilian, thanks for the investigation. A check for 'fileno != -1' seems correct to me. Would you prepare a pull request? -- ___ Python tracker

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: Actually there are 2 distinct issues here: - ValueError: cannot use non-qualified names with default_namespace option - lack of 'standalone' option when writing XML PI -- ___ Python tracker

[issue47017] frozen modules are on by default in dev build

2022-03-14 Thread Guido van Rossum
Change by Guido van Rossum : -- type: -> behavior versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47017] frozen modules are on by default in dev build

2022-03-14 Thread Guido van Rossum
New submission from Guido van Rossum : At least on Windows and macOS, this repro shows that frozen modules are on in a dev build: Mac: ~/cpython$ ./python.exe -c 'import os; print(os._exists.__code__)' ", line 41> ~/cpython$ ./python.exe -Xfrozen_modules=off -c 'import os;

[issue42863] Python venv inconsistent folder structure on windows

2022-03-14 Thread Steve Dower
Steve Dower added the comment: Considering you've just been encountering issues with mismatched case, you're likely aware of how much harder that will make it to fix. First you'll need a proposal on how to ensure deprecation warnings reach those who need them. I'd suggest for

[issue46950] Windows 11, VENV not working with case sensitive windows paths

2022-03-14 Thread Steve Dower
Steve Dower added the comment: Okay, so that means there's some code somewhere that has a lowercase "lib". If you change it back to "Lib", can you do "python -m pip"? If that works, but a direct "pip" does not, it'll be an issue in pip (or a dependency), as those executables are generated

[issue47014] ProactorEventLoop ignores Ctrl+C after closing unrelated loop

2022-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ctrl-C handling is added by #23057 It uses signal.set_wakeup_fd() https://github.com/asvetlov/cpython/blob/main/Lib/asyncio/proactor_events.py#L631-L634 So, the last event loop steals Ctrl+C handling. Not sure if we can improve it. Running two concurrent

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: lxml tostring does not support the default_namespace value so not an option -- ___ Python tracker ___

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2022-03-14 Thread Eric Vergnaud
Eric Vergnaud added the comment: This is not a feature request, it's a bug fix request, so should be fixed asap. Why is it a bug ? XML spec says that "the default namespace does not apply to attribute names" (see section 6.3), therefore having a simple attribute name when using a default

[issue31415] Add -X option to show import time

2022-03-14 Thread miss-islington
miss-islington added the comment: New changeset 73943ce7d31595d152dc01bf0008b37c802c0d3b by Miss Islington (bot) in branch '3.9': bpo-31415: importtime was made by Inada Naoki (GH-31875) https://github.com/python/cpython/commit/73943ce7d31595d152dc01bf0008b37c802c0d3b --

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +29983 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31885 ___ Python tracker ___

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Illia Volochii
Change by Illia Volochii : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42863] Python venv inconsistent folder structure on windows

2022-03-14 Thread Darrel O'Pry
Darrel O'Pry added the comment: steve, I would be willing to champion this change. The process seems pretty straightforward. Create a release that creates the consistent layout on windows, symlinks the legacy paths, and adds some deprecation warnings. Then in a later release remove the

[issue46950] Windows 11, VENV not working with case sensitive windows paths

2022-03-14 Thread Darrel O'Pry
Darrel O'Pry added the comment: renaming Lib to lib seems to also resolve the problem... -- ___ Python tracker ___ ___

[issue31415] Add -X option to show import time

2022-03-14 Thread miss-islington
miss-islington added the comment: New changeset 9f1587e8d3f18729a0982774c6c4409472cbd9e3 by Miss Islington (bot) in branch '3.10': bpo-31415: importtime was made by Inada Naoki (GH-31875) https://github.com/python/cpython/commit/9f1587e8d3f18729a0982774c6c4409472cbd9e3 --

[issue47016] Create a test verifying bundled pip and setuptools wheels

2022-03-14 Thread Illia Volochii
New submission from Illia Volochii : Bundled pip and setuptools wheels have to be verified manually at the moment when they are upgraded. We can automate this by comparing their checksums to ones provided by Warehouse’s JSON API (e.g., https://pypi.org/pypi/pip/json.) Since such a check

[issue46950] Windows 11, VENV not working with case sensitive windows paths

2022-03-14 Thread Steve Dower
Steve Dower added the comment: As a quick (wild) guess, is it expecting the "Lib" directory to be lowercase "lib"? Could you try renaming that directory in your venv and see if it changes anything? -- ___ Python tracker

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Change by Ned Deily : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Ned Deily: > My apologies for not testing running the test suite with installed Pythons as > I usually do and thanks, Victor, for noting the buildbot failures. Well, the change didn't land into a Python release. Right now, the test suite is only run on an

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Ned Deily added the comment: New changeset 1b1239205d1b7ace1b054477c14fe77d54f471c4 by Ned Deily in branch '3.9': Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31881) https://github.com/python/cpython/commit/1b1239205d1b7ace1b054477c14fe77d54f471c4 --

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Ned Deily added the comment: New changeset 0cfcc0cbee4a0d48c412169f46b7199728fb298a by Ned Deily in branch '3.10': Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31880) https://github.com/python/cpython/commit/0cfcc0cbee4a0d48c412169f46b7199728fb298a --

[issue31415] Add -X option to show import time

2022-03-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +29982 pull_request: https://github.com/python/cpython/pull/31884 ___ Python tracker ___

[issue31415] Add -X option to show import time

2022-03-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 12.0 -> 13.0 pull_requests: +29981 pull_request: https://github.com/python/cpython/pull/31883 ___ Python tracker

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Ned Deily added the comment: New changeset 80cc10fa7d5f41daaf59ae9173022303f35a403c by Ned Deily in branch '3.7': Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31882) https://github.com/python/cpython/commit/80cc10fa7d5f41daaf59ae9173022303f35a403c --

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-03-14 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-03-14 Thread miss-islington
miss-islington added the comment: New changeset b4fd91b4d931dd97ceaf76750d227dd042c236f8 by Miss Islington (bot) in branch '3.9': [3.9] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31878)

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29980 pull_request: https://github.com/python/cpython/pull/31882 ___ Python tracker ___

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-03-14 Thread miss-islington
miss-islington added the comment: New changeset efa72501599029d9ac3f8a2e5ce900302c7d8f56 by Miss Islington (bot) in branch '3.10': [3.10] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31877)

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29979 pull_request: https://github.com/python/cpython/pull/31881 ___ Python tracker ___

[issue47015] Update tests from asyncore to asyncio

2022-03-14 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +29978 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31876 ___ Python tracker ___

[issue47015] Update tests from asyncore to asyncio

2022-03-14 Thread Oleg Iarygin
New submission from Oleg Iarygin : PEP 594 – Removing dead batteries from the standard library [1] removes asyncore and asynchat in 3.12 with the following note: > The asyncore module is also used in stdlib tests. The tests for ftplib, > logging, smptd, smtplib, and ssl are partly based on

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29977 pull_request: https://github.com/python/cpython/pull/31880 ___ Python tracker ___

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Ned Deily added the comment: New changeset 19f69993ae97db0bbea3b845a33b060b73b658b3 by Ned Deily in branch 'main': Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31879) https://github.com/python/cpython/commit/19f69993ae97db0bbea3b845a33b060b73b658b3 --

[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac

2022-03-14 Thread Ned Deily
Change by Ned Deily : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac

2022-03-14 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've had the same issue and fixed it with: brew remove --ignore-dependencies gettext @Ned thanks for help! -- nosy: +andrei.avk ___ Python tracker

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29976 pull_request: https://github.com/python/cpython/pull/31879 ___ Python tracker ___

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread Ned Deily
Ned Deily added the comment: My apologies for not testing running the test suite with installed Pythons as I usually do and thanks, Victor, for noting the buildbot failures. I'm reverting these setuptools updates to avoid blocking releases. We can track the issue with setuptools in

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-14 Thread Steve Dower
Steve Dower added the comment: > I do process the shebang to restrict searching, or did you mean something > else? That's what I meant. Guess I missed seeing it when scanning the code (probably I should've read the docs :D ) > And registry support [is >

[issue47013] test_bdb and test_distutils fail on installed Python 3.9, 3.10 and 3.11 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread Ned Deily
Ned Deily added the comment: (The buildbot failures were triggered by yesterday's merges for Issue46986 which updated the bundled setuptools in ensurepip. I'm reverting those merges now to unblock planned releases.) -- nosy: +jaraco, ned.deily versions: +Python 3.7, Python 3.8

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-03-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +29975 pull_request: https://github.com/python/cpython/pull/31878 ___ Python tracker ___

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-03-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +29974 pull_request: https://github.com/python/cpython/pull/31877 ___ Python tracker

[issue30677] [doc] mention that os.mkdir() raises FileNotFound if path does not exist

2022-03-14 Thread Irit Katriel
Irit Katriel added the comment: New changeset 879fbd9472753149b627f32add3ddca90ac47ab7 by slateny in branch 'main': bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) https://github.com/python/cpython/commit/879fbd9472753149b627f32add3ddca90ac47ab7 --

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-14 Thread Brett Cannon
Brett Cannon added the comment: "Practically nothing can be reused - there's no registry, no shebang handling, and our process launching on Windows is already very complex (and has to remain that way for compatibility)." I do process the shebang to restrict searching, or did you mean

[issue47008] Add Lib/site-packages to .gitignore

2022-03-14 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-14 Thread Steve Dower
Steve Dower added the comment: > It would probably be better to skip tests if the filesystem of the current > working directory doesn't support the test, Yes, this would be good. Then whoever is configuring the test runner can move where tests are run to make sure it is supported. There

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-14 Thread Eryk Sun
Eryk Sun added the comment: I was following the pattern of StatAttributeTests.test_access_denied(), which uses the current user's temp directory to get a filesystem that supports security. It would probably be better to skip tests if the filesystem of the current working directory doesn't

[issue46890] getpath problems with framework build

2022-03-14 Thread Steve Dower
Steve Dower added the comment: The sys module gets initialised in _PySys_UpdateConfig() in Python/sysmodule.c. It gets called later in pylifecycle.c. But it ought to just copy directly from the config. However, it's the site.py module that actually updates sys.prefix for the venv. So you

[issue46950] Windows 11, VENV not working with case sensitive windows paths

2022-03-14 Thread Darrel O'Pry
Darrel O'Pry added the comment: I've done some additional troubleshooting today. I have case sensitivity enabled in my git checkouts where I am creating the virtual env. I do this for a more consistent cross-platform experience for managing code with team members also using linux and macos.

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-14 Thread Steve Dower
Steve Dower added the comment: I'd like to, the main challenge with that is it'd invalidate the code signature on the file, which will make it basically unusable (at the very least, you'll get warnings). A simple rename does not. But yeah, it can probably go in. Hopefully my restructure

[issue18309] Make python slightly more relocatable

2022-03-14 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Hey, Shakeeb Alireza is right, the original problem was an application that links and embeds against libpython*{so,dll,dynlib} and should more easily find components like /*/lib*/python*.*/site.py and most probably now it needs to find getpath.py as well.

[issue47001] deadlock in ctypes?

2022-03-14 Thread Rocco Matano
Rocco Matano added the comment: I forgot to say thank you. I would like to make up for that: Thank you, Eryk. -- ___ Python tracker ___

[issue31415] Add -X option to show import time

2022-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 29624e769c5c3c1e59c6acc8b69383ead53e8a9f by Victor Stinner in branch 'main': bpo-31415: importtime was made by Inada Naoki (GH-31875) https://github.com/python/cpython/commit/29624e769c5c3c1e59c6acc8b69383ead53e8a9f --

[issue47014] ProactorEventLoop ignores Ctrl+C after closing unrelated loop

2022-03-14 Thread Maximilian Hils
New submission from Maximilian Hils : When a (second) ProactorEventLoop is garbage-collected, the current ProactorEventLoop starts to ignore Ctrl+C on Windows until it is woken up. The attached repro shows a minimal example. Uncommenting the `create_task` call or not using a second event

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-14 Thread Paul Moore
Paul Moore added the comment: > as well as potentially being able to be a script or .pyz launcher with a > simple rename. Would it be possible to also make the launcher work when prepended to a zipfile? That's a really useful use-case (make a zipapp automatically runnable, but still a

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-14 Thread Steve Dower
Steve Dower added the comment: >> Why can't the filename of the "foo"-like file in the test be >> simply os_helper.TESTFN, as done in some other tests? > > I suppose the current working directory will be fine. I was looking to keep > the test on a NTFS filesystem, with known behavior, but

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Oleg Iarygin for the cleanup! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-14 Thread Steve Dower
Steve Dower added the comment: > If it's already turning into a rewrite, how feasible would it be to adopt > Brett's `py` launcher? I looked at it already, and I'd have to write literally the same code to implement what's needed :) (as well as learning Rust and convincing everyone to let

[issue31415] Add -X option to show import time

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29973 pull_request: https://github.com/python/cpython/pull/31875 ___ Python tracker ___

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread Oleg Iarygin
Change by Oleg Iarygin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45786] Avoid allocating when exiting frame; it may be unsafe.

2022-03-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 2.0 -> 3.0 pull_requests: +29972 pull_request: https://github.com/python/cpython/pull/31874 ___ Python tracker ___

[issue47013] test_bdb and test_distutils fail on installed Python 3.9, 3.10 and 3.11 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: > $ ./configure --prefix /opt/py310 && make clean && make && make install > $ cd /somewhere/else/ > $ /opt/py310/bin/python3 -m test -v test_bdb I also reproduce test_bdb and test_distutils failures on the main branch. --

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: > This update broke the "s390x Fedora Rawhide Clang Installed 3.10" buildbot: > bpo-47013. test_bdb and test_distutils fail on 3.9, 3.10 and main branches when run on an installed Python. I didn't check Python 3.7. --

[issue47013] test_bdb and test_distutils fail on installed Python 3.9, 3.10 and 3.11 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: AMD64 Fedora Stable Clang Installed 3.x: https://buildbot.python.org/all/#builders/350/builds/1621 2 re-run tests: test_bdb test_distutils -- title: test_bdb and test_distutils fail on installed Python 3.9 and 3.10 (setuptools 60.9.3, pip

[issue47013] test_bdb and test_distutils fail on installed Python 3.9 and 3.10 (setuptools 60.9.3, pip 22.0.4)

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: x86 Gentoo Installed with X 3.9: https://buildbot.python.org/all/#builders/527/builds/474 4 tests failed: test_bdb test_distutils test_importlib test_peg_generator Python 3.9 gets two more issues: test_importlib and test_peg_generator.

[issue47013] 3.10: test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: See: [BUG] Having setuptools installed causes cpython stdlib build to fail https://github.com/pypa/setuptools/issues/3007 -- ___ Python tracker

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: This update broke the "s390x Fedora Rawhide Clang Installed 3.10" buildbot: bpo-47013. -- nosy: +vstinner ___ Python tracker ___

[issue47013] 3.10: test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Reproduce: $ ./configure --prefix /opt/py310 && make clean && make && make install $ cd /somewhere/else/ $ /opt/py310/bin/python3 -m test -v test_bdb ... FAIL: test_skip (test.test_bdb.StateTestCase) ... $ /opt/py310/bin/python3 -m test -v test_distutils

[issue47013] 3.10: test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10

2022-03-14 Thread STINNER Victor
New submission from STINNER Victor : Since build 298, test_bdb test_distutils fail on s390x Fedora Rawhide Clang Installed 3.10: https://buildbot.python.org/all/#/builders/694/builds/298 2 changes of build 298: * bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)(21 hours ago) *

[issue46587] datetime and time tests use non-portable "%4Y" format

2022-03-14 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +29971 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31873 ___ Python tracker

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: Can this issue be closed? Or is there remaining dead code that you want to remove? -- ___ Python tracker ___

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 13b041222399152acb555337572bd1d571734984 by Oleg Iarygin in branch 'main': bpo-46920: Remove code that has explainers why it was disabled (GH-31813) https://github.com/python/cpython/commit/13b041222399152acb555337572bd1d571734984 --

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset a52f82baf246e2fbbc58fe03ef7a51f3cc9514e1 by Oleg Iarygin in branch 'main': bpo-46920: Remove disabled debug code added decades ago and likely unnecessary (GH-31812)

[issue46920] Remove code made dead long ago with #if 0

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset e885ac3d5f2fd83617ab75a098aab269b7a446c3 by Oleg Iarygin in branch 'main': bpo-46920: Remove code that has no explainer why it was disabled (GH-31814) https://github.com/python/cpython/commit/e885ac3d5f2fd83617ab75a098aab269b7a446c3

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: msgpack and bitstruct use the newly added functions: my two PRs got merged. msgpack was my main motivation to add these functions :-) Thanks to great reviews, the functions got a new better documentation! I close the issue. Thanks again for reviews!

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 11c25b87aeed162d422bc18530fe9699f311e586 by Victor Stinner in branch 'main': bpo-46906: Mention native endian in PyFloat_Pack8() doc (GH-31866) https://github.com/python/cpython/commit/11c25b87aeed162d422bc18530fe9699f311e586 --

[issue40735] test_nntplib depends on unreliable external servers

2022-03-14 Thread STINNER Victor
STINNER Victor added the comment: It tomorrow a test_nntplib test fails too often, I suggest to simply skip it, since PEP 594 is accepted. Especially tests using external real NNTP servers. -- ___ Python tracker

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

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

[issue46843] PersistentTaskGroup API

2022-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: Okay. -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

  1   2   >