[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.

[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

[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

[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

[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

[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 ___

[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)

[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)

[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

[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

[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 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)

[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)

[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:

[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

[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: > 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

[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 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

[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

[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

[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

[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

[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

[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

[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 ___

[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 ___

[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

[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:

[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

[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 ___

[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. -- ___

[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__(...): ...

[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 ___

[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',

[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 ___

[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

[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()`

[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

[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

[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 ->

[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:

[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 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

[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 ___

[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

[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. --

[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

[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

[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:

[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)

[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 ___

[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

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: I’m not sure we’re hoping this to be faster, just reduce the code object size and not be slower. (Smaller code object could be faster to unmarshal). -- ___ Python tracker

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the link. This is a worthwhile experiment. However, the potential gains will be hard to come by. The workload of LOAD_CONST is very small. After paying for the usual dispatch logic overhead, all it does is an index into a struct member and

[issue44841] ZipInfo crashes on filemode

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Crash typically means segfault or the like, not an exception. Can you provide code to create the file "test-one-dir.zip" so that we can reproduce the issue? -- nosy: +iritkatriel type: crash -> behavior ___ Python

[issue23249] test_win32 fails on aarch64

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23249] test_win32 fails on aarch64

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: I believe we are on libffi 3.3 now - the code on that branch looks very different from this patch. Can we close this issue? -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26683 pull_request: https://github.com/python/cpython/pull/28263 ___ Python tracker

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 794430700defb913512f871b701a888aa730de81 by Senthil Kumaran in branch 'main': bpo-45067 - Verify the version of ncurses for extended color support feature usage. (GH-28260)

[issue24544] Race condition and crash when embedding multi-thread script

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

[issue32876] HTMLParser raises exception on some inputs

2021-09-09 Thread Irit Katriel

Irit Katriel  added the comment:

I get a different error now:

>>> import html.parser
>>> html.parser.HTMLParser().feed("", line 1, in 
  File "/Users/iritkatriel/src/cpython-1/Lib/html/parser.py", 

[issue38573] Not Implemented Error in stdLib HTMLParser

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Changing type since this is an exception and not a crash. I get a different error now: >>> parser.feed(bytearray.fromhex('3c215b63612121').decode('ascii')) Traceback (most recent call last): File "", line 1, in File

[issue38596] simple example give a Linux core dumped with atk-bridge

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Python 3.7 is no longer maintained. If you are still seeing crashes in a current version (>= 3.9) then please create a new issue. However, note that a bug report is more likely to get attention if it shows a bug in python, rather than just reporting that a

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-09 Thread STINNER Victor
STINNER Victor added the comment: If the change is considered as a bugfix, it can wait for the next 3.9.x and 3.10.x release. If it's considered as a feature (which is backward incompatible), it should only land in 3.10 if it's in 3.10.0, but be reverted in the 3.9 branch. Honestly, I

[issue36463] python37.dll crashing 0xc000041d

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: Closing as there isn't enough information here for us to do anything about this. Also, Python 3.7 is no longer in maintenance. If you are still having this problem with a current version (>= 3.9) please create a new issue with information on how we can

[issue39955] argparse print_help breaks when help is blank space

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> In argparse empty choices cannot be printed in the help type: crash -> behavior ___ Python tracker

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Irit Katriel
Irit Katriel added the comment: It's related to this work: https://github.com/faster-cpython/ideas/issues/65 -- ___ Python tracker ___

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I didn't know this was in the works. Can you point me to the relevant discussion about why LOAD_CONST would be split? -- nosy: +rhettinger ___ Python tracker

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

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

[issue44344] Documentation for pow() should include the possibility of complex numbers as a return type

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: The pow() docs could use substantial updating. All of the logic for pow() is implemented in base.__pow__(exp, [mod]). Technically, it isn't restricted to numeric types, that is just a norm. The relationship between "pow(a,b)" and "a**b" is that both

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Changes merged to master and 3.10. Thanks, everyone! @pablogsal: You can merge this to 3.10.0 if you see fit, but I'm going to close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue45083] Need to use the exception class qualname when rendering exception (in C code)

2021-09-09 Thread Łukasz Langa
Łukasz Langa added the comment: I agree with Serhiy, I consider this a bugfix. Let's raise it to "release blocker" to let Pablo decide if this should wait for 3.10.1 or get bumped up to 3.10.0. -- nosy: +pablogsal priority: normal -> release blocker

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-09 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +26681 pull_request: https://github.com/python/cpython/pull/28261 ___ Python tracker ___

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-09 Thread STINNER Victor
STINNER Victor added the comment: > In my case, the file in question is implemented as a FUSE mount which is > served by the same process (different thread of course). Thus holding the GIL > at this point causes a rather interesting deadlock. Since the change fixes a deadlock, I agree to

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have created a pull request - https://github.com/python/cpython/pull/28260 Please review this. -- assignee: -> orsenthil versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread Senthil Kumaran
Change by Senthil Kumaran : -- keywords: +patch pull_requests: +26680 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28260 ___ Python tracker ___

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-09 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 23c46778d65870784cb6d4de30f43aac62d71e73 by Miss Islington (bot) in branch '3.10': bpo-44219: Release the GIL during isatty syscalls (GH-28250) (GH-28255) https://github.com/python/cpython/commit/23c46778d65870784cb6d4de30f43aac62d71e73

[issue45154] Enumerate() function or class?

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: In pure python, generators are implemented as functions. In CPython, the only way to implement them is as a class. From a user's point of view, enumerate(), map(), zip(), and filter() are used like a functions (they doesn't have non-dunder methods).

[issue45139] Docs: add source directive for minor translation simplification

2021-09-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New directives introduce complexity. They should be saved for pervasive and non-trivial problems. The motivation for this change is dubious (that a translator can't easily handle a simple fixed string pattern). The OP grants that this is a "only small

[issue45103] IDLE: make configdialog font page survive font failures

2021-09-09 Thread E. Paine
E. Paine added the comment: It turns out the problem is a combination of the font and IDLE preview content. With the phaistos font installed, inserting the content of the "Devanagari, Tamil" or "East Asian" sections into a Tk text widget causes it to freeze. For example, the following will

[issue45153] Except multiple types of exceptions with OR keyword is not working

2021-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Expression `A or B` gets you A if A is true. If you want to catch several types of exception by one "except", use except with a tuple: except (ConnectionResetError, ConnectionAbortedError): -- nosy: +serhiy.storchaka resolution: -> not a bug

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +26679 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28259 ___ Python tracker

[issue45139] Docs: add source directive for minor translation simplification

2021-09-09 Thread Zachary Ware
Zachary Ware added the comment: Note that this is suggesting to introduce a `.. source` directive, not adjust the existing `:source:` role. There's nothing preventing the use of the existing pattern in special cases, while using the new directive in the common cases. I don't have context

[issue36424] Pickle fails on frozen dataclass that has slots

2021-09-09 Thread Andrei Kulakov
Andrei Kulakov added the comment: This actually can't be closed yet as the fix was not backported to 3.9 -- ___ Python tracker ___

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin
D.Lintin added the comment: 1 failing checks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45154] Enumerate() function or class?

2021-09-09 Thread Sanmitha
New submission from Sanmitha : I was learning about enumerate(). While learning, when I used, >>>help(enumerate) Help on class enumerate in module builtins: class enumerate(object) | enumerate(iterable, start=0) | | Return an enumerate object. | | iterable | an object supporting iteration | |

[issue45153] Except multiple types of exceptions with OR keyword is not working

2021-09-09 Thread Shlomi
New submission from Shlomi : When I want to catch multiple types of exceptions naturally 'OR' keyword is used. But it doesn't work. The interpreter doesn't show any error for the syntax, so developer may think it would work. Small example: try: myfunc() except ConnectionResetError or

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +26678 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28258 ___ Python tracker ___

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45152] Prepare for splitting LOAD_CONST into several opcodes

2021-09-09 Thread Irit Katriel
New submission from Irit Katriel : This issue is to prepare the code for splitting LOAD_CONST to several opcodes. There are a number of places in the code where an opcode is compared to LOAD_CONST (such as dis, the compiler, and the peephole optimizer). These need to be refactored to make

[issue45151] Logger library with task scheduler

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Can you simplify this to not use any external libraries? -- components: -IO, Windows nosy: +eric.smith ___ Python tracker ___

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: @pablogsal: You might want to merge this back to 3.10.0, once it's merged to 3.10. I'll merge it shortly, once the tests have run. -- keywords: -patch nosy: +pablogsal stage: patch review -> ___ Python tracker

[issue45151] Logger library with task scheduler

2021-09-09 Thread Brian Hunt
New submission from Brian Hunt : Version: Python 3.9.3 Package: Logger + Windows 10 Task Scheduler Error Msg: None Behavior: I built a logging process to use with a python script that will be scheduled with Windows 10 task scheduler (this could be a bug in task scheduler too, but starting

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin
D.Lintin added the comment: Thankyou! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks to both of you. Unfortunately, I have to pick one PR to use, and since dlintin had the earlier one, I'll use it. -- ___ Python tracker

[issue45067] Failed to build _curses on CentOS 7

2021-09-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: A change like this will be required since these funcs were introduced only recently and nurses shipped with centos was older. % git diff diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 61aaf85522..6fb6c490e6 100644 ---

[issue44219] Opening a file holds the GIL when it calls "isatty()"

2021-09-09 Thread miss-islington
miss-islington added the comment: New changeset 5c65834d801d6b4313eef0684a30e12c22ccfedd by Miss Islington (bot) in branch '3.9': bpo-44219: Release the GIL during isatty syscalls (GH-28250) https://github.com/python/cpython/commit/5c65834d801d6b4313eef0684a30e12c22ccfedd --

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin
D.Lintin added the comment: Just updated the description to attach to the issues, thanks. -- ___ Python tracker ___ ___

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin
Change by D.Lintin : -- pull_requests: +26677 pull_request: https://github.com/python/cpython/pull/28253 ___ Python tracker ___ ___

  1   2   >