[issue45603] [Windows] account privileges and updating Python packages

2021-10-24 Thread Dean
Change by Dean : -- title: [Windows] -> [Windows] account privileges and updating Python packages ___ Python tracker ___ ___

[issue45603] [Windows]

2021-10-24 Thread Dean
New submission from Dean : Running on Windows 10 Home PC, I'm running into an issue with Windows user account privileges and updating Python packages. Upgrading a package (e.g. pip) with a lower-level user on Windows can result in a broken pip package (message of "no 'pip' package can be

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-24 Thread Tim Peters
Change by Tim Peters : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-24 Thread Tim Peters
Tim Peters added the comment: New changeset 51ed2c56a1852cd6b09c85ba81312dc9782772ce by Tim Peters in branch 'main': bpo-45530: speed listobject.c's unsafe_tuple_compare() (GH-29076) https://github.com/python/cpython/commit/51ed2c56a1852cd6b09c85ba81312dc9782772ce --

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-24 Thread Tim Peters
Tim Peters added the comment: To be concrete, here's an implementation of a full-blown, stable lexicographic sort based on "bucket refinement". `xs` is a list of sequences to be sorted in lexicographic order. The types of the sequences don't matter (lists, tuples, strings, ...). Indeed,

[issue45602] The grammar misses links that are present everywhere else

2021-10-24 Thread Arthur Milchior
New submission from Arthur Milchior : The grammar, in https://docs.python.org/3/reference/grammar.html , lacks some utilities that the remaining of the documentation have. While it remains usable, it is hard to navigate. As an example https://www.python.org/dev/peps/pep-0634/ 's

[issue37569] Complete your registration to Python tracker

2021-10-24 Thread Richard Hinerfeld
Richard Hinerfeld added the comment: I just get an error when I visit the URL On Sun, Oct 24, 2021 at 4:57 PM Python tracker wrote: > To complete your registration of the user "rhinerfeld1" with > Python tracker, please visit the following URL: > > >

[issue45601] test_tk and test_ttk_guionly fail with resource not availiable

2021-10-24 Thread Richard Hinerfeld
Richard Hinerfeld added the comment: running build_scripts copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/pydoc3 -> build/scripts-3.8 copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/idle3 -> build/scripts-3.8 copying and adjusting

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Irit Katriel
Irit Katriel added the comment: Actually I can check too :) And it was fixed: iritkatriel@Irits-MBP cpython % echo Coucou > '' iritkatriel@Irits-MBP cpython % ./python.exe -c 'raise ValueError' Traceback (most recent call last): File "", line 1, in ValueError iritkatriel@Irits-MBP cpython

[issue45601] test_tk and test_ttk_guionly fail with resource not availiable

2021-10-24 Thread Richard Hinerfeld
New submission from Richard Hinerfeld : Please note that test_tk and test_ttk_guionly fail when running testall when compiling 3.8.9 python from source code. Compiling on Linux Debian 64-bit bullseye 11.1.0 on a 2008 Mac Book. -- components: Build files: TestTK.txt messages: 404942

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Irit Katriel
Irit Katriel added the comment: Can you check on 3.11? I believe it was fixed under issue1514420. -- nosy: +iritkatriel resolution: -> duplicate superseder: -> Traceback display code can attempt to open a file named "" ___ Python tracker

[issue45599] Please official support %G, %V and %u directives in time library

2021-10-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In my use case, the objects hold references to large blocks > of GPU memory that should be freed as soon as possible. That makes sense. I can see why you reached for weak references. Would it be a workable alternative to have an explicit close()

[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-24 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-24 Thread Marten Lienen
Marten Lienen added the comment: Central control over the cache and its parameters is definitely a big plus. In my use case, the objects hold references to large blocks of GPU memory that should be freed as soon as possible. Additionally, I use cached_method to cache expensive hash

[issue45588] cached_method similar to cached_property to cache with classes

2021-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: For comparison, here is a recipe that I was originally going to include in the FAQ entry but later decided against it. It only had an advantage over @lru_cache with instances so large that we can't wait for them to age out of the cache. It shouldn't be

[issue45600] First sentence in docs for os.environ

2021-10-24 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45600] First sentence in docs for os.environ

2021-10-24 Thread Andrei Kulakov
Andrei Kulakov added the comment: Eryk: sounds much better and clearer I think, I've put up a PR (that also does the same update to os.environb). -- ___ Python tracker ___

[issue45600] First sentence in docs for os.environ

2021-10-24 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +27473 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29204 ___ Python tracker ___

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-24 Thread Dong-hee Na
Dong-hee Na added the comment: AS-IS: average: 0.015609736680984497 TO-BE: average: 2.7387380599975585e-05 Impressive result :) -- Added file: https://bugs.python.org/file50392/bpo-45429.py ___ Python tracker

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-24 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +27472 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29203 ___ Python tracker ___

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-10-24 Thread Sam Bull
Change by Sam Bull : -- nosy: +dreamsorcerer nosy_count: 10.0 -> 11.0 pull_requests: +27471 pull_request: https://github.com/python/cpython/pull/29202 ___ Python tracker ___

[issue45600] First sentence in docs for os.environ

2021-10-24 Thread Eryk Sun
Eryk Sun added the comment: The os.environ description appears to be worded as the "string environment" in contrast to the os.environb "environment as byte strings". I like the emphasis on the "process environment". How about "A mapping object of key and value strings that represent the

[issue45600] First sentence in docs for os.environ

2021-10-24 Thread Andrei Kulakov
New submission from Andrei Kulakov : In os.eviron docs: https://docs.python.org/3.11/library/os.html#os.environ A mapping object representing the string environment. Should that be "... the process environment." ? -- assignee: docs@python components: Documentation messages: 404934

[issue45599] Please official support %G, %V and %u directives in time library

2021-10-24 Thread Raphael
New submission from Raphael : In the time library documentation (https://docs.python.org/3/library/time.html) the directives %G, %V and %u for strftime() are missing, although they work (at least for me in Linux Mint): $ python3 Python 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0] on

[issue45275] Make argparse print description of subcommand when invoke help doc on subcommand

2021-10-24 Thread Hai Shi
Hai Shi added the comment: Hi, Chuanlong. Would you mind to upload a demo for this question? -- nosy: +shihai1991 ___ Python tracker ___

[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-24 Thread miss-islington
miss-islington added the comment: New changeset 36971fd1f490664fb62b1fab869c5637669f0967 by Miss Islington (bot) in branch '3.10': bpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150) https://github.com/python/cpython/commit/36971fd1f490664fb62b1fab869c5637669f0967

[issue33439] python-config.py should be part of the stdlib

2021-10-24 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Yes, this was also proposed here: https://bugs.python.org/issue11602 -- ___ Python tracker ___

[issue44787] Missing valid directive %D in datetime.strftime() documentation

2021-10-24 Thread Raphael
Raphael added the comment: Perhaps it could be mentioned more clearly in the datetime documentation that apart from the directives of the C89 standard, you can also use those that the underlying libc strftime() supports. The following sentence from

[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +27470 pull_request: https://github.com/python/cpython/pull/29201 ___ Python tracker ___

[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-24 Thread miss-islington
miss-islington added the comment: New changeset 07236d562e59c6650227be18fa6ffc66b18d4741 by Nikita Sobolev in branch 'main': bpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150) https://github.com/python/cpython/commit/07236d562e59c6650227be18fa6ffc66b18d4741 --

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-24 Thread Ian Fisher
Change by Ian Fisher : -- keywords: +patch pull_requests: +27469 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29200 ___ Python tracker ___

[issue45548] Update Modules/Setup

2021-10-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27468 pull_request: https://github.com/python/cpython/pull/29199 ___ Python tracker ___

[issue45598] setup.py grep_headers_for() is broken by design

2021-10-24 Thread Christian Heimes
Christian Heimes added the comment: If we remove grep_headers_for(), then we can also close bpo-42325 -- ___ Python tracker ___

[issue45598] setup.py grep_headers_for() is broken by design

2021-10-24 Thread Christian Heimes
New submission from Christian Heimes : The setup.py helper function grep_headers_for() is used by ctypes build step to search header files for functions. The function kinda works on most platforms, but only by accident. On my system it opens all header files that match /usr/include/*.h and

[issue45597] os.path.realpath returns invalid path for junction pointing to letter-less volume

2021-10-24 Thread Eryk Sun
Eryk Sun added the comment: This is from checking whether the \\?\ prefix can be stripped. The _getfinalpathname() call that it makes fails with the initial winerror (ERROR_PATH_NOT_FOUND), since nt._getfinalpathname() still lacks support for volume GUID paths. In this case, it assumes the

[issue45548] Update Modules/Setup

2021-10-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.10.2021 21:30, Christian Heimes wrote: > > The trick would move the math function back into the core. Mark moved the > math functions out of the core on purpose, see bpo-7518. I don't follow you. With the _math.o target in Makefile.pre.in, _math.c

[issue45597] os.path.realpath returns invalid path for junction pointing to letter-less volume

2021-10-24 Thread Basil Peace
New submission from Basil Peace : If a path contains a junction pointing to a dir on a letter-less drive then `os.path.realpath` returns `Volume{}\dir`, without `\\?\` prefix. This path, of course, doesn't work correctly. Actually, it looks relative. Original issue:

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Julien Palard
New submission from Julien Palard : When running `python -c 'raise ValueError'` Python tries to open the '' file, so: $ echo Coucou > '' $ python -c 'raise ValueError' Traceback (most recent call last): File "", line 1, in Coucou ValueError -- messages:

[issue45595] [Build] Make extensions depend on header files

2021-10-24 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27467 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29198 ___ Python tracker

[issue45595] [Build] Make extensions depend on header files

2021-10-24 Thread Christian Heimes
New submission from Christian Heimes : Any change to a Python header file triggers a rebuild of Python core objects. The extension modules are not automatically rebuild in several cases. This is slightly annoying for core development because it forces me to do ``make clean`` too often. *

[issue2628] ftplib Persistent data connection

2021-10-24 Thread mike mcleod
mike mcleod added the comment: Hi, I would like to help on this issue. -- nosy: +mikecmcleod ___ Python tracker ___ ___

[issue45594] Feature Request: add EHOSTUNREACH subclass to ConnectionError

2021-10-24 Thread Nathan Collins
Nathan Collins added the comment: Apparently the existing ConnectionError and its subclasses were added as part of PEP 3151, tracked here: https://bugs.python.org/issue12555 . -- ___ Python tracker

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-24 Thread Nikita Sobolev
Nikita Sobolev added the comment: In my opinion, it is never a bad thing to create a new issue :) сб, 23 окт. 2021 г. в 22:46, Sergei Lebedev : > > Sergei Lebedev added the comment: > > Is it worth filing a separate issue for locals()? > > In my experience local classes are less common than

[issue45594] Feature Request: add EHOSTUNREACH subclass to ConnectionError

2021-10-24 Thread Nathan Collins
New submission from Nathan Collins : WHAT It would be nice if there was a special-case subclass of the standard library OSError/ConnectionError class for C EHOSTUNREACH (a.k.a. "no route to host") errors. Currently there are special-case subclasses of ConnectionError for several other types

[issue44805] asyncio.StreamReader.read hangs for reused socket file descriptors when asyncio.StreamWriter.close() is not called

2021-10-24 Thread Nathan Collins
Nathan Collins added the comment: Just wanted to clarify: my previous "where everything works" comment is not saying this bug doesn't exist, I just mean I missed one case in my analysis of the bug. The bug is very much there, and easy to reproduce using the example programs I attached.