[issue46031] add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE

2021-12-10 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: https://github.com/faster-cpython/ideas/discussions/154 -- components: Interpreter Core messages: 408178 nosy: penguin_wwy priority: normal severity: normal status: open title: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE type:

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Kumar Aditya
New submission from Kumar Aditya : functools' singledispatch does not support GenericAlias ```py from functools import singledispatch @singledispatch def func(x): print("any") @func.register def _(x: list[str]): print("list[str]") func(["a", "b"]) ``` -- components:

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28245 pull_request: https://github.com/python/cpython/pull/30021 ___ Python tracker ___

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8c74713d0e349c27518080945d5f040dfd52a56e by andrei kulakov in branch 'main': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

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

[issue45773] Compiler hangs during jump elimination

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

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fb8aad16401e081a6a9059c7b428f7e8aae85d58 by Miss Islington (bot) in branch '3.9': [3.9] bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) (GH-29924)

[issue15757] ./configure --with-pydebug on FreeBSD results in -O2 -pipe eventually ending up in CFLAGS.

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

[issue13473] Add tests for files byte-compiled by distutils

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

[issue41702] Inconsistent behaviour in strftime

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

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2021-12-10 Thread Gabriele N Tornetta
Gabriele N Tornetta added the comment: @rhettinger Apologies. You're totally right but I wasn't expecting this to become a lengthy conversation. So, to get closer to the initial issue, I believe that this ticket could be closed provided that the documentation is improved by making

[issue46033] Duplicated sentence in for statement documentation

2021-12-10 Thread Michał D
New submission from Michał D : In for statement description, there seem to be two sentences meant to mean the same: > The suite is then executed once for each item provided by the iterator, in > the order returned by the iterator. Each item in turn is assigned to the > target list using the

[issue45723] Improve and simplify configure.ac checks

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

[issue46031] add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE

2021-12-10 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +28243 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30019 ___ Python tracker

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: My opinion is that supporting `GenericAlias` here would be a bad idea. Associating an implementation of the function with the argument type `list[str]` is ambiguous. Would this implementation be called if any argument of type `list` was supplied, or would it

[issue46000] NetBSD curses compatibility

2021-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2fb797e93c6bbd44dfcbe23f63acfa240a87e48a by Thomas Klausner in branch 'main': bpo-46000: Improve NetBSD curses compatibility (GH-29947) https://github.com/python/cpython/commit/2fb797e93c6bbd44dfcbe23f63acfa240a87e48a --

[issue46000] NetBSD curses compatibility

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28247 pull_request: https://github.com/python/cpython/pull/30023 ___ Python tracker ___

[issue46000] NetBSD curses compatibility

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

[issue45779] multiprocessing initializer error with CPython 3.9.6 on Apple Silicon

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

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

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

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread miss-islington
miss-islington added the comment: New changeset 40d765260ae08d152ee89ed9c1c621f4a0024fa6 by Miss Islington (bot) in branch '3.9': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: Commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7 has correct _base_executable $ venv/bin/python Python 3.11.0a2+ (heads/bpo-45847-simple-115-g9f2f7e42269:9f2f7e42269, Dec 10 2021, 10:09:54) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux Type "help",

[issue14336] Difference between pickle implementations for function objects

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue45662] Incorrect repr of InitVar of a type alias

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28559] Unclear error message when raising wrong type of exceptions

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue42182] 3.10 Documentation Not Hyperlinking Some Methods

2021-12-10 Thread miss-islington
miss-islington added the comment: New changeset 64c2788f42c49c7094d3b6e5404fe8386a2b4779 by Miss Islington (bot) in branch '3.10': bpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)

[issue46000] NetBSD curses compatibility

2021-12-10 Thread miss-islington
miss-islington added the comment: New changeset bb76410824e526ee075eac22812a577cca7583cf by Miss Islington (bot) in branch '3.10': bpo-46000: Improve NetBSD curses compatibility (GH-29947) https://github.com/python/cpython/commit/bb76410824e526ee075eac22812a577cca7583cf --

[issue16977] argparse: mismatch between choices parsing and usage/error message

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: We could make the error message less wrong: >>> p.parse_args(['d']) usage: [-h] {a,b,c} : error: argument a: invalid choice: 'd' (choose a value in 'abc') % git diff diff --git a/Lib/argparse.py b/Lib/argparse.py index b44fa4f0f6..f03cc1f110 100644 ---

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: *3.8, I meant. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: 3.10 and 3.9 - OK, but 3. is security fixes only, I'm afraid. -- ___ Python tracker ___ ___

[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : Avoid reference counting in the fast path of list.contains and list.index -- messages: 408242 nosy: tekknolagi priority: normal severity: normal status: open title: Add reference counting micro-optimizations to listobject.c

[issue41248] Python manual forced in maximized window

2021-12-10 Thread Mischiew Rithe
Mischiew Rithe added the comment: The problem still exists in version 3.10.1, in Windows. When the user wants to get the documentation, the whole screen is hidden by it, which is very inconvenient. If the user does not want this behaviour, they have to change the shortcut, for instance in:

[issue17890] argparse: mutually exclusive groups full of help-suppressed args can cause AssertionErrors

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I'm unable to reproduce this problem on 3.11: >>> import argparse >>> parser = argparse.ArgumentParser() >>> group = parser.add_mutually_exclusive_group() >>> group.add_argument('--spam', help=argparse.SUPPRESS) _StoreAction(option_strings=['--spam'],

[issue16807] argparse group nesting lost on inheritance

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> argparse.ArgumentParser(add_help=False, parents=[parent]).print_help() usage: [--foo FOO] [-a | -b] options: -a -b the group: --foo FOO -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7,

[issue45582] Rewrite getpath.c in Python

2021-12-10 Thread Steve Dower
Steve Dower added the comment: New changeset 3f398a77d37b5dfd51dabbc362d482a482fa885a by neonene in branch 'main': bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014) https://github.com/python/cpython/commit/3f398a77d37b5dfd51dabbc362d482a482fa885a --

[issue45654] Freeze the runpy module.

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 16638a4bdb802ae52d386a39d2dbef14de3fbc92 by Christian Heimes in branch 'main': bpo-45654: No need to freeze types (GH-30028) https://github.com/python/cpython/commit/16638a4bdb802ae52d386a39d2dbef14de3fbc92 --

[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner
Thomas Klausner added the comment: gcc supports this flag. According to the man page: This option consistently for both compilation and linking. This option is supported on GNU/Linux targets, most other Unix derivatives, and also on x86 Cygwin and MinGW targets. On NetBSD, using -pthread

[issue766910] fix one or two bugs in trace.py

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +ajaksu2 versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7 ___ Python tracker ___

[issue28841] urlparse.urlparse() parses invalid URI without generating an error (examples provided)

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> urllib.parse.urlparse('http://www.google.com:/abc') ParseResult(scheme='http', netloc='www.google.com:', path='/abc', params='', query='', fragment='') The discussion above was mostly leaning towards won't fix, except for the

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Mitchell Hentges
Mitchell Hentges added the comment: That's great, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2021-12-10 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46039] Break up the YIELD_FROM instruction.

2021-12-10 Thread Mark Shannon
New submission from Mark Shannon : The YIELD_FROM instruction does three things: * It sends a value to the sub-iterator * It yields the value from the sub-iterator back up to its caller * Loops back on itself So we should implement this as: SEND<--+ YIELD_VALUE| JUMP_ABSOLUTE -+

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-10 Thread Stanislav Syekirin
New submission from Stanislav Syekirin : https://docs.python.org/3.10/library/asyncio-task.html#generator-based-coroutines This page says about asyncio.coroutine: Deprecated since version 3.8, removed in version 3.10 However, asyncio.coroutine is still working in 3.10 and has been

[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- keywords: +patch pull_requests: +28261 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30036 ___ Python tracker

[issue39425] list.count performance regression

2021-12-10 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- nosy: +tekknolagi nosy_count: 5.0 -> 6.0 pull_requests: +28262 pull_request: https://github.com/python/cpython/pull/30036 ___ Python tracker

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun
Eryk Sun added the comment: The Windows implementation of symlink_or_copy() actually copies "python.exe" and "pythonw.exe" launchers from "Lib/venv/scripts/nt". One cannot simply copy the "python3.exe" executable because the required DLLs aren't copied. If this seemed to work when testing,

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue46038] Mark /configure file as generated in .gitattributes

2021-12-10 Thread Oleg Iarygin
New submission from Oleg Iarygin : configure is regenerated from configure.ac using a custom container with appropriate version of tools (quay.io/tiran/cpython_autoconf by Christian Heimes). As a result, configure falls into the same category as files generated by Argument Clinic, Freeze and

[issue46038] Mark /configure file as generated in .gitattributes

2021-12-10 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +28256 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30031 ___ Python tracker ___

[issue31768] argparse drops '|'s when the arguments are too long

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: In 3.11 the problem is still there, but the cutoff to make Eric's script show it is now 26 rather than 8: % ./python.exe tt.py 25 usage: tt.py [-h] [-v | -q | -x [X] | -y [Y] | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z | Z

[issue34628] urllib.request.urlopen fails when userinfo is present in URL

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue28609] argparse claims '*' positional argument is required in error output

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. >>> parser.parse_args([]) usage: [-h] [-V] COMMAND [ARGUMENT ...] : error: the following arguments are required: COMMAND, ARGUMENT -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5

[issue24338] In argparse adding wrong arguments makes malformed namespace

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: >From the discussion and "rejected" resolution it looks like the intention was >to close this issue. I will do that soon if nobody objects. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue46039] Break up the YIELD_FROM instruction.

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

[issue21461] Recognize -pthread

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: Which platforms or compilers use -pthread? -- components: +Build -Extension Modules nosy: +christian.heimes versions: +Python 3.11 -Python 3.5 ___ Python tracker

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : The error range for the "duplicate argument in function definition" SyntaxError is too large: $ cat x.py def f(a, b, c, d, e, f, g, a): pass $ python x.py File "/home/cfbolz/projects/cpython/x.py", line 1 def f(a, b, c, d, e, f, g, a):

[issue30718] [doc] open builtin function: specifying the size of buffer has no effect for text files

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation -Interpreter Core keywords: +easy nosy: +docs@python title: open builtin function: specifying the size of buffer has no effect for text files -> [doc] open builtin function: specifying the size of buffer

[issue45653] Freeze the encodings module.

2021-12-10 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 5.0 -> 6.0 pull_requests: +28255 pull_request: https://github.com/python/cpython/pull/30030 ___ Python tracker

[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

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

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset bad16f0cf71a6b11ef62f86be6b3d3567cd70a16 by Miss Islington (bot) in branch '3.9': [3.9] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30033)

[issue21461] Recognize -pthread

2021-12-10 Thread Christian Heimes
Christian Heimes added the comment: Python's configure script should detect when a platform needs -pthread and automatically include the flags for linking and compiling of all files. Under which circumstances do you need -pthread in a Setup file? --

[issue1182143] making builtin exceptions more informative

2021-12-10 Thread Daniel Diniz
Change by Daniel Diniz : -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23994] argparse fails to detect program name when there is a slash at the end of the program's path

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this problem on 3.11 on a Mac. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue18636] mingw: setup _ssl module

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

[issue11708] argparse: suggestion for formatting optional positional args

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue43749] venv module does not copy the correct python exe

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

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28259 pull_request: https://github.com/python/cpython/pull/30034 ___ Python tracker ___

[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Roy Smith
Roy Smith added the comment: It's nice to see this is still being worked on after all these years :-) I'm not actually convinced the proposed fix makes sense. It swaps out one incorrect behavior for a different incorrect behavior. If it really is more effort than it's worth to fix this

[issue22714] target of 'import statement' entry in general index for 'i' is wrong

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun
Eryk Sun added the comment: The code to copy a file could be rewritten to use a regex match. For example: # Copy src to dst. If src is a base executable, copy a launcher. dirname, filename = os.path.split(src) m =

[issue44946] Integer operations are inefficient for "medium" integers.

2021-12-10 Thread Xinhang Xu
Change by Xinhang Xu : -- nosy: +xuxinhang nosy_count: 3.0 -> 4.0 pull_requests: +28270 pull_request: https://github.com/python/cpython/pull/30044 ___ Python tracker ___

[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The OP self-closed the PR. -- nosy: +rhettinger resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46024] Different behaviour with zipfile

2021-12-10 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-10 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22047] argparse improperly prints mutually exclusive options when they are in a group

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11: % ./python.exe tt.py -h usage: tt.py [-h] [[-hello]] options: -h, --help show this help message and exit -hello A flag -- nosy: +iritkatriel status: open -> pending

[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Adding a space as Paul suggests works. I'll close this soon if nobody objects. -- nosy: +iritkatriel resolution: -> wont fix status: open -> pending ___ Python tracker

[issue15125] argparse: positional arguments containing - in name not handled well

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset bb8d645f3a09645686cf8f66bd46dcfa4efac713 by Miss Islington (bot) in branch '3.10': [3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30034)

[issue17024] cElementTree calls end() on parser taget even if start() fails

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: This test passes on 3.11 (on a Mac). -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue21178] doctest cause warnings in tests using generators

2021-12-10 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 3.4, Python 3.5 ___ Python tracker ___

[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-10 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

2021-12-10 Thread Alex Waygood
Alex Waygood added the comment: Another option for code using Python <3.11, that will work without the `from __future__ import annotations` import, is to do something like this: ``` from graphlib import TopologicalSorter x: 'TopologicalSorter[str]' = TopologicalSorter({"a": {}, "b": {"a"}})

[issue42114] Documentation of ctypes.CDLL does not correspond to code

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

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28264 pull_request: https://github.com/python/cpython/pull/30038 ___ Python tracker ___

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c1051e08b3c6d9045322763876a4b0aea98d79f9 by Louis Sautier in branch 'main': bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) https://github.com/python/cpython/commit/c1051e08b3c6d9045322763876a4b0aea98d79f9

[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner
Thomas Klausner added the comment: I must confess, I don't know. This patch has been in pkgsrc since at least the import of the first python 2.7 package in 2011, and I haven't dug deeper. If you think it is unnecessary, I'll trust you. I've just removed it from the python 3.10 package in

[issue21459] DragonFlyBSD support

2021-12-10 Thread Thomas Klausner
Thomas Klausner added the comment: Not interested in this any longer, and Dragonfly's Dports doesn't carry this patch, so it's probably not needed any longer. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue31370] Remove support for threads-less builds

2021-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://web.dev/webassembly-threads/ suggests otherwise. -- ___ Python tracker ___ ___

[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3cb357a2e6ac18ee98db5d450414e773744e3c76 by Yurii Karabas in branch 'main': bpo-46014: Add ability to use typing.Union with singledispatch (GH-30017) https://github.com/python/cpython/commit/3cb357a2e6ac18ee98db5d450414e773744e3c76 --

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8f3728edcbc205913772f8dc04cccd8bdc476ff4 by Miss Islington (bot) in branch '3.10': bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30037)

[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- assignee: -> docs@python components: +Documentation -ctypes nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.8 ___

[issue25834] getpass falls back when sys.stdin is changed

2021-12-10 Thread Irit Katriel
Irit Katriel added the comment: Adam, do you have a suggestion what the check should be? -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 98e506ae8a7997658a08fbf77ac016d200588cb3 by Petr Viktorin in branch 'main': bpo-43795: Document stable_abi.txt format and contents (GH-29956) https://github.com/python/cpython/commit/98e506ae8a7997658a08fbf77ac016d200588cb3 -- nosy:

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 28179aac796ed1debdce336c4b8ca18e8475d40d by Weipeng Hong in branch 'main': bpo-42918: Improve build-in function compile() in mode 'single' (GH-29934) https://github.com/python/cpython/commit/28179aac796ed1debdce336c4b8ca18e8475d40d --

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b593bdc7803cc75461f6fad03cb7d8dfc416 by Carl Friedrich Bolz-Tereick in branch 'main': bpo-37971: fix the position of decorator application (GH-30027) https://github.com/python/cpython/commit/b593bdc7803cc75461f6fad03cb7d8dfc416

[issue42918] Nested multi-line expression will lead to "compile()" fails

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

[issue20559] urllib/http fail to sanitize a non-ascii url

2021-12-10 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 3.3 ___ Python tracker ___

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +28268 pull_request: https://github.com/python/cpython/pull/30042 ___ Python tracker ___

[issue19737] Documentation of globals() and locals() should be improved

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

[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4fe5585240f64c3d14eb635ff82b163f92074b3a by 180909 in branch 'main': bpo-19737: Improved the documentation for globals (GH-29823) https://github.com/python/cpython/commit/4fe5585240f64c3d14eb635ff82b163f92074b3a -- nosy: +lukasz.langa

  1   2   >