[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Idea for improving unmarshalling speed: Since reading PYCs is I/O bound, it may be worthwhile to compress them. When the idea came up previously, Antoine suggested choosing an algorithm with the fastest possible decompression speed (iirc, it was lzma4 a

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker ___ __

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread miss-islington
miss-islington added the comment: New changeset b86437bb15fbaba55f9e56661598b4d5a3db86bb by Miss Islington (bot) in branch '3.10': bpo-45067 - Verify the version of ncurses for extended color support feature usage. (GH-28260) https://github.com/python/cpython/commit/b86437bb15fbaba55f9e56661

[issue44492] Building a C extension on Big Sur and SDK v10.15 fails

2021-09-09 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue45144] Use subtests in test_peepholer

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am currently working on a feature which can be better in these cases that subTest(). It will allow to reduce the indentation level instead of increasing it. -- nosy: +serhiy.storchaka ___ Python tracker

[issue11255] 2to3 throws AttributeError during distutils installation with -O

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Python 3.2 is out of date, and distutils and 2to3 are both deprecated. -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue45022] Update libffi to 3.4.2

2021-09-09 Thread Steve Dower
Steve Dower added the comment: Going to just decide that we won't backport the update. If a big enough security issue is found we can consider it, but it would have to justify the potential-but-unlikely breaking change for users who are relying on the name of the DLL. -- resolution:

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 8.0 -> 9.0 pull_requests: +26684 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28264 ___ Python tracker __

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: This issue was created 11 years ago today. Let's celebrate its anniversary by resolving it! -- ___ Python tracker ___ _

[issue23249] test_win32 fails on aarch64

2021-09-09 Thread STINNER Victor
STINNER Victor added the comment: > Original bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1174037 The bug was reported on Fedora (Linux). We do now have a multiple AArch64 buildbots running Fedora and the whole test suite now pass there. Example with "aarch64 Fedora Stable 3.x"

[issue9811] strftime strips '%' from unknown format codes on OS X

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue23249] test_win32 fails on aarch64

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue45119] test_signal.test_itimer_virtual() failed on AMD64 Fedora Rawhide: Linux kernel 5.15 regression

2021-09-09 Thread STINNER Victor
STINNER Victor added the comment: Python 3.10 is also affected. Example with aarch64 Fedora Rawhide 3.10: https://buildbot.python.org/all/#builders/636/builds/286 -- title: test_signal.test_itimer_virtual() failed on AMD64 Fedora Rawhide 3.x: Linux kernel 5.15 regression -> test_signa

[issue39447] imaplib documentation claims that commands return a string, but they return bytes

2021-09-09 Thread Andrei Kulakov
Andrei Kulakov added the comment: This issue was fixed in https://github.com/python/cpython/commit/c75330605d4 -- closing. -- nosy: +andrei.avk, kj resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.9 -Python 3.7, Python 3.8 _

[issue10501] make_buildinfo regression with unquoted path

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: There is no longer a make_buildinfo.c -- nosy: +iritkatriel resolution: accepted -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : In the PEP 467 discussion, I proposed being able to use >>> (65).to_bytes() b'A' IOW, adding default arguments for the `length` and `byteorder` arguments to `int.to_bytes()` https://mail.python.org/archives/list/python-...@python.org/message/PUR7UCOITMMH

[issue45156] mock.seal has infinite recursion with int class attributes

2021-09-09 Thread David Mandelberg
New submission from David Mandelberg : The code below seems to have infinite recursion in the mock.seal call with python 3.9.2. from unittest import mock class Foo: foo = 0 foo = mock.create_autospec(Foo) mock.seal(foo) -- components: Library (Lib) messages: 401525 nosy: dseomn prio

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- keywords: +patch pull_requests: +26685 pull_request: https://github.com/python/cpython/pull/28265 ___ Python tracker ___

[issue45157] DTrace on RHEL7, generated Include/pydtrace_probes.h fails to build: error: impossible constraint in ‘asm’

2021-09-09 Thread STINNER Victor
New submission from STINNER Victor : I modified RHEL7 configuration to build Python using --with-dtrace: argv: [b'./configure', b'--prefix', b'$(PWD)/target', b'--with-pydebug', b'--with-platlibdir=lib64', b'--enable-ipv6', b'--enable-shared', b'--with-computed-gotos=yes', b'--with-dbmliborde

[issue45157] DTrace on RHEL7, generated Include/pydtrace_probes.h fails to build: error: impossible constraint in ‘asm’

2021-09-09 Thread STINNER Victor
STINNER Victor added the comment: Similar error with Python 3.10, AMD64 RHEL7 3.10 logs: https://buildbot.python.org/all/#/builders/666/builds/344 -- ___ Python tracker ___ __

[issue45158] Refactor traceback.py to make TracebackException more extensible.

2021-09-09 Thread Anton Abrosimov
New submission from Anton Abrosimov : 1. Move internal dependencies (`FrameSummary`, `StackSummary`) to class attributes. Reduce coupling. 2. Separate receiving, processing and presenting traceback information. How to replace `repr` with `pformat` in `FrameSummary`? def __init__(...): ...

[issue45158] Refactor traceback.py to make TracebackException more extensible.

2021-09-09 Thread Anton Abrosimov
Anton Abrosimov added the comment: I think now is a good time for such a change. `FrameSummary`,` StackSummary` and `TracebackException` can be left backward compatible. And PEP 657 already breaks backward compatibility of output parsers. -- ___ P

[issue35301] python.exe crashes - lzma?

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: This sounds like it may very well be memory corruption by BOINC. In any case, Python 3.6.3 is no longer maintained. -- nosy: +iritkatriel resolution: -> third party stage: -> resolved status: open -> closed ___ Py

[issue33085] *** Error in `python': double free or corruption (out): 0x00007ff5254d50d0 ***

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: There isn't enough information here for us to do anything about this, and in any case Python 3.6 is no longer maintained. Please create a new issue if you are having this problem with a current version (>= 3.9) and can provide more information about how to rep

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30991] test_ctypes , test_dbm and test_ssl fail on arm64 (aarch64) architecture

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Python 3.6 is no longer maintained. Please create a new issue if you are having problems with this on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed _

[issue30991] test_ctypes , test_dbm and test_ssl fail on arm64 (aarch64) architecture

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Changing type since test failures are not crash. -- type: crash -> behavior ___ Python tracker ___

[issue31100] unable to open python on Windows

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Is there anything more we can do on this or can we close it? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___ _

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Python 2.7 is no longer maintained and the current configure files no longer have the lines that the patch modifies. Please create a new issue if you are seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of d

[issue45151] Logger library with task scheduler

2021-09-09 Thread Steve Dower
Steve Dower added the comment: Also, can you include your full task definition? There are a lot of options there which could cause it to launch in a different working directory (which will mess with your relative paths) or as a different user (which could mess with whether you can import you

[issue31100] unable to open python on Windows

2021-09-09 Thread Steve Dower
Steve Dower added the comment: At this point, this isn't a helpful bug report anymore. -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Nick Coghlan
Nick Coghlan added the comment: Rather than defaulting to sys.byteorder, could the byte order default to None and only be optional when not needed? (input value fits in a single byte, output is a single byte) Otherwise the difference in defaults between this method and the struct module (ne

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Guido van Rossum
Guido van Rossum added the comment: Raymond, I am super grateful that you are showing us the assembly language. That's the kind of thing we need to do more of if we want to be successful. (In this case I'm not surprised by the outcome, but I have never studied x86 assembly and this was a nic

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Nick Coghlan
Nick Coghlan added the comment: Never mind, I've forced network byte order in struct strings for so long I had forgotten that native byte order was also the default there. Hence I withdraw that objection. -- ___ Python tracker

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So (128).to_bytes() will raise an error, right? I afraid also that it will lead to some programs working correctly only on platforms with the most common byte order, just because authors are not aware of byte ordering. Currently the interface forces progra

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, signed=False by default, so (128).to_bytes() will work. But I still worry that it can provoke writing more errorprone code. -- ___ Python tracker

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: > Ah, signed=False by default, so (128).to_bytes() will work. But I still worry > that it can provoke writing more errorprone code. Can you elaborate on that? Obviously no existing code will change behavior. I really don’t expect people to write `(128).to_

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps instead of the system byte ordering, choose one for the default so that default encoding/decoding will work cross platform. I think "little" is the most common (intel and arm). -- nosy: +rhettinger ___

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: For the common case where you’re using all defaults, it won’t matter. byteorder doesn’t matter when length=1. > On Sep 9, 2021, at 18:12, Raymond Hettinger wrote: > > > Raymond Hettinger added the comment: > > Perhaps instead of the system byte ordering

[issue45154] Enumerate() function or class?

2021-09-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thank you Raymond for the explanation. I didn't realise that there was a technical reason why built-in generators had to be implemented as classes in CPython. Sanmitha's question was already discussed answered here: https://discuss.python.org/t/enumerate-f

[issue45024] Cannot extend collections ABCs with protocol

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 62fa613f6a6e872723505ee9d56242c31a654a9d by Raymond Hettinger in branch 'main': bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218) https://github.com/python/cpython/commit/62fa613f6a6e872723505

[issue23864] doc: issubclass without registration only works for "one-trick pony" collections ABCs.

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 62fa613f6a6e872723505ee9d56242c31a654a9d by Raymond Hettinger in branch 'main': bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218) https://github.com/python/cpython/commit/62fa613f6a6e872723505

[issue45024] Cannot extend collections ABCs with protocol

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

[issue23864] doc: issubclass without registration only works for "one-trick pony" collections ABCs.

2021-09-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 12.0 -> 13.0 pull_requests: +26687 pull_request: https://github.com/python/cpython/pull/28266 ___ Python tracker ___

[issue39442] from __future__ import annotations makes dataclasses.Field.type a string, not type

2021-09-09 Thread Dave Tapley
Dave Tapley added the comment: I don't know if it helps, but I just ran in to this when I followed the advice at (1) because I wanted to type hint a method with the type of the enclosing class. This broke a package I'm working on in parallel (2) because it uses dataclasses.fields internally

[issue23864] doc: issubclass without registration only works for "one-trick pony" collections ABCs.

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 89edd18779e382c5fa7f57722b0b897a907ed2c4 by Miss Islington (bot) in branch '3.10': bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218) (GH-28266) https://github.com/python/cpython/commit/89edd18

[issue45024] Cannot extend collections ABCs with protocol

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 89edd18779e382c5fa7f57722b0b897a907ed2c4 by Miss Islington (bot) in branch '3.10': bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218) (GH-28266) https://github.com/python/cpython/commit/89edd18

[issue23864] doc: issubclass without registration only works for "one-trick pony" collections ABCs.

2021-09-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45024] Cannot extend collections ABCs with protocol

2021-09-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker ___

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy is likely thinking of other the other cases. Prior to this discussion, the principal use for to_bytes and from_bytes was for integers larger than a single byte. If we're going to add a *byteorder* default, it needs to make sense for those cases a

[issue45159] data_received called on protocol after call to pause_reading on ssl transport

2021-09-09 Thread Christopher Brichford
New submission from Christopher Brichford : An SSL connection created with loop.create_connection may have data_received called on its protocol after pause_reading has been called on the transport. If an application has a protocol whose data_received method calls pause_reading on the transpor

[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False

2021-09-09 Thread paul j3
paul j3 added the comment: In https://stackoverflow.com/questions/69108632/unable-to-catch-exception-error-for-argparse we found that `exit_on_error` does not work when the error occurs in a subparser. Unless someone wants to take time to get this right, I think this feature should be remo

[issue45155] Add default arguments for int.to_bytes()

2021-09-09 Thread Vedran Čačić
Vedran Čačić added the comment: > choose one for the default so that default encoding/decoding will work cross > platform. I think "little" is the most common (intel and arm). Raymond, please don't do this. We already have a "sensible default" in a network context, and it is big endian. Havi

<    1   2