[issue45630] Dump CodeObject API for debugging

2021-12-09 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: Recently, we have used this function to troubleshoot problems with online applications. We have implemented the PEP659(Specializing) to the 3.6 version which is used by online services, and this function allows us to dump the current

[issue46030] socket module add couple of FreeBSD constants

2021-12-09 Thread David Carlier
New submission from David Carlier : - adding LOCAL_CREDS then LOCAL_CREDS_PERSISTENT and SCM_CREDS2 which would be used as msg type for the latter. -- components: FreeBSD messages: 408175 nosy: dcarlier, koobs priority: normal pull_requests: 28242 severity: normal status: open title:

[issue39327] shutil.rmtree using vagrant synched folder fails

2021-12-09 Thread Lasse Kantola
Lasse Kantola added the comment: I have encountered the same problem with vboxsf mounted folders when using Debian guest on VirtualBox 6.1 hosted by Windows 10. The general VirtualBox issue of vboxsf not supporting rmdir when there are open file descriptors is difficult to solve, and out of

[issue46029] "ValueError: Invalid isoformat string" from a valid string

2021-12-09 Thread oittaa
New submission from oittaa : Test case: >>> import datetime >>> datetime.datetime.fromisoformat('2021-12-10T01:00:00Z') Traceback (most recent call last): File "", line 1, in ValueError: Invalid isoformat string: '2021-12-10T01:00:00Z' Basically every other programming language I tested

[issue43931] Add the Python version to the API data.

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Fri, Dec 10, 2021 at 12:03:15AM +, Gabriele N Tornetta wrote: > class Side(object): > def __getattribute__(self, name): > ValueError(name) You forgot to actually *raise* the exception. That will just instantiate the ValueError instance,

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: I agree that the rules regarding type and `__class__` and isinstance are not clear or well documented. We have: https://docs.python.org/3/library/stdtypes.html#instance.__class__ https://docs.python.org/3/library/functions.html#isinstance but neither

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Changing the way isinstance works internally might prove > beneficial for such tools. ISTM you're advocating a design change rather than discussing a bug report. The python-ideas mail list would be a better forum than the tracker. -- nosy:

[issue43931] Add the Python version to the API data.

2021-12-09 Thread miss-islington
miss-islington added the comment: New changeset 50669083fe16a42cba90b5dd8c1a017751f69fd8 by Gabriele N. Tornetta in branch 'main': bpo-43931: Export Python version as API data (GH-25577) https://github.com/python/cpython/commit/50669083fe16a42cba90b5dd8c1a017751f69fd8 -- nosy:

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ned, are you able to bisect this or provide a simpler reproducer that doesn't involve tox? -- ___ Python tracker ___

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Steve, could this be related to the changes in getpath? -- nosy: +steve.dower ___ Python tracker ___

[issue46014] functools.singledispatch does not support Union types

2021-12-09 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 4.0 -> 5.0 pull_requests: +28241 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30017 ___ Python tracker

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-09 Thread Ned Batchelder
New submission from Ned Batchelder : Under tox, sys._base_executable is not an actual file for 3.11.0a3. It was fine in 3.11.0a2. To reproduce: --- 8< # tox.ini [tox] envlist = py{310,311a2,311} skipsdist = True [testenv] commands = python -c "import sys,os.path;

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: > Python is very much a language about responsibility. If Django is overriding > `__getattribute__` then it is their responsibility to ensure that everything > still works properly. Perhaps I didn't stress observability enough. A tool like a tracer or

[issue27583] [doc ] configparser: modifying default_section at runtime

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: configparser: modifying default_section at runtime -> [doc ] configparser: modifying default_section at runtime versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7

[issue20823] [doc] Clarify copyreg.pickle() documentation

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch title: Clarify copyreg.pickle() documentation -> [doc] Clarify copyreg.pickle() documentation versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue17108] [doc] import silently prefers package over module when both available

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: import silently prefers package over module when both available -> [doc] import silently prefers package over module when both available versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 3.4

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset da3cf4304f6dd530533bbd2c0913b674cd803744 by Victor Stinner in branch 'main': bpo-46016: GHA Doc job now also runs "make check" (GH-30009) https://github.com/python/cpython/commit/da3cf4304f6dd530533bbd2c0913b674cd803744 --

[issue7262] [doc] codecs.open() + eol (windows)

2021-12-09 Thread Irit Katriel
Irit Katriel added the comment: That paragraph was edited here: https://github.com/python/cpython/commit/b9fdb7a452c2b6f7a628118b5f695bd061b62cc8 but this point was not added. -- nosy: +iritkatriel title: codecs.open() + eol (windows) -> [doc] codecs.open() + eol (windows)

[issue45774] Detect SQLite in configure.ac

2021-12-09 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28240 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30016 ___ Python tracker ___

[issue26159] Unsafe to BaseEventLoop.set_debug(False) when PYTHONASYNCIODEBUG=1

2021-12-09 Thread Irit Katriel
Irit Katriel added the comment: asyncio.coroutine was removed in 3.10, so this is no longer relevant. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45774] Detect SQLite in configure.ac

2021-12-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Reopening: the current detection is a little bit weak; many SQLite API's may be disabled at SQLite compile time using SQLITE_OMIT_* defines. We must make sure we've got all vital functions in place before marking the sqlite3 module as present and usable.

[issue20420] BufferedIncrementalEncoder violates IncrementalEncoder interface

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue12038] assertEqual doesn't display newline differences quite well

2021-12-09 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.3 ___ Python tracker ___

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-09 Thread Calin Culianu
Calin Culianu added the comment: Ok, Guido, thanks. Fair enough. So regardless: what is the problem exactly if a C function expects an int but gets given a float? Why does such strictness matter, in that it required a whole other set of __index__ etc to be added? I am having trouble seeing

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2021-12-09 Thread Eric Snow
Eric Snow added the comment: New changeset c8749b578324ad4089c8d014d9136bc42b065343 by Eric Snow in branch 'main': bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998)

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread miss-islington
miss-islington added the comment: New changeset ca08655b808aed2e3abeb64cb67d98a79a661dda by Miss Islington (bot) in branch '3.10': bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997) https://github.com/python/cpython/commit/ca08655b808aed2e3abeb64cb67d98a79a661dda

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: Claim, you need to tone down the rhetoric. Python is not C++ and user expectations are different. You are the one who is fighting windmills here. -- ___ Python tracker

[issue14965] super() and property inheritance behavior

2021-12-09 Thread Ronny Pfannschmidt
Ronny Pfannschmidt added the comment: im on the noisy list because i faced this first in 2012 a key problem where i ran into this was mixins, - depending on whether a mixin was added or not one would get errors or not from my pov a super object should look like the "next class" so

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread miss-islington
miss-islington added the comment: New changeset 5ae4265b8c8042c496e569b6dbf9ef107e1d5b31 by Miss Islington (bot) in branch '3.9': bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997) https://github.com/python/cpython/commit/5ae4265b8c8042c496e569b6dbf9ef107e1d5b31

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-09 Thread Calin Culianu
Calin Culianu added the comment: Ok, well I found this in that issue you linked to: This is the original "problem": ``` type __mul__ is wierd: >> 'a'.__mul__(3.4) 'aaa' >>> [1].__mul__(3.4) [1, 1, 1] ``` And this is Guido's response: > The problem is that on the one hand you want "i" to

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28239 pull_request: https://github.com/python/cpython/pull/30015 ___ Python tracker ___

[issue27315] pydoc: prefer the pager command in favor of the specifc less command

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue45582] Rewrite getpath.c in Python

2021-12-09 Thread neonene
Change by neonene : -- pull_requests: +28238 pull_request: https://github.com/python/cpython/pull/30014 ___ Python tracker ___ ___

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: New changeset 3363e1cb05d0d19ed172ea63606d8cb6268747fc by Steve Dower in branch 'main': bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997) https://github.com/python/cpython/commit/3363e1cb05d0d19ed172ea63606d8cb6268747fc --

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +28237 pull_request: https://github.com/python/cpython/pull/30013 ___ Python tracker ___

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington, miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28234, 28235 pull_request: https://github.com/python/cpython/pull/30012 ___ Python tracker

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington, miss-islington, miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28234, 28235, 28236 pull_request: https://github.com/python/cpython/pull/30012 ___ Python tracker

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28234 pull_request: https://github.com/python/cpython/pull/30012 ___ Python tracker

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: > Lines 500-504 are the ones that trigger it. Ah, right. Thanks. > Apparently there are no tests in that file for straight exp() Yes - that file was mostly written to give good coverage for places where we'd written our own implementations rather than

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue660144 which made float values be rejected in most cases where an integer is expected rather of silently truncating them. It was at 2003. Guido mentioned that is an age-old problem, so perhaps you can find older discussions on the tracker or

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-12-09 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +28233 pull_request: https://github.com/python/cpython/pull/30011 ___ Python tracker ___

[issue46027] email.utils.parsedate_to_datetime() handling of -0000 offset

2021-12-09 Thread Fred Drake
New submission from Fred Drake : A local time offset of '-' is not handled the same way as an offset of '+', but I'd expect it would be: >>> import email.utils >>> >>> email.utils.parsedate_to_datetime('9 Dec 2021 08:52:04 -') datetime.datetime(2021, 12, 9, 8, 52, 4) >>>

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: Lines 500-504 are the ones that trigger it. Apparently there are no tests in that file for straight exp(), but the equivalent tests for those would return 0.0 and suppress ERANGE too. -- ___ Python tracker

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >For me, the question is why would anyone call atexit.unregister() inside an >atexit callback. Is it useful? Is not useful, is just an edge case -- ___ Python tracker

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Mark Dickinson
Mark Dickinson added the comment: > I've also got no idea how to write a test for this Yep, that's fine. All I want is that at least one particular value that caused the spurious OverflowError is in the test suite somewhere, but it sounds as though that's already the case. I'd imagine that

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2021-12-09 Thread Calin Culianu
Calin Culianu added the comment: Hi, I'm cculianu, the reporting user. May I get a link or some background for the motivation for this change? It seems to me that there are vague allusions to "Decimal -> int cause problems in past", or some such, and I'd like to read the arguments presented

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread STINNER Victor
STINNER Victor added the comment: For me, the question is why would anyone call atexit.unregister() inside an atexit callback. Is it useful? atexit._run_exitfuncs() removes all registered callbacks. Py_Finalize() calls _PyAtExit_Call() which also removes all registered callbacks.

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread STINNER Victor
STINNER Victor added the comment: Interesting bug report! Thanks for the fix ;-) -- ___ Python tracker ___ ___ Python-bugs-list

[issue45654] Freeze the runpy module.

2021-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Kumar! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45654] Freeze the runpy module.

2021-12-09 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 44b0e76f2a80c9a78242b7542b8b1218d244af07 by Kumar Aditya in branch 'main': bpo-45654: Freeze the runpy module and stuff it imports (GH-29903) https://github.com/python/cpython/commit/44b0e76f2a80c9a78242b7542b8b1218d244af07 -- nosy:

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Ethan Furman
Ethan Furman added the comment: $ python3 Python 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> object >>> import builtins >>> builtins.object >>> builtins.object = int >>> object Python is very

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: I've also got no idea how to write a test for this, given that it's a very thin wrapper around a platform's C runtime library. Our existing test discovered when the library changed behaviour to start setting errno, which is probably the best we can do.

[issue46024] Different behaviour with zipfile

2021-12-09 Thread Eric V. Smith
Eric V. Smith added the comment: What does "path" (the input to ZipPath) look like? Please change your print statement to: print(repr(path), ZipPath(path).name) Then send us the output from each version of python. -- nosy: +eric.smith ___ Python

[issue46018] expm1 may incorrectly raise OverflowError on underflow

2021-12-09 Thread Steve Dower
Steve Dower added the comment: I considered just switching to <2.0, but wasn't sure if I would be breaking some other unspoken behaviour there. But you're right, it's really just detecting underflow vs. overflow, so that's a much simpler way to check. I've filed the upstream report. I

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28232 pull_request: https://github.com/python/cpython/pull/30009 ___ Python tracker ___

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: > I tend to agree with Steven and David here. You define __getattribute__ and > so that's the behaviour you get when an attribute of the class is requested > (whether by the system or by your code). I would agree if it was obvious or explicitly stated

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Paul Moore
Paul Moore added the comment: I tend to agree with Steven and David here. You define __getattribute__ and so that's the behaviour you get when an attribute of the class is requested (whether by the system or by your code). The documentation (here:

[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-09 Thread Christian Heimes
Christian Heimes added the comment: Eric, could you review my PR, please? It simplifies cross building to other platforms. I took a look at Tools/freeze/freeze.py. The freeze tool creates different output than Program/_freeze_module.c. -- ___

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: If you don't want to customise attribute access, don't overload `__getattribute__`. The documentation for `__getattribute__` is clear about what it does: "Called unconditionally to implement attribute accesses for instances of the class."

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 934a24c641da5bc4bdb724e901adc20f9a5dff40 by Miss Islington (bot) in branch '3.10': bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002) (GH-30005)

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42943] singledispatchmethod should expose registry of all known overloads

2021-12-09 Thread hongweipeng
Change by hongweipeng : -- keywords: +patch nosy: +hongweipeng nosy_count: 5.0 -> 6.0 pull_requests: +28231 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30007 ___ Python tracker

[issue43112] SOABI on Linux does not distinguish between GNU libc and musl libc

2021-12-09 Thread Dave Shawley
Change by Dave Shawley : -- nosy: +dave-shawley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: I think the issue on display here is that isinstance could cause a side effect, which I dare say it's unexpected (and not documented AFAIK). Are there any reasons why __class__ cannot be retrieved with object.__getattribute__ instead? In fact,

[issue46011] Python 3.10 email returns invalid Date: header unchanged.

2021-12-09 Thread R. David Murray
R. David Murray added the comment: Yeah, I think there may be a general issue with getting header defects reflected somehow in message.defects, but that's a separate issue :) -- ___ Python tracker

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-09 Thread Irit Katriel
Irit Katriel added the comment: New changeset dc4a212bd305831cb4b187a2e0cc82666fcb15ca by Irit Katriel in branch 'main': bpo-45635: continue refactor of print_exception() to standardize error handling (GH-29996)

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'd be inclined to see this as a bug in your code, if you are causing side-effects from `__getattribute__`. If you don't want attribute access to cause side-effects, then don't put code in `__getattribute__` that causes side-effects :-) isinstance has to

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2021-12-09 Thread Charles Coulombe
Charles Coulombe added the comment: Any update on this issue? This would be helpful to HPC systems that don't have libraries installed in standard place, and to standardize find_library as well! -- nosy: +Charles Coulombe versions: -Python 3.6

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-09 Thread Christian Heimes
Change by Christian Heimes : -- priority: release blocker -> normal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset b123ad8030a4ad15c8dbb7cb3638caf625943878 by Kumar Aditya in branch 'main': bpo-46016: Fix rest syntax of GH-29993 (GH-30006) https://github.com/python/cpython/commit/b123ad8030a4ad15c8dbb7cb3638caf625943878 --

[issue46016] fcntl module add F_DUP2FD_CLOEXEC

2021-12-09 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch nosy: +kumaraditya303 nosy_count: 4.0 -> 5.0 pull_requests: +28230 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30006 ___ Python tracker

[issue45999] Links to packaging broken

2021-12-09 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-09 Thread Dong-hee Na
Dong-hee Na added the comment: > If two strings are interned and part of the same interpreter, the "ptr1 == > ptr2" comparison continues to work. Yeah, AFAIK Comparing two interned strings from different interpreters are not the available use-case. --

[issue45999] Links to packaging broken

2021-12-09 Thread Douglas Wright
Douglas Wright added the comment: The links are working now. I recall that all of the links in that section pointed to different URLs on 3.9 and newer than they did on 3.8. On 3.9 and newer, you would land on "page not found" on readthedocs.org. They all seem to match up now though.

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2021-12-09 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28229 pull_request: https://github.com/python/cpython/pull/30005 ___ Python tracker

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f0d290d25cad66e615ada68ba190b8a23ac1deaa by Pablo Galindo Salgado in branch 'main': bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002)

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-09 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: The following example shows isinstance causing a side effect class Side: class Effect(Exception): pass def __getattribute__(self, name): raise Side.Effect() isinstance(Side(), str) I'd be inclined to see this as a bug as I

[issue12142] Reference cycle when importing ctypes

2021-12-09 Thread Eryk Sun
Eryk Sun added the comment: The _ctypes extension module could have a dict that maps each format code to its (size, alignment), based on `formattable`. Then direct size comparisons wouldn't be limited to types defined by the struct module, and it wouldn't be necessary to create c_longdouble

[issue45391] 3.10 objects.inv classifies many types as data

2021-12-09 Thread Ken Jin
Ken Jin added the comment: As a start, I merged the types.UnionType fix because it's straightforward, but the rest are a little dubious so I'll leave this issue open for now. -- title: 3.10 objects.inv classifies UnionType as data -> 3.10 objects.inv classifies many types as data

[issue45391] 3.10 objects.inv classifies UnionType as data

2021-12-09 Thread miss-islington
miss-islington added the comment: New changeset 2c2ee83c4db4dbd54017dc364bbefc70fa75ea5d by Miss Islington (bot) in branch '3.10': bpo-45391: mark UnionType as a class in documentation (GH-28757) https://github.com/python/cpython/commit/2c2ee83c4db4dbd54017dc364bbefc70fa75ea5d --

[issue25066] Better repr for multiprocessing.synchronize objects

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset af6b4068859a5d0c8afd696f3c0c0155660211a4 by Kumar Aditya in branch 'main': bpo-25066: Added repr for multiprocessing.Event (GH-29749) https://github.com/python/cpython/commit/af6b4068859a5d0c8afd696f3c0c0155660211a4 -- nosy:

[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: `if TYPE_CHECKING:` is a good choice, it works fine just now. `from __future__ import annotations` is another alternative. I don't see a reason for REMOVING already existing and correct annotations from typeshed. --

[issue46020] Optimize long_pow for the common case

2021-12-09 Thread Ken Jin
Ken Jin added the comment: I'm not sure about the original 10:1 difference in 3.10, but in 3.11, the 2:1 difference might be due to the PEP 659 machinery optimizing for int * int, and float * float cases (see BINARY_OP_MULTIPLY_INT and BINARY_OP_MULTIPLY_FLOAT in ceval). Last I recall,

[issue45391] 3.10 objects.inv classifies UnionType as data

2021-12-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +28228 pull_request: https://github.com/python/cpython/pull/30004 ___ Python tracker

[issue45391] 3.10 objects.inv classifies UnionType as data

2021-12-09 Thread Ken Jin
Ken Jin added the comment: New changeset e2cfc89e099b8fad5d8d5bd7f59dadffb6078778 by Bernát Gábor in branch 'main': bpo-45391: mark UnionType as a class in documentation (GH-28757) https://github.com/python/cpython/commit/e2cfc89e099b8fad5d8d5bd7f59dadffb6078778 -- nosy: +kj

[issue15673] PEP 3121, 384 Refactoring applied to testcapi module

2021-12-09 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The _testcapi modules should stay as it is, ref. msg384272 on bpo-40077: Yes, please keep _testcapimodule.c as it is. Static types are still supported and need to be tested. -- nosy: +erlendaasland resolution: -> not a bug stage: ->

[issue23104] [Windows x86-64] ctypes: Incorrect function call

2021-12-09 Thread Eryk Sun
Change by Eryk Sun : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23104] [Windows x86-64] ctypes: Incorrect function call

2021-12-09 Thread Eryk Sun
Eryk Sun added the comment: Victor's comment wasn't relevant. objid() stays referenced during the call. Anyway, I just built testlib.c and verified that this ctypes example works correctly in both 64-bit 3.4.4 and 3.10, so the issue is out of date. -- nosy: +eryksun resolution: ->

[issue23104] [Windows x86-64] ctypes: Incorrect function call

2021-12-09 Thread Irit Katriel
Irit Katriel added the comment: I'm closing as there was no reply to Victor's suggestion and this is 7 years old. Please create a new issue if you are still having a problem with this in a supported python version (>= 3.9). -- nosy: +iritkatriel stage: -> resolved status: open ->

[issue12142] Reference cycle when importing ctypes

2021-12-09 Thread Irit Katriel
Irit Katriel added the comment: Looks like the long double issue is still there in 3.11 >>> import gc >>> gc.set_debug(gc.DEBUG_LEAK) >>> import ctypes gc: collectable gc: collectable gc: collectable gc: collectable gc: collectable gc: collectable gc: collectable gc: collectable gc:

[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-09 Thread Jacob Hayes
Jacob Hayes added the comment: Thanks for merging! Should typeshed be updated for <3.11 in the meantime or do you suggest `if TYPE_CHECKING` blocks on user side? Perhaps it's a non-issue if no one else has noticed this. :) -- ___ Python tracker

[issue27062] `inspect` doesn't have `__all__`

2021-12-09 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch nosy: +kumaraditya303 nosy_count: 2.0 -> 3.0 pull_requests: +28227 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30003 ___ Python tracker

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28226 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30002 ___ Python tracker

[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: The new feature is applied to Python 3.11 only -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10, Python 3.9 ___ Python tracker

[issue46026] importlib.resources.read_text() raises FileNotFound

2021-12-09 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: This may have appeared in the wild, via the backport, in https://github.com/Nuitka/Nuitka/issues/1274 and https://github.com/Nuitka/Nuitka/commit/ffe861cfe972c6bf19f9eea1ff95e35d0e4240b4 -- ___ Python tracker

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >