[issue45520] Frozen dataclass deep copy doesn't work with __slots__

2021-10-19 Thread Justin Furuness
Justin Furuness added the comment: I didn't realize it was possible to add slots in that way (slots=True). I think for normal classes manually defining __slots__ is the common way of adding __slots__ (at least for me), so it feels weird to me that manually defining __slots__ instead of adding

[issue45459] Limited API support for Py_buffer

2021-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Py_buffer is often used for handling arguments if the function supports bytes, bytearray and other bytes-like objects. For example bytes.partition(). Any additional memory allocation would add significant overhead here. bytes.join() creates Py_buffer for

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Possible solutions (they can be combined): 1. Add support for the GEORGIAN-PS charset and all other encodings used in libc (issue22679). The problem is that it is difficult to get the official information about these encodings. 2. Falls back to utf-8 or

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: We just need https://github.com/python/cpython/pull/27010 to be done on main to roll it back. str and repr changes are quite painful to foist upon users existing code and tests. -- nosy: +gregory.p.smith ___

[issue36481] telnetlib process_rawq() callback

2021-10-19 Thread Gökhan Öztürk
Change by Gökhan Öztürk : -- pull_requests: +27323 pull_request: https://github.com/python/cpython/pull/29052 ___ Python tracker ___

[issue36481] telnetlib process_rawq() callback

2021-10-19 Thread Gökhan Öztürk
Gökhan Öztürk added the comment: Made updates, tests for this old issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23449] Fatal errors rebuilding 3.5 from Visual Studio Windows 8.1 64 bit

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Seems out of date. I will close if nobody objects. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

[issue39410] CentOS 6.10 SQLite 3.30.1 - _sqlite3 builds successfully but is removed because it cannot be imported.

2021-10-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: If you are building CPython against a specific version of SQLite (for example one you've compiled yourself), make sure that you adjust _both_ CFLAGS and LDFLAGS. Note: since bpo-40810 / GH-24106, SQLite 3.7.15 or newer is required. Closing this as

[issue45522] Allow to build Python without freelists

2021-10-19 Thread Christian Heimes
New submission from Christian Heimes : Freelists are an optimization trick to avoid allocation and deallocation of commonly used structures. Currently Python has freelists for frame, tuple, float, list, dict, async generators, and context objects. Small ints are also cached. For

[issue1336] subprocess.Popen hangs when child writes to stderr

2021-10-19 Thread EricLin
EricLin added the comment: @torsten Your comment here did a great help to me. I observed a long running python 2.7 process leaking memory. I did a lot of digging and eventually found that gc was disabled in this process. But who disabled it? I really have no idea. Luckily, I find this

[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Thanks. Do you know whether anyone is looking at Cygwin support for cpython at the moment? Is there interest in that? -- ___ Python tracker

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2021-10-19 Thread Andrei Kulakov
Change by Andrei Kulakov : -- title: xml.tree.ElementTree.write does not support `standalone` option -> xml.etree.ElementTree.write does not support `standalone` option ___ Python tracker

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Cool, and Nick also resolved it with the appropriate import. I'll close and if anyone still has a problem (on current python versions - 3.9+) then please create a new issue with up to date info. -- stage: -> resolved status: open -> closed

[issue31779] assertion failures and a crash when using an uninitialized struct.Struct object

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

[issue19459] Python does not support the GEORGIAN-PS charset

2021-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.10.2021 10:44, Serhiy Storchaka wrote: > > Possible solutions (they can be combined): > > 1. Add support for the GEORGIAN-PS charset and all other encodings used in > libc (issue22679). The problem is that it is difficult to get the official >

[issue45336] xml.tree.ElementTree.write does not support `standalone` option

2021-10-19 Thread Andrei Kulakov
Change by Andrei Kulakov : -- title: Issue with xml.tree.ElementTree.write -> xml.tree.ElementTree.write does not support `standalone` option ___ Python tracker ___

[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Sorry I thought this was the same issue. Note that asyncore is deprecated now. -- resolution: out of date -> status: closed -> open ___ Python tracker

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-10-19 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 09c04e7f0d26f0006964554b6a0caa5ef7f0bd24 by Erlend Egeberg Aasland in branch 'main': bpo-42064: Add module backref to `sqlite3` callback context (GH-28242) https://github.com/python/cpython/commit/09c04e7f0d26f0006964554b6a0caa5ef7f0bd24

[issue45459] Limited API support for Py_buffer

2021-10-19 Thread Petr Viktorin
Petr Viktorin added the comment: > I recommend to get feedback from NumPy, Pillow, and Cython devs first. Could you split this into two PRs: one to add the new API, and another to add things to the limited set? There's no rush to add it to the limited API, esp. since it can't be tested

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2021-10-19 Thread Erik Janssens
Erik Janssens added the comment: At least for us, the issue seems to be related to the MSVC runtime. We compiled python with mingw using the mingw runtime, and the issue was gone. On Tue, 2021-10-19 at 09:02 +, Irit Katriel wrote: > Irit Katriel added the comment: > It doesn't look like

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2021-10-19 Thread Irit Katriel
Change by Irit Katriel : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45522] Allow to build Python without freelists

2021-10-19 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27327 pull_request: https://github.com/python/cpython/pull/29056 ___ Python tracker ___

[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: See discussion on issue31885. -- nosy: +iritkatriel resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44927] [sqlite3] proposal: add sqlite3.Cursor.insert() method

2021-10-19 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'm closing this for now. As I see it, there is little added value, and it would be hard to make a good API for all invariants. If this idea surfaces again, we can always reopen this issue. Thanks for you interest in improving CPython :) --

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: Ed: it seems ElementTree.write does not support `standalone` option, but both minidom (https://docs.python.org/3/library/xml.dom.minidom.html) and lxml (https://lxml.de/) support it. Are either of those suitable for your usecase? --

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-19 Thread Andrei Kulakov
Change by Andrei Kulakov : -- components: +Library (Lib) -Documentation nosy: +kj ___ Python tracker ___ ___ Python-bugs-list

[issue45336] xml.etree.ElementTree.write does not support `standalone` option

2021-10-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: Ed: I can look into adding it, but not sure when. If you can make the case that minidom and lxml are not suitable workarounds for this, it will be more likely that me or someone else will add this option; but note that as this is a new feature, it will only

[issue45434] [C API] Clean-up the Python.h header file

2021-10-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 52af0756b2ffc6788e364971d05cdaf127d77d5a by Victor Stinner in branch 'main': bpo-45434: Only exclude in Python 3.11 limited C API (GH-29027) https://github.com/python/cpython/commit/52af0756b2ffc6788e364971d05cdaf127d77d5a --

[issue43851] Optimise SQLite builds on macOS and Windows

2021-10-19 Thread Steve Dower
Steve Dower added the comment: New changeset 8702b667d8e7da7a1888297d84f493f26c580a2d by Erlend Egeberg Aasland in branch 'main': bpo-43851: Build SQLite with SQLITE_OMIT_AUTOINIT on Windows (GH-25414) https://github.com/python/cpython/commit/8702b667d8e7da7a1888297d84f493f26c580a2d

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> from _struct import Struct >>> s = Struct.__new__(Struct) >>> s.unpack_from(b'asdf') Assertion failed: (self->s_codes != NULL), function Struct_unpack_from_impl, file /Users/iritkatriel/src/cpython/Modules/_struct.c, line 1603. zsh:

[issue45336] Issue with xml.tree.ElementTree.write

2021-10-19 Thread ed wolf
ed wolf added the comment: Hi Andrew I removed the quotes and still see an issue with the standalone not being added to the xml declaration. I set the command as follows rte_ecu_tree.write(rtexmlFile, encoding="UTF-8", xml_declaration=True, default_namespace=None,

[issue43851] Optimise SQLite builds on macOS and Windows

2021-10-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2021-10-19 Thread Erik Bray
Erik Bray added the comment: That person was me--I have the keys to a cygwin buildbot, but it's currently not running. I lost the urgency to make cygwin fully supported, though it's come a long way. In particular the deprecation of distutils should help nix some of the long-standing

[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2021-10-19 Thread Erik Bray
Erik Bray added the comment: To my knowledge this issue is *not* fixed upstream. However, my PR no doubt needs rebasing. -- ___ Python tracker ___

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-19 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45521] obmalloc radix tree typo in code

2021-10-19 Thread Neil Schemenauer
Neil Schemenauer added the comment: I have not yet been able to reproduce methane's crash. My guess it it's not related. An explanation of what I think the impact of this bug is: The radix tree is used to determine if memory is from obmalloc or from the system malloc (i.e return value

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11

2021-10-19 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -27336 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45436] test_tk.test_configure_type() fails with Tcl/Tk 8.6.11

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- title: test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11 -> test_tk.test_configure_type() fails with Tcl/Tk 8.6.11 ___ Python tracker

[issue45528] mmap: constants not listed in the documentation

2021-10-19 Thread Michael Wayne Goodman
Change by Michael Wayne Goodman : -- keywords: +patch pull_requests: +27343 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29075 ___ Python tracker

[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: We decided not to backport this to 3.10 nor 3.9 due to the subtle nature of the change. -- versions: +Python 3.11 -Python 3.9 ___ Python tracker

[issue45195] test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1d8cb01e23ab5fc626d4deda216f9a9a19a644a2 by Miss Islington (bot) in branch '3.8': bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28984) https://github.com/python/cpython/commit/1d8cb01e23ab5fc626d4deda216f9a9a19a644a2 --

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- title: test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x -> test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11 ___ Python tracker

[issue45528] mmap: constants not listed in the documentation

2021-10-19 Thread Michael Wayne Goodman
New submission from Michael Wayne Goodman : Some constants mentioned in the mmap module documentation are not listed as module contents (i.e., with permalinks), so the mentions do not appear as links and it's not explicit that they are in the mmap module namespace. For instance, ACCESS_READ

[issue45020] Freeze all modules imported during startup.

2021-10-19 Thread Eric Snow
Eric Snow added the comment: On Mon, Oct 18, 2021 at 7:14 PM Guido van Rossum wrote: > Is gh-28940 only for UNIX? It wasn't meant to be. :( > I built on Windows with default options (PCbuild\build.bat) and it looks like > the frozen modules are used by default even though I am running in

[issue45500] Rewrite test_dbm

2021-10-19 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27337 pull_request: https://github.com/python/cpython/pull/29069 ___ Python tracker ___

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-19 Thread Eric Snow
Eric Snow added the comment: New changeset f4b12440cf24d7636755aac5b2645e47713557c7 by Eric Snow in branch 'main': bpo-45506: Go back to not running most of test_embed in out-of-tree builds. (gh-29063) https://github.com/python/cpython/commit/f4b12440cf24d7636755aac5b2645e47713557c7

[issue25327] Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

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

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-10-19 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27341 pull_request: https://github.com/python/cpython/pull/29073 ___ Python tracker ___

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5c9cab595e56aeb118bff77ece784dbac30b4338 by Łukasz Langa in branch '3.10': [3.10] bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) (GH-29070)

[issue25355] Windows installer does not add py.exe launcher to "App Paths" key

2021-10-19 Thread Steve Dower
Steve Dower added the comment: Somewhat deliberate. We moved to properly support side-by-side installs, which can't be done with this key - App Paths would end up out of sync with PATH... almost instantly, really. (However, the Windows Store package manages this correctly in line with its

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +27332 pull_request: https://github.com/python/cpython/pull/29065 ___ Python tracker

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +27333 pull_request: https://github.com/python/cpython/pull/29066 ___ Python tracker ___

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: related issue: https://bugs.python.org/issue20853 similarly to this, if args cmd is used in pdb in the TestClass __init__ method, `self` will be displayed, which means the TestClass.__str__ or __repr__ will run, lacking any required state set in the

[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 236e301b8ad9b78ee880baf12e98a826113dc59b by Filipe Laíns in branch 'main': bpo-42174: fallback to sane values if the columns or lines are 0 in get_terminal_size (GH-29046)

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x

2021-10-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +epaine ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x

2021-10-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +27336 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29002 ___ Python tracker

[issue45500] Rewrite test_dbm

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 975b94b9de969777218e96a9950c1dab2dab65a0 by Serhiy Storchaka in branch 'main': bpo-45500: Rewrite test_dbm (GH-29002) https://github.com/python/cpython/commit/975b94b9de969777218e96a9950c1dab2dab65a0 -- nosy: +lukasz.langa

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a106343f632a99c8ebb0136fa140cf189b4a6a57 by Pablo Galindo Salgado in branch 'main': bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993)

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-19 Thread Eric Snow
Eric Snow added the comment: On Tue, Oct 19, 2021 at 10:47 AM Marc-Andre Lemburg wrote: > Ok, I'll start looking into this and post updates here. Thanks! -- ___ Python tracker

[issue25116] It failed to install Py3.5 on win2008R2

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

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-19 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27339 pull_request: https://github.com/python/cpython/pull/29071 ___ Python tracker ___

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x with Tcl/Tk 8.6.11

2021-10-19 Thread Ned Deily
Ned Deily added the comment: There are similar test failures on macOS with the current Tk 8.6.11.1 on both 3.10 and 3.11. -- nosy: +ned.deily stage: patch review -> needs patch versions: +Python 3.10 ___ Python tracker

[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2021-10-19 Thread Erik Bray
Erik Bray added the comment: Thanks for asking. Indeed the fix to that issue was included in https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=5ca28a0cd71436a84797d5d66831790004e0 and as Cygwin obsoletes old releases rather quickly I see no reason to keep this issue open.

[issue45336] xml.tree.ElementTree.write does not support `standalone` option

2021-10-19 Thread ed wolf
ed wolf added the comment: Will ElementTree.write be updated to correct this issue? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45523] Python3 ThreadingHTTPServer fails to send chunked encoded response

2021-10-19 Thread Manuel
New submission from Manuel : I'm implementing an HTTPServer class that produces a response with transfer-encoding chunked mode. I'm sending the chunks as described in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding#chunked_encoding If I send chunks of length <= 9

[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27335 pull_request: https://github.com/python/cpython/pull/29068 ___ Python tracker ___

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fdbdf3f7359832820a11ece4c4b01581004d6fe7 by Gregory P. Smith in branch 'main': bpo-40360: Make the 2to3 deprecation more obvious. (GH-29064) https://github.com/python/cpython/commit/fdbdf3f7359832820a11ece4c4b01581004d6fe7 --

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8cef526a871695f8df4fac167139bbf3292396db by Miss Islington (bot) in branch '3.10': bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29065) https://github.com/python/cpython/commit/8cef526a871695f8df4fac167139bbf3292396db

[issue45515] Add reference to zoneinfo in the datetime module documetnation

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 76578884c5c727c013cba9d14ced9040b5a0c8a1 by Miss Islington (bot) in branch '3.9': bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-29066) https://github.com/python/cpython/commit/76578884c5c727c013cba9d14ced9040b5a0c8a1

[issue42222] Modernize integer test/conversion in randrange()

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

[issue1336] subprocess.Popen hangs when child writes to stderr

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a18e4e9c15a0be833e01c3892206661fc91e6918 by Łukasz Langa in branch '3.9': [3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29068)

[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Filipe! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the fix, Filipe! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33277] Deprecate __loader__, __package__, and __cached__ on modules

2021-10-19 Thread Brett Cannon
Change by Brett Cannon : -- title: Deprecate __loader__, __package__, __file__, and __cached__ on modules -> Deprecate __loader__, __package__, and __cached__ on modules ___ Python tracker

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

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 67e10be3fee7c69d4ece26e75a0b7a84dab68ce5 by Miss Islington (bot) in branch '3.8': bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) (GH-28978)

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7f70ba36706219181546c05363097f732827a081 by Victor Stinner in branch '3.8': bpo-45310: Fix parrallel shared memory tests (GH-28661) (GH-28979) https://github.com/python/cpython/commit/7f70ba36706219181546c05363097f732827a081 -- nosy:

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x

2021-10-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: EP, do you have any insight into these issues? Why does 8.6.11 result in test failures? Bug in our test or in tk? -- nosy: +terry.reedy ___ Python tracker

[issue45500] Rewrite test_dbm

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 325b2c223453203b2fa9ce7b9bcebdbef03adf70 by Łukasz Langa in branch '3.10': [3.10] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29069) https://github.com/python/cpython/commit/325b2c223453203b2fa9ce7b9bcebdbef03adf70 --

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ad6d162e518963711d24c80f1b7d6079bd437584 by Alex Waygood in branch 'main': bpo-39679: Add tests for classmethod/staticmethod singledispatchmethods (GH-29034) https://github.com/python/cpython/commit/ad6d162e518963711d24c80f1b7d6079bd437584

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-10-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 12.0 -> 13.0 pull_requests: +27340 pull_request: https://github.com/python/cpython/pull/29072 ___ Python tracker

[issue45500] Rewrite test_dbm

2021-10-19 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27342 pull_request: https://github.com/python/cpython/pull/29074 ___ Python tracker ___

[issue45529] checking any object for attr "get" always returns True with `hasattr`

2021-10-19 Thread Clay Massok
New submission from Clay Massok : Any time you use `hasattr` to check if a dict has the attr "get", it returns true. Uploaded `.py` file has bug example. -- components: macOS files: bug.py messages: 404353 nosy: m.c.massok, ned.deily, ronaldoussoren priority: normal severity: normal

[issue45520] Frozen dataclass deep copy doesn't work with __slots__

2021-10-19 Thread Josh Rosenberg
Josh Rosenberg added the comment: You're right that in non-dataclass scenarios, you'd just use __slots__. The slots=True thing was necessary for any case where any of the dataclass's attributes have default values (my_int: int = 0), or are defined with fields (my_list: list =

[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27334 pull_request: https://github.com/python/cpython/pull/29067 ___ Python tracker

[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7bafa0cf586227987d3d662264d491e3780024b7 by Filipe Laíns in branch 'main': bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) https://github.com/python/cpython/commit/7bafa0cf586227987d3d662264d491e3780024b7

[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 092ec4b9d144c493cb514df0978638fdd2d9622a by Miss Islington (bot) in branch '3.10': bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) (GH-29067)

[issue42222] Modernize integer test/conversion in randrange()

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 574241632bd19e56ed488ee4d8999aefc6a8d7cd by Serhiy Storchaka in branch 'main': bpo-4: Improve tests for invalid argument types in randrange() (GH-29021) https://github.com/python/cpython/commit/574241632bd19e56ed488ee4d8999aefc6a8d7cd

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I can see why Ethan might be overwhelmed by reverting this change. I tried to merge in his branch but failed, so I'm chucking that work and will try again. -- ___ Python tracker

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-19 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27338 pull_request: https://github.com/python/cpython/pull/29070 ___ Python tracker ___

[issue25222] 3.5.0 regression - Fatal Python error: Cannot recover from stack overflow

2021-10-19 Thread Irit Katriel
Irit Katriel added the comment: There was work on recursion in recent versions and the Fatal Error is less likely now. We will not investigate recursion issues on 3.5, so I will close this and request that you create a new issue if you have problem with a current Python version. --

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-19 Thread Petr Viktorin
Petr Viktorin added the comment: Ah, sorry, I overlooked the flags. This does beg the question: what else from PyType_Spec will be needed? I guess we don't want to allow additional slots/methods. (Combining them would be hard anyway; if someone needs them they should make a subclass.) So it

[issue4304] build mode which fails for build failures in extensions

2021-10-19 Thread Petr Viktorin
Petr Viktorin added the comment: This would be nice. Too often when hacking on an extension, test pass just because I don't notice there was a compile error and so I'm testing an older version. -- nosy: +petr.viktorin ___ Python tracker

[issue45434] [C API] Clean-up the Python.h header file

2021-10-19 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2021-10-19 Thread Mark Dickinson
Mark Dickinson added the comment: > Closing this as out of date. SGTM. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2021-10-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +27331 pull_request: https://github.com/python/cpython/pull/29064 ___ Python tracker ___

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Aidan Clark
New submission from Aidan Clark : [I believe this is fundamentally a dataclass version of https://bugs.python.org/issue41249] When using `from __future__ import annotations`, calling get_type_hints on the constructor of a dataclass B which inherits from a dataclass A defined in another

[issue45525] PyType_Spec basicsize/itemsize should allow -1 for "inherit"

2021-10-19 Thread Petr Viktorin
New submission from Petr Viktorin : For cases where you aren't adding new C-level state, especially if don't have the superclass' struct available, it would be good to allow inheriting basicsize/itemsize from the superclass. (SuperType->tp_size is not easily usable for the same reason

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Sergei Lebedev
Sergei Lebedev added the comment: I think the example has a minor typo. The crash is reproducible on 3.9 if the last line in bar.py is typing.get_type_hints(B.__init__) instead of typing.get_type_hints(B) -- ___ Python tracker

[issue45527] Reduce overhead for cache hits in specialized opcodes.

2021-10-19 Thread Mark Shannon
New submission from Mark Shannon : Every time we get a cache hit in, e.g. LOAD_ATTR_CACHED, we increment the saturating counting. Takes a dependent load and a store, as well as the shift. For fast instructions like BINARY_ADD_FLOAT, this represents a significant portion of work done in the

  1   2   >