[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28341 pull_request: https://github.com/python/cpython/pull/30122 ___ Python tracker ___

[issue46083] PyUnicode_FSConverter() has confusing reference semantics

2021-12-15 Thread Thomas Wouters
New submission from Thomas Wouters : The PyUnicode_FSConverter function has confusing reference semantics, and confusing documentation. https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FSConverter says the output argument "must be a PyBytesObject* which must be released when it is no

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Ram Rachum
Ram Rachum added the comment: I'd include that same message you quoted, minus the list of functions, on each and every one of the functions that have this argument. -- ___ Python tracker

[issue41354] filecmp.cmp documentation does not match actual code

2021-12-15 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +28340 pull_request: https://github.com/python/cpython/pull/30120 ___ Python tracker ___

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Eric V. Smith
Eric V. Smith added the comment: Suggestions to improve it are welcomed. I can't think of a way to do it without cluttering things up. -- ___ Python tracker ___

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Ram Rachum
Ram Rachum added the comment: Thanks, but people looking at a specific function might not guess that the documentation for one of its arguments is hiding somewhere on the long page. This is especially relevant with a confusing argument like `msg`, since it's tempting to think that this

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Eric V. Smith
Eric V. Smith added the comment: The documentation at https://docs.python.org/3/library/unittest.html says "All the assert methods accept a msg argument that, if specified, is used as the error message on failure (see also longMessage). Note that the msg keyword argument can be passed to

[issue17975] altinstall should not install libpython3.so (conflict between multiple $VERSIONs)

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46082] type casting of bool

2021-12-15 Thread Alex Waygood
Alex Waygood added the comment: Hi! Your message here is a little unclear. Are you proposing a new feature (an enhancement), or filing a bug report? In either case, I'm afraid this behavior is very unlikely to change. In general, strings in Python are always considered truthy unless they

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: New changeset f0b274d2e21e6c7c1c0f56464070108f9bd00d20 by Miss Islington (bot) in branch '3.9': bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) (GH-30115)

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8e4c96295bd78ae5f70b908e5dbac0da7c4c21bd by Miss Islington (bot) in branch '3.10': bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) (GH-30114)

[issue45981] Get raw file name in bytes from ZipFile

2021-12-15 Thread Devourer Station
Devourer Station added the comment: I do think providing a rawfile field in the ZipInfo struct helps. As a library, ZipFile should let users know what they are dealing with. Users can get data from zip files, and ZipFile shouldn't corrupt them. I don't mean that we should provide everything in

[issue46082] type casting of bool

2021-12-15 Thread aziz
New submission from aziz : >>> st = "True" >>> bool(st) True >>> st = "False" >>> bool(st) True >>> >>> stk = "False" >>> bool(stk) True >>> eval(stk) False -- components: 2to3 (2.x to 3.x conversion tool) messages: 408595 nosy: aziz priority: normal severity: normal status: open

[issue31370] Remove support for threads-less builds

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: Either reopen the issue or open a new issue. Only people subscribed to this bug are aware of the recent comments. Closed issues are hidden from the bugs home page and from the default search. If you consider that Python must again support thread-less

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-15 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28339 pull_request: https://github.com/python/cpython/pull/30117 ___ Python tracker ___

[issue46072] Unify handling of stats in the CPython VM

2021-12-15 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +28338 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30116 ___ Python tracker ___

[issue46039] Break up the YIELD_FROM instruction.

2021-12-15 Thread Mark Shannon
Mark Shannon added the comment: New changeset 0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e by Mark Shannon in branch 'main': bpo-46039: Split yield from in two (GH-30035) https://github.com/python/cpython/commit/0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e --

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +28337 pull_request: https://github.com/python/cpython/pull/30115 ___ Python tracker ___

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: New changeset 86de99588db3beff964137f4fe27dd1077a09b35 by Irit Katriel in branch 'main': bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099) https://github.com/python/cpython/commit/86de99588db3beff964137f4fe27dd1077a09b35

[issue26952] argparse help formatter raises IndexError

2021-12-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28336 pull_request: https://github.com/python/cpython/pull/30114 ___ Python tracker

[issue42209] Incorrect line reported in syntax error

2021-12-15 Thread arian-f
arian-f added the comment: There are still variations of this issue in python 3.10 - the line nr is correct - in script attached it's line 2 (the attached script is otherwise the same): f'{ 1_a }' resulting in: File "test.py", line 1 ( 1_a ) ^ SyntaxError: invalid

[issue45292] Implement PEP 654: Exception Groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: The way these two opcodes are combined by the compiler to implement except* is described in the pseudo code here: https://github.com/python/cpython/pull/29581#issuecomment-975660029 except* uses JUMP_IF_NOT_EG_MATCH. The excepts (not-*) that collect

[issue45292] Implement PEP 654: Exception Groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: The second opcode that the PR adds is PREP_RERAISE_STAR. This opcode takes a list that contains: 1. all the exceptions that were raised in the executed except* clauses 2. the unmatched part of the exception group It constructs the exception group that needs to

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Alex Waygood
Change by Alex Waygood : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46077] Include sha256 hashes of release downloads in announcement communications

2021-12-15 Thread Yann Droneaud
Change by Yann Droneaud : -- nosy: +ydroneaud ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: Changing type. Crash is typically segfault or hang in c code rather than an exception. -- nosy: +iritkatriel type: crash -> behavior ___ Python tracker

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Ram Rachum
New submission from Ram Rachum : The `msg` argument to the `assertRaises` function isn't documented. The documentation should say what this argument does. -- assignee: docs@python components: Documentation messages: 408587 nosy: cool-RR, docs@python priority: normal severity: normal

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-15 Thread Alex Waygood
Change by Alex Waygood : -- title: Broken URL in tutorial -> [doc] Broken URL in "Brief Tour of the Standard Library" type: -> behavior versions: +Python 3.11, Python 3.9 ___ Python tracker

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2021-12-15 Thread hongweipeng
Change by hongweipeng : -- keywords: +patch pull_requests: +28335 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30112 ___ Python tracker ___

<    1   2