[issue43838] There is a way to access an underlying mapping in MappingProxyType

2021-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! Thank you Raymond for the third example. I though that it can be easily fixed by calling tp_traverse() for submapping: static int mappingproxy_traverse(PyObject *self, visitproc visit, void *arg) { mappingproxyobject *pp =

[issue44847] ABCMeta.__subclasscheck__() doesn't support duck typing.

2021-08-06 Thread Graham Dumpleton
New submission from Graham Dumpleton : The Python standard library has two effective implementations of helpers for the ABCMeta class. A C implementation, and a pure Python version which is only used if the C implementation isn't available (perhaps for PyPy). *

[issue38411] SQLITE_MISUSE race condition in sqlite3 is misleadingly raised as a binding error

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +26117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27623 ___ Python tracker ___

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: On my FreeBSD 13 VM, the test is skipped: vstinner@freebsd$ ./python -m test -v test_os -m test_get_set_inheritable_o_path == CPython 3.11.0a0 (heads/main:938e84b4fa, Aug 6 2021, 10:46:32) [Clang 11.0.1 (g...@github.com:llvm/llvm-project.git

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26115 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27621 ___ Python tracker

[issue44605] functools.total_ordering doesn't work with metaclasses

2021-08-06 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: My preference would be to fix it one way or another; the stdlib should be correct before it's performant. If, as you say, it's better to write the methods longhand anyway for ease of debugging, then it makes sense to write them out for performance, too.

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-08-06 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Upgrade macOS and Windows installers to use SQLite 3.36.0. SQLite 3.36.0 was released June 18 2021. https://www.sqlite.org/releaselog/3_36_0.html -- components: Windows, macOS messages: 399061 nosy: erlendaasland, ned.deily, paul.moore,

[issue38411] SQLITE_MISUSE race condition in sqlite3 is misleadingly raised as a binding error

2021-08-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've been trying to provoke this on my Mac (macOS 11.4) with Python 3.8 though 3.11 (dev) without success. Are you still able to reproduce this, Jack? If you can attach the output of python3.10 -m test.pythoninfo, I could try to set up a similar

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-08-06 Thread Xavier Morel
Xavier Morel added the comment: Serhiy an other question (because I've encountered it *again*), do you think it'd be possible to split out the specific warning of stringifying (but *not* explicitely repr-ing) a bytes instance from everything else? There are use-cases for it, but I think

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread STINNER Victor
New submission from STINNER Victor : Since build 655 (commit 6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6), test_os failed on AMD64 FreeBSD Shared 3.x: https://buildbot.python.org/all/#/builders/483/builds/655 == ERROR:

[issue44850] Could operator.methodcaller be optimized using LOAD_METHOD?

2021-08-06 Thread Antony Lee
New submission from Antony Lee : Currently, methodcaller is not faster than a plain lambda: ``` In [1]: class T: ...: a = 1 ...: def f(self): pass ...: In [2]: from operator import * In [3]: %%timeit t = T(); mc = methodcaller("f") ...: mc(t) ...: ...: 83.1 ns

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: test_get_set_inheritable_o_path() also fails on: * AMD64 FreeBSD Shared 3.10 * AMD64 FreeBSD Shared 3.9 It smells more like a FreeBSD system update rather than a Python regression. -- nosy: +koobs ___ Python

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: I've replicated this under Linux as well. def test(): start = time.time() end = datetime.datetime.now() start = datetime.datetime.fromtimestamp(start, None) assert end >= start Then run it in a loop: >>> for i in range(1000): ...

[issue44584] Deprecate thread debugging PYTHONTHREADDEBUG=1

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4d77691172aae81bdcbb0ea75839d0e896c43781 by Victor Stinner in branch 'main': bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065) https://github.com/python/cpython/commit/4d77691172aae81bdcbb0ea75839d0e896c43781 --

[issue44830] Broken Mozilla devguide link in "Dealing with Bugs" doc section

2021-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: > do you feel like that new article is a good drop-in replacement for the old > one? No really, no. :-( I also now see that the new article has a (broken) link to the old article, which makes me think that maybe the removal of the old article was

[issue44848] Upgrade macOS and Windows installers to use SQLite 3.36.0

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26116 pull_request: https://github.com/python/cpython/pull/27622 ___ Python tracker ___

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: Confirmed on Windows with Python 3.9.6. -- nosy: +steven.daprano type: -> behavior versions: +Python 3.9 ___ Python tracker ___

[issue44605] functools.total_ordering doesn't work with metaclasses

2021-08-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +26127 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27633 ___ Python tracker

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, that seems like a good approach. And how about with Serhiy's example from above? > If there is a chain A -> B -> C -> D -> E, after assignment C.__context__ = A > ... -- ___ Python tracker

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: The cause of the problem is inconsistent rounding modes: end = datetime.datetime.now() # always rounds down start = datetime.datetime.fromtimestamp(start, None) # sometimes rounds_up >From the C code in

[issue44679] unittest.mock.sentinel documentation typo

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8c17db6cd4e29f922a195acdb5aff3ef9c2340e5 by Miss Islington (bot) in branch '3.9': bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618) (GH-27619) https://github.com/python/cpython/commit/8c17db6cd4e29f922a195acdb5aff3ef9c2340e5 --

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Jack O'Connor
Change by Jack O'Connor : -- nosy: -oconnor663 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Irit Katriel
Irit Katriel added the comment: Serhiy's patch is modifying a different part of this system - he changes the Exception object's SetContext to break cycles when they are first created. Dennis and I targeted the place where an exception is about to be raised and it gets a __context__ that may

[issue43976] Allow Python distributors to add custom site install schemes

2021-08-06 Thread xrcg
xrcg added the comment: What is the probability that custom site install schemes will be supported without requiring a patch before distutils is removed? -- nosy: +xrcg ___ Python tracker

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Irit. Can you show how your patch behaves using some representative examples (maybe using arrow examples from above)? And if it behaves differently from Dennis's patch, can you include an example showing that, too? --

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Irit Katriel
Irit Katriel added the comment: Like Dennis' patch, mine changes PyErr_SetObject. The difference is that Dennis' patch gets rid of the cycle while mine leaves it as it is, just avoids hanging on it. So in this case: when trying to set the exception A on top of B -> C -> D -> E

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker ___

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is a rounding issue. `time.time()` returns an epoch timestamp as a float and at the current epoch time, floats are spaced ~500ns apart. `datetime.datetime.now` does a floor division when rounding:

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: That's okay. I didn't mean to suggest I thought your patch needed to handle that case or that we needed to decide it before moving forward. I was just wondering what would happen with your patch with it, even if it means a hang. Or were you saying that

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Irit Katriel
Irit Katriel added the comment: My patch doesn't change that at all, so it will be the same as it is currently: the result is C -> A -> B -> C. (But with my patch if you try to raise something in the context of C, it won't hang.) -- ___ Python

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is worth to backport it to 3.9. It looks to me that it fixes also support of strings containing NUL. It would be nice to add corresponding tests for this. You can also add this in the NEWS entry for this issue. -- status: closed ->

[issue44184] crash on windows invoking flake8

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: > Fix extended to the other branch (and backported to 3.10), and both parts > backported to 3.9. I don't think it counts as a security issue, so not > backporting to 3.8. Thanks Thomas, I missed this code path! --

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +26120 pull_request: https://github.com/python/cpython/pull/27626 ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Irit Katriel
Irit Katriel added the comment: I added a third patch to the discussion. (It overlaps Dennis's suggestion, and I'm happy to close it in favour of a tweaked version of Dennis' patch, but I thought this would be the simplest way to say what I mean, and hopefully push the discussion along).

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-06 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26121 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27627 ___ Python tracker ___

[issue40696] exception chain cycles cause hangs (was "Exception handling with "await" can hang in Python3.9.0b1")

2021-08-06 Thread Irit Katriel
Irit Katriel added the comment: I think this can be closed now because the specific problem was fixed in PR20287 and the more general problem is the subject of issue25782. -- nosy: +iritkatriel ___ Python tracker

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 15d3c14df32a35ac69898a7852115722e30d7857 by Jack DeVries in branch 'main': bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) https://github.com/python/cpython/commit/15d3c14df32a35ac69898a7852115722e30d7857

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-08-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +26122 pull_request: https://github.com/python/cpython/pull/27628 ___ Python tracker

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-08-06 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26123 pull_request: https://github.com/python/cpython/pull/27629 ___ Python tracker ___

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +26125 pull_request: https://github.com/python/cpython/pull/27631 ___ Python tracker ___

[issue44584] Deprecate thread debugging PYTHONTHREADDEBUG=1

2021-08-06 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44689] MacOS: Python binaries not portable between Catalina and Big Sur

2021-08-06 Thread Tobias Bergkvist
Tobias Bergkvist added the comment: I realised that I needed to define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH_RUNTIME in the source file myself - as this is not defined after running the configure-script. I've updated the PR and its description to only focus on the legacy/deprecated approach

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset c24896c0e3b32c8a9f614ef51366007b67d5c665 by Victor Stinner in branch 'main': bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) https://github.com/python/cpython/commit/c24896c0e3b32c8a9f614ef51366007b67d5c665 --

[issue44524] __name__ attribute in typing module

2021-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +26126 pull_request: https://github.com/python/cpython/pull/27632 ___ Python tracker ___

[issue44524] __name__ attribute in typing module

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8bdf12e99a3dc7ada5f85bba79c2a9eb9931f5b0 by Bas van Beek in branch 'main': bpo-44524: Fix an issue wherein `_GenericAlias._name` was not properly set for specialforms (GH-27614)

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 693a661478036dc2c5b48e138dd09320a972c25a by Łukasz Langa in branch '3.9': [3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) (GH-27629)

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread miss-islington
miss-islington added the comment: New changeset 791c28a56f043618111a19377f8527326037230e by Miss Islington (bot) in branch '3.9': bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) https://github.com/python/cpython/commit/791c28a56f043618111a19377f8527326037230e

[issue44851] Update bundled pip to 21.2.3 and setuptools to 57.4.0

2021-08-06 Thread Tzu-ping Chung
New submission from Tzu-ping Chung : PR coming soon -- components: Distutils messages: 399072 nosy: dstufft, eric.araujo, uranusjr priority: normal severity: normal status: open title: Update bundled pip to 21.2.3 and setuptools to 57.4.0 versions: Python 3.10, Python 3.11

[issue44584] Deprecate thread debugging PYTHONTHREADDEBUG=1

2021-08-06 Thread miss-islington
miss-islington added the comment: New changeset a11158ecef8cff795f7db8f4047cbd20cc9cf37e by Miss Islington (bot) in branch '3.10': bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065) https://github.com/python/cpython/commit/a11158ecef8cff795f7db8f4047cbd20cc9cf37e --

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not against documenting the behavior of -b and BytesWarning clearly. I don't think that anyone would be against. Just somebody have to provide a PR. Explicitly repr-ing a bytes instance does not produce a warning, and never produced, so I don't

[issue44524] __name__ attribute in typing module

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: Serhiy, good question. As builtin generics return the base `__name__` for subscribed version, it makes sense to do the same for the versions in `typing`, especially if their unsubscribed versions provide `__name__`. As to "why even have `__name__` in the first

[issue44584] Deprecate thread debugging PYTHONTHREADDEBUG=1

2021-08-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +26118 pull_request: https://github.com/python/cpython/pull/27624 ___ Python tracker

[issue44851] Update bundled pip to 21.2.3 and setuptools to 57.4.0

2021-08-06 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- keywords: +patch pull_requests: +26119 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27625 ___ Python tracker ___

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: Please go ahead. Anyone is free to propose a fix. -- ___ Python tracker ___ ___ Python-bugs-list

[issue44584] Deprecate thread debugging PYTHONTHREADDEBUG=1

2021-08-06 Thread STINNER Victor
STINNER Victor added the comment: PYTHONTHREADDEBUG is now deprecated in Python 3.10, and planned for removal in 3.12. If someone finds it useful, we can reconsider to keep the feature, but maybe redirect the output to stderr rather than stdout. -- resolution: -> fixed stage:

[issue25782] CPython hangs on error __context__ set to the error itself

2021-08-06 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +belopolsky, p-ganssle, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'll add extra tests in a separate PR, so we can easily backport it to 3.10 and 3.9. -- ___ Python tracker ___

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26124 pull_request: https://github.com/python/cpython/pull/27630 ___ Python tracker

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread miss-islington
miss-islington added the comment: New changeset 2ae2235c7a7627725df40c7875245cd17d90f39f by Miss Islington (bot) in branch '3.10': bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) https://github.com/python/cpython/commit/2ae2235c7a7627725df40c7875245cd17d90f39f

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Can someone try to replicate this while disabling the C acceleration: import sys sys.modules[‘_datetime’] = None (Before any other imports.) If anything, this is likely to be a problem with the C implementation. --

[issue43976] Allow Python distributors to add custom site install schemes

2021-08-06 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Filipe for the summary. I was unsure the status. Even if we grant that Debian is too intrusive in its patching of distutils, it's Python and distutils that are making the change here, so it's not unreasonable for Python to maintain feature parity

[issue44524] __name__ attribute in typing module

2021-08-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately given that the all refleak buildbots will start to fail and the fact that this got into the release candidate, per our buildbot policy (https://discuss.python.org/t/policy-to-revert-commits-on-buildbot-failure/404) we will be forced to

[issue43976] Allow Python distributors to add custom site install schemes

2021-08-06 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44856] Possible reference leak in error paths of update_bases()

2021-08-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44856] Possible reference leak in error paths of update_bases()

2021-08-06 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Here: https://github.com/python/cpython/blob/17c23167942498296f0bdfffe52e72d53d66d693/Python/bltinmodule.c#L60-L88 Seems that new_base is not properly cleaned on the error paths -- messages: 399161 nosy: pablogsal priority: normal severity:

[issue44856] Possible reference leak in error paths of update_bases()

2021-08-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue44856] Possible reference leak in error paths of update_bases()

2021-08-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26141 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27647 ___ Python tracker

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2021-08-06 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 7.0 -> 8.0 pull_requests: +26142 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27648 ___ Python tracker

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2021-08-06 Thread Irit Katriel
Irit Katriel added the comment: PR27648 fixes this, but it also breaks test_abc.test_issubclass_bad_arguments so it's not quite right. I don't know this area, but I think the problem is in the place the PR changes, and that the issue is due to this difference in the type of __subclasses__

[issue44856] Possible reference leak in error paths of update_bases()

2021-08-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, damn, turns out that there is a ton of reference leaks in the error path of __build_class__ as well. These leaks have been since forever! Curiously I found about them when debugging https://bugs.python.org/issue44524 --

[issue44524] __name__ attribute in typing module

2021-08-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Wow, turns out the reference leak has been here since forever! I opened https://bugs.python.org/issue44856? to tackle it -- ___ Python tracker

[issue44856] Possible reference leak in error paths of update_bases() and __build_class__

2021-08-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: Possible reference leak in error paths of update_bases() -> Possible reference leak in error paths of update_bases() and __build_class__ ___ Python tracker

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-08-06 Thread hai shi
Change by hai shi : -- pull_requests: +26143 pull_request: https://github.com/python/cpython/pull/27649 ___ Python tracker ___ ___

[issue42297] [argparse] Bad error message formatting when using custom usage text

2021-08-06 Thread Bob Blanchett
Change by Bob Blanchett : -- nosy: +bobblanchett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44857] class member varibles assigned member functions create a circular reference

2021-08-06 Thread Cliff Cordeiro
New submission from Cliff Cordeiro : This class is not collected by the gc without a custom __del__ method to del or assign None to self.fn: import gc class Leak: def __init__(self): self.fn = self.x def x(self): pass gc.set_debug(gc.DEBUG_SAVEALL) l = Leak() del

[issue44857] class member varibles assigned member functions create a circular reference

2021-08-06 Thread Cliff Cordeiro
Cliff Cordeiro added the comment: It looks like the collector does detect the cycle and that's why it ends up in garbage with gc.DEBUG_SAVEALL set. Sorry about that. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread Kubilay Kocak
Kubilay Kocak added the comment: There was a recent worker update to latest CURRENT (14). I'll try to identify recent changes or changesets that may have affected behaviour and reference them here -- ___ Python tracker

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread Kubilay Kocak
Kubilay Kocak added the comment: O_PATH support was added in FreeBSD CURRENT April 15: https://reviews.freebsd.org/D29323?id=86257 https://github.com/freebsd/freebsd-src/commit/8d9ed174f3afba5f114742447e622fc1173d4774 @Victor If the failure in this tests suggests either a bug in our

[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-08-06 Thread Kubilay Kocak
Kubilay Kocak added the comment: Reference for Linux behaviour: filedesc: don't use ioctl(FIOCLEX) on Linux #62425 https://github.com/rust-lang/rust/pull/62425 Looks like we match the behaviour intentionally (or otherwise). -- ___ Python tracker

[issue25963] strptime not parsing some timezones

2021-08-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed so can be closed. Current datetime docs have a footnote for %Z: ... strptime() only accepts certain values for %Z: any value in time.tzname for your machine’s locale the hard-coded values UTC and GMT -- nosy: +andrei.avk

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-08-06 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 17c23167942498296f0bdfffe52e72d53d66d693 by Ronald Oussoren in branch 'main': bpo-42971: Add errno.EQFULL (macOS) (GH-24419) https://github.com/python/cpython/commit/17c23167942498296f0bdfffe52e72d53d66d693 -- nosy: +lukasz.langa

[issue42971] Some errnos for BSD/OSX are missing from errno module

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the patch, Ronald, and for the report, Enji! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: clear_ignored_deprecations() does not know whether filters were added in setUp(), setUpClass(), setUpModule() or just in a particular method. We should use teadDown*() or add*Cleanup() to clean up at appropriate level. --

[issue44524] __name__ attribute in typing module

2021-08-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: high -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44524] __name__ attribute in typing module

2021-08-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately PR27614 and its backport has introduced reference leaks: ❯ ./python -m test test_typing -R : 0:00:00 load avg: 1.12 Run tests sequentially 0:00:00 load avg: 1.12 [1/1] test_typing beginning 9 repetitions 123456789 . test_typing

[issue16379] SQLite error code not exposed to python

2021-08-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > What would it take to get this merged? I've rebased Aviv's PR (GH-1108) onto main and resolved the conflicts. If I get his blessing, I'll open a PR try to land this. -- ___ Python tracker

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-06 Thread Łukasz Langa
New submission from Łukasz Langa : Sometimes we have the following problem: - there are way too many deprecations raised from a given library to silence them one by one; - the deprecations are different between maintenance branches and we don't want to make tests between the branches

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-06 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-06 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +26128 pull_request: https://github.com/python/cpython/pull/27634 ___ Python tracker ___

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-06 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 55fa87b1ef46bbb9db7612b2dc2dd7fb039d9bc3 by Łukasz Langa in branch 'main': bpo-44756: [docs] revert automated virtual environment creation on `make html` (GH-27635) https://github.com/python/cpython/commit/55fa87b1ef46bbb9db7612b2dc2dd7fb039d9bc3

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +26130 pull_request: https://github.com/python/cpython/pull/27636 ___ Python tracker ___

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +26131 pull_request: https://github.com/python/cpython/pull/27637 ___ Python tracker ___

[issue44852] Add ability to wholesale silence DeprecationWarnings while running the test suite

2021-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are problems with clearing all ignored deprecation filters. We can want to ignore warnings in narrower or wider scope: per-method, per-class, per-module. We should use the warnings.catch_warnings() context manager for restoring filters in the

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-08-06 Thread Marc Culler
Marc Culler added the comment: I built Tcl and Tk 8.6 on Monterey beta (21A5294g) and I see this traceback in the Wish file dialog demo. Note that this is *not* an error. The file dialog works fine. This is a non-fatal NSInternalInconsistencyException which prints a traceback to stderr. It

[issue44854] Add .editorconfig to the root directory

2021-08-06 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +26132 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27638 ___ Python tracker ___

  1   2   >