[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 in

[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

[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

[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 requir

[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 -- _

[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 ___ ___ Python-bugs-

[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 sym

[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: https://mail.p

[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 ___ _

[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 nam

[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 ___

[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 loo

[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 by

[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 "Scripts"->"bin

[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; print(os._exists.

[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 U

[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

[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 __

[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

[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 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 a

[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: https://mail.python.org/ma

[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: https://mail.pyt

[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 --

[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 miss-islington
Change by miss-islington : -- pull_requests: +29985 pull_request: https://github.com/python/cpython/pull/31887 ___ Python tracker ___ __

[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: ht

[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 --

[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 ---

[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 val

[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 ___ ___

[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 PyGILState_Ensu

[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: https://docs.python.org/3.8/library/math

[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 worse)

[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 wo

[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 ___

[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 ___ ___ Pytho

[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 he

[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 this

[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 ___ ___

<    1   2