[issue45979] Fix Tkinter tests with old Tk

2021-12-05 Thread E. Paine
E. Paine added the comment: Is support for such old Tk versions useful? 8.5.4 was released in late 2008, and I highly doubt anyone would still be using it. IMO, 8.5.12 would be a good compromise, since we're giving support to a version more than 9 years old, but would simplify PR-29913 by re

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-05 Thread Ofer Koren
New submission from Ofer Koren : There's For quite a long time I've been seeing this bug: >>> class A(): ... @property ... def foo(self): ... return self.bar # < this is where it all starts ('bar' isn't found) ... ... def __getattr__(self, attr): ... raise At

[issue7946] Convoy effect with I/O bound threads and New GIL

2021-12-05 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-05 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43806] asyncio.StreamReader hangs when reading from pipe and other process exits unexpectedly

2021-12-05 Thread Marko
Marko added the comment: Thanks, takluyver! You are right. Synchronous code that I was comparing it to had os.close(ctx), but I forgot to add it in the async example, so I thought it was a bug. Closing this issue. -- resolution: -> not a bug stage: -> resolved status: open -> clos

[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-05 Thread Athanasius
New submission from Athanasius : Python 3.10.0 ships with version 8.6.2.10 of both tcl86t.dll and tk86t.dll. Python 3.9.9, released after 3.10.0, ships with the later version 8.6.2.12 of both files. Releasing a project using py2exe and WiX to build a windows MSI installer file means that upg

[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-05 Thread Alex Waygood
Alex Waygood added the comment: You can find the release schedule here, which says that 3.10.1 is expected... tomorrow https://www.python.org/dev/peps/pep-0619/#id6 -- nosy: +AlexWaygood ___ Python tracker

[issue27946] elementtree calls PyDict_GetItem without owning a reference to the dict

2021-12-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28143 pull_request: https://github.com/python/cpython/pull/29919 ___ Python tracker _

[issue27946] elementtree calls PyDict_GetItem without owning a reference to the dict

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d15cdb2f32f572ce56d7120135da24b9fdce4c99 by Serhiy Storchaka in branch 'main': bpo-27946: Fix possible crash in ElementTree.Element (GH-29915) https://github.com/python/cpython/commit/d15cdb2f32f572ce56d7120135da24b9fdce4c99 --

[issue27946] elementtree calls PyDict_GetItem without owning a reference to the dict

2021-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +28144 pull_request: https://github.com/python/cpython/pull/29920 ___ Python tracker ___ __

[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-05 Thread Athanasius
Athanasius added the comment: Thanks, I have my fingers crossed that 3.10.1 will have automatically picked up >= 8.6.2.12 versions of the files. I'll check once it's available. -- ___ Python tracker __

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Akash Mishra
Akash Mishra added the comment: While browsing some traceback error reporting i land on this solution threads. Specially beginner face traceback error for - KeyError - IndexError (As mentioned in current message thread) - ValueError .. It is sometime self explanatory from error reports but

[issue19153] [doc] Embedding into a shared library fails again

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- title: Embedding into a shared library fails again -> [doc] Embedding into a shared library fails again versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker

[issue29251] [doc] Class __dict__ is only a mapping proxy

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: The patch would still apply to Doc/library/functions.rst. https://docs.python.org/3.10/reference/datamodel.html#the-standard-type-hierarchy seems to have been changed quite a lot, but still has: 1. "Special read-only attribute: __dict__ is the module’s namesp

[issue43805] multiprocessing.Queue hangs when process on other side dies

2021-12-05 Thread Marko
Marko added the comment: Yes, something like that would indeed be really helpful. How likely is that something like that gets implemented? -- ___ Python tracker ___ __

[issue44245] Cross-compilation of CPython 3.8 with _socket module using Anddroid NDK fails

2021-12-05 Thread Ladislav Heller
Ladislav Heller added the comment: Tried to cross-compile with an old version of Android NDK. Using the latest NDK it works perfectly. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Toshihiro Kamiya
New submission from Toshihiro Kamiya : When I was writing unit tests, I noticed that os.chdir in the unittest test case failed with RecursionError. It seems to work fine on Ubuntu 20.04, but fails on Windows 10 (might fail on macOS). The attached file is a minimal code to reproduce this. Wh

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2021-12-05 Thread hongweipeng
hongweipeng added the comment: I think PR https://github.com/python/cpython/pull/28674 has resolved this issue. -- nosy: +hongweipeng ___ Python tracker ___ __

[issue3687] Popen() object stdout attribute reassignment behaviour

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: The situation is the same in 3.11, both doc and implementation. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-05 Thread E. Paine
E. Paine added the comment: I can confirm that 3.10.1 is going to use Tk 8.6.12 (see #45732). Python 3.10.0 was meant to use Tk 8.6.11, but there was an issue with the build process (#43652). -- nosy: +epaine ___ Python tracker

[issue45988] inspect.signature fails on a @staticmethod

2021-12-05 Thread Filippo Vicentini
New submission from Filippo Vicentini : Attempting to inspect the signature of a method marked as @staticmethod during class construction fails. This happens in 3.8, 3.9. A MWE is given here: ```python from typing import signature def decorator(fun): print(signature(fun)) retu

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: I think that (1) the patch is not worded very clearly (2) the docs should not reference py2exe for instructions how to do something Perhaps it would suffice to change the sentence: Any files may be present in the ZIP archive, but only files .py and .pyc are av

[issue45582] Rewrite getpath.c in Python

2021-12-05 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28145 pull_request: https://github.com/python/cpython/pull/29921 ___ Python tracker ___

[issue12833] Document the need to pass the prompt to raw_input() with readline

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: I agree with Martin that this belongs in the input() rather than readline() docs. However, the input() does is quite concise, and the sole example specifies the right way to use it: https://docs.python.org/3/library/functions.html#input I find it hard to just

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue1705393] Document select() failure with buffered file

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue26897] [doc] Clarify Popen stdin, stdout, stderr

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: Clarify Popen stdin, stdout, stderr -> [doc] Clarify Popen stdin, stdout, stderr versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Alex Waygood
Change by Alex Waygood : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28546] [doc] Clarify setting pdb breakpoints

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch title: Better explain setting pdb breakpoints -> [doc] Clarify setting pdb breakpoints versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 __

[issue28546] [doc] Clarify setting pdb breakpoints

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a GitHub PR. -- nosy: +iritkatriel ___ Python tracker ___ ___ Py

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28146 pull_request: https://github.com/python/cpython/pull/29922 ___ Python tracker ___

[issue45989] Getting key of max value of dict really dose not sense

2021-12-05 Thread Masoud Azizi
New submission from Masoud Azizi : Maximum_signal_key=max(collective_signals,key=collective_signals.get) This code is really hard to learn and remember. Please change it to something that more sense. -- messages: 407719 nosy: mablue priority: normal severity: normal status: open title:

[issue45582] Rewrite getpath.c in Python

2021-12-05 Thread Christian Heimes
Christian Heimes added the comment: New changeset 628abe4463ed40cd54ca952a2b4cc2d6e74073f7 by Christian Heimes in branch 'main': bpo-45582: Fix signature of _Py_Get_Getpath_CodeObject (GH-29921) https://github.com/python/cpython/commit/628abe4463ed40cd54ca952a2b4cc2d6e74073f7 -- __

[issue21761] [doc] language reference describes the role of module.__file__ inaccurately

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: Would it suffice to change "Ultimately, the loader is what makes use of __file__ and/or __cached__" to "Ultimately, the loader set the values of __file__ and/or __cached__" ? -- nosy: +iritkatriel title: language reference describes the role of modu

[issue45990] Exception notes need more documentation

2021-12-05 Thread Ram Rachum
New submission from Ram Rachum : The new __note__ feature for exception could be useful, but the documentation (and the section in "What's new") aren't good enough: "__note__: A mutable field which is :const:`None` by default and can be set to a string. If it is not :const:`None`, it is inclu

[issue45989] Getting key of max value of dict really dose not sense

2021-12-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: The code makes perfect sense. If you want to find the maximum key in a dict, you write: max(collective_signals) If you want to find the maximum key according to some key function, you write: max(collective_signals, key=function) If you want to fi

[issue45989] Add new function or method to return the dict key with the maximum value

2021-12-05 Thread Steven D'Aprano
Change by Steven D'Aprano : -- title: Getting key of max value of dict really dose not sense -> Add new function or method to return the dict key with the maximum value ___ Python tracker ___

[issue45934] python curses newterm implementation

2021-12-05 Thread Julius Hamilton
Julius Hamilton added the comment: I’m trying to patch this bug. Here are my current working questions: 1. What is the relationship between an fd (file descriptor) and a terminal? What software / hardware component goes to “fd 0” to receive input from it? Is there a GNU Screen command to rec

[issue45934] python curses newterm implementation

2021-12-05 Thread Julius Hamilton
Julius Hamilton added the comment: I’m trying to patch this bug. Here are my current working questions: 1. What is the relationship between an fd (file descriptor) and a terminal? What software / hardware component goes to “fd 0” to receive input from it? Is there a GNU Screen command to recei

[issue45989] Add new function or method to return the dict key with the maximum value

2021-12-05 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that we don't need a special function for this, so I'm going to close this. -- nosy: +eric.smith resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue45991] Improve ambiguous docstrings in pkgutil

2021-12-05 Thread Kevin Hock
New submission from Kevin Hock : # Issue If you search for "list of paths" in https://github.com/KevinHock/cpython/blob/main/Lib/pkgutil.py A lot of people mistake this as `PosixPath`. You can see an example here: https://github.com/duo-labs/parliament/pull/207 that references other OSS rep

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-05 Thread Christian Heimes
Christian Heimes added the comment: It works as designed and documented. An empty string is considered a relative directory. https://docs.python.org/3/library/sys.html#sys.pycache_prefix > If this is set (not None), Python will write bytecode-cache .pyc files to > (and read them from) a pa

[issue27946] elementtree calls PyDict_GetItem without owning a reference to the dict

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset 52a9a71fe682e47f6c78a9c34aa9a797ca632c86 by Miss Islington (bot) in branch '3.9': bpo-27946: Fix possible crash in ElementTree.Element (GH-29915) https://github.com/python/cpython/commit/52a9a71fe682e47f6c78a9c34aa9a797ca632c86 -- ___

[issue27946] elementtree calls PyDict_GetItem without owning a reference to the dict

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset beb834292db54fea129dd073cc822179430cee52 by Miss Islington (bot) in branch '3.10': bpo-27946: Fix possible crash in ElementTree.Element (GH-29915) https://github.com/python/cpython/commit/beb834292db54fea129dd073cc822179430cee52 -- __

[issue27946] elementtree calls PyDict_GetItem without owning a reference to the dict

2021-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is (snip)? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45934] python curses newterm implementation

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is it about? The first message is by Guido, but not this message nor the title does not give me any idea what is it about. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-05 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: Can I know the reason for rejection? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Eryk Sun
Eryk Sun added the comment: Windows opens the working directory without delete sharing, so trying to delete it fails with a PermissionError for ERROR_SHARING_VIOLATION (winerror 32). I discussed a modified version of the _rmtree() method in msg377358. The proposed version would try to reset

[issue37295] Possible optimizations for math.comb()

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 60c320c38e4e95877cde0b1d8562ebd6bc02ac61 by Serhiy Storchaka in branch 'main': bpo-37295: Optimize math.comb() and math.perm() (GH-29090) https://github.com/python/cpython/commit/60c320c38e4e95877cde0b1d8562ebd6bc02ac61 -- _

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Spencer Brown
Spencer Brown added the comment: One potential solution would be to add two Py_ssize_t to IndexError, storing the index and length along with the existing exception value. Then __str__() can append that to the message if set, perhaps having len be negative to signal they're not passed. An

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1fd4de5bddbbf2a97cdbac4d298c89e1156bdc6c by Serhiy Storchaka in branch 'main': bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) https://github.com/python/cpython/commit/1fd4de5bddbbf2a97cdbac4d298c89e1156b

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28147 pull_request: https://github.com/python/cpython/pull/29923 ___ Python tracker _

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +28148 pull_request: https://github.com/python/cpython/pull/29924 ___ Python tracker ___ __

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 446be166861b2f08f87f74018113dd98ca5fca02 by Serhiy Storchaka in branch 'main': bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) https://github.com/python/cpython/commit/446be166861b2f08f87f74

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28149 pull_request: https://github.com/python/cpython/pull/29925 ___ Python tracker _

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +28150 pull_request: https://github.com/python/cpython/pull/29926 ___ Python tracker ___ __

[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +28152 pull_request: https://github.com/python/cpython/pull/29928 ___ Python tracker ___ __

[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-12-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28151 pull_request: https://github.com/python/cpython/pull/29927 ___ Python tracker _

[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b318ce1c988b7b6e3caf293d55f289e066b6e0f by Serhiy Storchaka in branch 'main': bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) https://github.com/python/cpython/commit/2b318ce1c988b7b6e3caf293d55f

[issue45840] Improve cross-references in the data model documentation

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c0521fe49fd75e794a38a216813658ab40185834 by Alex Waygood in branch 'main': bpo-45840: Improve cross-references in the data model documentation (GH-29633) https://github.com/python/cpython/commit/c0521fe49fd75e794a38a216813658ab40185834 -

[issue13236] unittest needs more flush calls

2021-12-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28153 pull_request: https://github.com/python/cpython/pull/29929 ___ Python tracker ___

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset f1dd5ed1f35a7ed5c3833c822e9965de2400d77e by Miss Islington (bot) in branch '3.10': bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) https://github.com/python/cpython/commit/f1dd5ed1f35a7ed5c3833c822e9965de24

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset abceb66c7e33d165361d8a26efb3770faa721aff by Miss Islington (bot) in branch '3.10': bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) https://github.com/python/cpython/commit/abceb66c7e33d165361d

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also share Serhiy's concerns and prefer that it be left as-is. Conceptually, adding more information in the error message would make it more useful for debugging, but in practice, it would rarely be helpful. In teaching and coaching Python, I've learne

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset 19050711f5a68e50b942b3b7f1f4cf398f27efff by Miss Islington (bot) in branch '3.9': bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) https://github.com/python/cpython/commit/19050711f5a68e50b942b

[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset cb68c0a3a4aeb4ec58ab1f71b70bc8bfecbceef6 by Miss Islington (bot) in branch '3.10': bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) https://github.com/python/cpython/commit/cb68c0a3a4aeb4ec58ab1f71b7

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's another way to think of it: The call s[i] raising an IndexError isn't a numerical error, it is a conceptual error. Knowing that i==15 and len(s)==10 doesn't usually help resolve the problem. The fix typically isn't replacing s[i] with s[i - 5].

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Vedran Čačić
Vedran Čačić added the comment: > fix typically isn't replacing s[i] with s[i - 5] ... especially since that will still raise IndexError (in case when i==15 and len(s)==10). ;-P -- nosy: +veky ___ Python tracker

[issue1512163] mailbox (2.5b1): locking doesn't work (esp. on FreeBSD)

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: The original bug has been fixed, so I am closing this. Please create a new issue (probably of type enhancement) for the .lock()/.unlock() override support if this is still an issue. The use case/test can be discussed on that issue. -- nosy: +iritkatri

[issue45988] inspect.signature fails on a @staticmethod

2021-12-05 Thread Vedran Čačić
Vedran Čačić added the comment: Of course, signature should be imported from inspect, not from typing. In that case, the example works on Python 3.10 and 3.11. -- nosy: +veky ___ Python tracker _

[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Check my multiple comments in PR29916 -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur with Serhiy and Raymond and I would prefer to leave as is. -- ___ Python tracker ___

[issue25668] Deadlock in logging caused by a possible race condition with "format"

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: > Please tell me what is unusual for you with this testcase? Grabbing a lock in __str__/__repr__ strikes me as unusual and a recipe for problems. You don't really know when those functions are called - from the debugger, from exception handlers, etc.. Even

[issue13821] [doc] misleading return from isidentifier

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: misleading return from isidentifier -> [doc] misleading return from isidentifier versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Toshihiro Kamiya
Toshihiro Kamiya added the comment: Sorry, the "(snip)" means that it was omitted because it was too long. I' ll attach a screenshot. -- Added file: https://bugs.python.org/file50477/FF2dfQ_acAc497b.png ___ Python tracker

[issue12290] __setstate__ is called for false values

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: See also issue26695. -- nosy: +iritkatriel type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker __

[issue26695] pickle and _pickle accelerator have different behavior when unpickling an object with falsy __getstate__ return

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: See also issue12290. -- nosy: +iritkatriel type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Toshihiro Kamiya
Toshihiro Kamiya added the comment: Thank you, eryksun, for pointing out the cause of the problem. I have modified the test script and it can now be run on Windows. The attached file is a revised version of the reproduction script, which reflects the modifications made to the test script to

[issue38836] Links are duplicated in documentation search result

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: On a Mac I was unable to reproduce this - the link to the search results give me a list of two items: 1. os.walk linking to https://docs.python.org/3.9/library/os.html?highlight=os.walk#os.walk 2. Changelog linking to https://docs.python.org/3.9/whatsnew/cha

[issue29317] test_copyxattr_symlinks fails

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26894] Readline not aborting line edition on sigint

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue31879] Launcher fails on custom command starting with "python"

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +loewis, mhammond type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16247] Report failing url in URLError?

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: Senthil, can this issue be closed now or is there something left to do? -- nosy: +iritkatriel ___ Python tracker ___ __

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11. Is it still a problem? -- nosy: +iritkatriel ___ Python tracker ___

[issue45987] os.chdir in unittest's test case causes RecursionError on Windows

2021-12-05 Thread Toshihiro Kamiya
Toshihiro Kamiya added the comment: I think it may be difficult to understand the error message that deleting a directory causes "RecursionError or stack overflow", though. I hope the issue reported as msg377358 will be resolved in some way. -- __

[issue27920] Embedding python in a shared library fails to import the Python module

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: Did Antoine's fix from issue19153 solve your problem? -- nosy: +iritkatriel ___ Python tracker ___

[issue27920] Embedding python in a shared library fails to import the Python module

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17179] Misleading error from type() when passing unknown keyword argument

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue24851] infinite loop in faulthandler._stack_overflow

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23360] Content-Type when sending data with urlopen()

2021-12-05 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: If CWD=/a/b and pycache_prefix=c, the resulting dir is /a/b/c as I would expect. If CWD=/a/b and pycache_prefix='', I would expect resulting dir to be /a/b instead of /a/b/a/b . For example as the shell `cd` command accepts relative path as arg, I would ex

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: Can this also create the risk of 'path too long' issues? -- ___ Python tracker ___ ___ Python-bug

[issue45582] Rewrite getpath.c in Python

2021-12-05 Thread neonene
Change by neonene : -- pull_requests: +28154 pull_request: https://github.com/python/cpython/pull/29930 ___ Python tracker ___ ___ P

[issue45981] Get raw file name in bytes from ZipFile

2021-12-05 Thread Daniel Hillier
Daniel Hillier added the comment: Handling different character sets is not completely supported yet. There are a couple of open issues relating to this: https://bugs.python.org/issue40407 (reading file names), https://bugs.python.org/issue41928 (support for reading and writing filenames usin

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank for the suggestion. While we're going to a pass on this one, no doubt there are other places that language can improve its communication with the user. Please continue to submit ideas and patches. -- __

[issue44092] [sqlite3] Remove special rollback handling

2021-12-05 Thread Ma Lin
Ma Lin added the comment: I think this change is no problem. Erlend E. Aasland's explanation is very clear. There is only one situation that a problem may occur. Write code with SQLite 3.8.7.2+ (2014-11-18), and run it on 3.7.15 (2012-12-12) ~ 3.8.7.1-, but this situation may be difficult t

[issue45934] python curses newterm implementation

2021-12-05 Thread Guido van Rossum
Guido van Rossum added the comment: Serhiy, this started with a post by Julius to the core-mentorship list. He wants to add newterm(), and found that an issue about that was just created by a different user (draganic1) -- apparently without a comment body, so it appears the first comment is

  1   2   >