[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-28 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: > > This really should be handled in a new issue since the original fixes for > > all affected releases are already in the field. > Sorry, I got suggested too much with expected fix which is common for both of > those issues. Shall I create a new issue?

[issue37430] [doc] range is not a built-in function

2022-03-28 Thread Stanley
Stanley added the comment: Terry, how do you think the example/paragraph should be improved? I notice that the previous paragraphs talk about continue/break/else, so were you looking for some new example with all those? And I think the indexing's been fixed by now, but a clickable link to

[issue47098] sha3: Replace Keccak Code Package with tiny_sha3

2022-03-28 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45382] platform() is not able to detect windows 11

2022-03-28 Thread Tim Golden
Tim Golden added the comment: > I don't see why the wmi module ( https://pypi.org/project/WMI/ ) can't be > used instead to get the information Well I can speak here as the author of that module and as an (occasional) core developer. The wmi module stands on the shoulderes of the pywin32

[issue47138] Bump Sphinx to fix docs build

2022-03-28 Thread Hugo van Kemenade
New submission from Hugo van Kemenade : The docs build on GitHub Actions is passing on `main` but has started failing for the `3.7` - `3.10` branches: ``` Missing the required blurb or sphinx-build tools. Please run 'make venv' to install local copies. make[1]: *** [Makefile:50: build] Error

[issue47070] Improve performance of array_inplace_repeat

2022-03-28 Thread Dennis Sweeney
Dennis Sweeney added the comment: New changeset 850687df47b03e98c1433e6e70e71a8921eb4454 by Pieter Eendebak in branch 'main': bpo-47070: Add _PyBytes_Repeat() (GH-31999) https://github.com/python/cpython/commit/850687df47b03e98c1433e6e70e71a8921eb4454 --

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2022-03-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42197] Disable automatic update of frame locals during tracing

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: Mark: Please add the new PyFrame_GetLocals() function to the C API > New Features doc: https://docs.python.org/dev/whatsnew/3.11.html#id1 -- ___ Python tracker

[issue46712] Share global string identifiers in deepfreeze

2022-03-28 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +30230 pull_request: https://github.com/python/cpython/pull/32152 ___ Python tracker ___

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: re: https://bugs.python.org/issue45618#msg416017 Maciej Olko, please could you update these PRs to keep the Sphinx version the same and only pin Jinja2 to match? 3.7: https://github.com/python/cpython/pull/32109 3.8:

[issue47128] Enhance Argument Clinic's NoneType return converter to give `void`

2022-03-28 Thread Oleg Iarygin
Oleg Iarygin added the comment: Actually, you're right. For now, PyErr_Occurred is a GIL lock plus a memory access. While the access is cheap because of a L1 cache hit, the GIL takes its toll in a hot path. So I'm closing the PR until GIL removal is done so no performance penalty will be

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-28 Thread Maciej Olko
Maciej Olko added the comment: > This really should be handled in a new issue since the original fixes for all > affected releases are already in the field. Sorry, I got suggested too much with expected fix which is common for both of those issues. Shall I create a new issue? > Moreover,

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-28 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-28 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -30186 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-28 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -30194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45953] Statically allocate interpreter states as much as possible.

2022-03-28 Thread Guido van Rossum
Guido van Rossum added the comment: Please don’t try to “fix” anything. The value is only useful if you understand the implementation. It should map straightforwardly to what’s in memory. On Mon, Mar 28, 2022 at 05:16 STINNER Victor wrote: > > STINNER Victor added the comment: > > > Should

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +30235 pull_request: https://github.com/python/cpython/pull/32154 ___ Python tracker ___

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +30234 pull_request: https://github.com/python/cpython/pull/32153 ___ Python tracker ___

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Hugo van Kemenade
Hugo van Kemenade added the comment: I cherry picked Maciej's 3.8 commit into 3.9 and 3.10 PRs: 3.9: https://github.com/python/cpython/pull/32153 3.10: https://github.com/python/cpython/pull/32154 And marking this issue as not relevant to 3.11; instead I bumped the Sphinx version in

[issue47144] Allow setting __classcell__

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > This is unfortunate as there is a use-case for such trickery: if the method > of a class A are only used to be grafted onto another class B (monkey > patching), A.__classcell__ should be set to B so that super() works as > expected. Would you elaborate

[issue45953] Statically allocate interpreter states as much as possible.

2022-03-28 Thread Julien Palard
Julien Palard added the comment: Since https://github.com/python/cpython/commit/121f1f893a39d0b58d3d2b5597505c154ecaac2a, `sys.getrefcount(1)` is surprising: >>> __import__("sys").getrefcount(1) 100210 Should sys.getrefcount try to "fix" the value like by returning

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I once proposed to exclude modules from the star import by default, but this proposition was rejected. You can try, maybe your proposition will be more acceptable. -- ___ Python tracker

[issue47144] Allow setting __classcell__

2022-03-28 Thread Douglas Raillard
New submission from Douglas Raillard : The cell object __classcell__ currently cannot be set by code invoked by metaclass.__new__. Attempts to do so will be caught by builtin___build_class__ in bltimodule.c: } else { const char *msg =

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: In the Python C API, PEP 384 added PyType_FromSpec(). There is also PyStructSequence_NewType(). PEP 3121 proposed PyType_Copy() but it was never implemented: see bpo-3760. But in C, closures are implemented using a module state, or previously using a global

[issue47125] Explore hashlib use of the Windows Crypto API NG

2022-03-28 Thread Steve Dower
Steve Dower added the comment: Did a basic test (with timeit and a work-internal library I already have) and the native functionality is *slightly* faster than OpenSSL. But I think it's worthwhile anyway, to help reduce our dependency on OpenSSL. --

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Ned Deily
Ned Deily added the comment: Thank you both for addressing this. The main reason for minimizing changes to the docs build chain for brances in bugfix or security-fix-only phases is that many distributors of Python also release the Python docs as a package and they do not necessarily rely on

[issue46404] RFE: @dataclasses.dataclass(slots=True) doesn't support methods using closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: I changed the issue title to focus this issue on enhance dataclasses to support @dataclasses.dataclass(slots=True) on methods using closures: it would be a new Python 3.11 feature. I created https://bugs.python.org/issue47143 "Add functools.copy_class()

[issue46404] RFE: @dataclasses.dataclass(slots=True) doesn't support methods using closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-45520: "Frozen dataclass deep copy doesn't work with __slots__" which is related but a different issue. -- ___ Python tracker

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: If I understand correctly, a cell content can be modified since Python 3.7: since commit 64505a1f6c0af4574e17e823b27ffe24eca44df5 of bpo-30486: bpo-30486: Allow setting cell value (#1840) Antoine Pitrou created bpo-30486 for cloudpickle: "There are use

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: pickle.dump(x) checks if x is a type since commit f048a8f6d79173cc1da1bf12c60ae06fea36762c (March 2002) of bpo-494904: Pickler.save(): Fix for SF bug #494904: Cannot pickle a class with a metaclass, reported by Dan Parisien. +if

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: More recent copy.copy() change: commit 5c1c3b4f197c57952760be37d77d73669284a607 of bpo-11480: Issue #11480: Fixed copy.copy to work with classes with custom metaclasses. +try: +issc = issubclass(cls, type) +except TypeError: # cls is not

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
New submission from STINNER Victor : Class decorarators of attrs and stdlib dataclasses modules have to copy a class to *add* slots: * old fixed attrs issue: https://github.com/python-attrs/attrs/issues/102 * attrs issue with Python 3.11: https://github.com/python-attrs/attrs/issues/907 *

[issue47124] explore hashlib use of the Apple CryptoKit macOS

2022-03-28 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: It seems like the copy module doesn't support copying a class. copy.deepcopy(cls) doesn't copy a class but returns its argument, the class unchanged. -- ___ Python tracker

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: The pickle module doesn't copy a type but gets it from its module. The Python implementation is pickle._Pickler.save_type() which calls pickle._Pickler.save_global(). The cloudpickle module doesn't copy types neither: same behavior than pickle. Example:

[issue47139] pthread_sigmask needs SIG_BLOCK behaviour explaination

2022-03-28 Thread Richard Purdie
New submission from Richard Purdie : I've been struggling to get signal.pthread_sigmask to do what I expected it to do from the documentation. Having looked at the core python code handling signals I now (think?!) I understand what is happening. It might be possible for python to improve the

[issue47140] configure --enable-optimizations with clang *12* fails to detect llvm-profdata

2022-03-28 Thread Ofek Shilon
New submission from Ofek Shilon : Working on 3/228/2022 github trunk in Ubuntu20. If I use the shipped clang10 : $ ./configure --enable-optimizations succeeds. If however I - $ export CC=clang-12 `configure` starts to fail with symptoms identical to https://bugs.python.org/issue36002:

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Maciej Olko
Maciej Olko added the comment: I've update both PRs to contain the pin only. -- ___ Python tracker ___ ___ Python-bugs-list

[issue47141] EmailMessage may lack Mime-Version

2022-03-28 Thread Vlastimil Zíma
New submission from Vlastimil Zíma : When an `EmailMessage` is created without setting its content, it may lack the `MIME-Version` header. I encountered this behavior when creating a S/MIME signed message, but I believe it applies to any `EmailMessage` in general. Example: from

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Maciej Olko
Change by Maciej Olko : -- keywords: +patch nosy: +Maciej Olko nosy_count: 2.0 -> 3.0 pull_requests: +30231 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32111 ___ Python tracker

[issue47138] Bump Sphinx or pin Jinja2 to fix docs build

2022-03-28 Thread Maciej Olko
Change by Maciej Olko : -- pull_requests: +30232 pull_request: https://github.com/python/cpython/pull/32109 ___ Python tracker ___

[issue47137] MemoryError

2022-03-28 Thread Eric V. Smith
Eric V. Smith added the comment: A simpler reproducer is: codeop.compile_command('[' * 100) Verified I get MemoryError on cygwin PYthon 3.8.12. A length of 99 does not show a problem. On Windows 3.11.0a5+, I get: >>> codeop.compile_command('[' * 201) Traceback (most recent call last):

[issue45953] Statically allocate interpreter states as much as possible.

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > Should sys.getrefcount try to "fix" the value (...) https://peps.python.org/pep-0683/ would make it possible. Right now, I don't think that it's possible. Right now, a refcount of 100210 can be a real value, or it can be an immortal object.

[issue47124] explore hashlib use of the Apple CryptoKit macOS

2022-03-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: SecDigestTransformCreate() is probably a relevant API to look into, this seems to be supported from 10.7 until now. A major disadvantage for us of this API is that it is a CoreFoundation API and because of that is problematic in pre-forking scenario's

[issue47137] MemoryError

2022-03-28 Thread qiu
qiu <1425166...@qq.com> added the comment: y -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Irit Katriel
Irit Katriel added the comment: That's a good point. I see that the __future__ imports appear in the dir() of the module, and indeed they are imported with 'from m import *'. But I wonder if that is actually a bug. If you try this: % cat x.py from __future__ import annotations % cat

[issue47142] Document importlib.resources.abc.Traversable

2022-03-28 Thread Petr Viktorin
New submission from Petr Viktorin : importlib.resources.files is documented [0] as returning importlib.resources.abc.Traversable, which is an undocumented class (dead link) now. It should be documented. The [source] has helpful docstrings, but is missing some details. I'd like to know these

[issue47115] Documentation inconsistency with the stable ABI

2022-03-28 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks for the report! You're right that this is misleading. I'll clarify the docs for this and other structs. - struct PyTypeObject is part if the limited API. - its fields and size are not part of the API or stable ABI. --

[issue47142] Document importlib.resources.abc.Traversable

2022-03-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: docs@python -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 25c40bd994aa0da75283c5efdd71ba26c734b67e by Hugo van Kemenade in branch '3.9': bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32153) https://github.com/python/cpython/commit/25c40bd994aa0da75283c5efdd71ba26c734b67e

[issue43224] Add support for PEP 646

2022-03-28 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +30237 pull_request: https://github.com/python/cpython/pull/32159 ___ Python tracker ___

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: See also the types.new_class() function: https://docs.python.org/dev/library/types.html#types.new_class Oh, I didn't know this function! -- ___ Python tracker

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > * old fixed attrs issue: https://github.com/python-attrs/attrs/issues/102 > * attrs issue with Python 3.11: > https://github.com/python-attrs/attrs/issues/907 > * dataclasses issues with slots=True: https://bugs.python.org/issue46404 Similar bug without

[issue29944] Argumentless super() fails in classes constructed with type()

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-47143 "Add functools.copy_class() which updates closures". -- nosy: +vstinner ___ Python tracker ___

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: bpo-32176 "Zero argument super is broken in 3.6 for methods with a hacked __class__ cell" added test_code.test_closure_injection() and fixed the CO_NOFREE flag in the code object constructor (types.CodeType). --

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 25f00bfb264a3197ac91c41cdec15036fd8401f1 by m-aciek in branch '3.7': bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32111) https://github.com/python/cpython/commit/25f00bfb264a3197ac91c41cdec15036fd8401f1 --

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-03-28 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47145] Improve graphlib.TopologicalSort by removing the prepare step

2022-03-28 Thread Larry Hastings
New submission from Larry Hastings : I've maintained my own topological sort class for a while now. The API I came up with (or was it Tim and I?) was adopted for graphlib.TopologicalSort(). Some of my method names are slightly different, but the APIs are so similar, I can do a little

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Ned Deily
Ned Deily added the comment: Thanks, everyone! Merged for 3.10.5, 3.9.13, and 3.7.14. I'll leave the issue in pending state until merged for 3.8.14. -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python

[issue47147] Allow `return yield from`

2022-03-28 Thread Patrick Reader
New submission from Patrick Reader : I would like to be able to use a `yield from` expression in a `return` statement without parentheses, as a small quality of life tweak, i.e.: return yield from gen instead of return (yield from gen) I think this makes sense, since `yield from`

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: The same problem exists at the function level: see bpo-39805: "Copying functions doesn't actually copy them". For example, copy.deepcopy(func) returns func unchanged if it's a function. Example: --- import copy def make_closure(): closure = [] def

[issue47144] Allow setting __classcell__

2022-03-28 Thread Douglas Raillard
Douglas Raillard added the comment: > Would bpo-47143 "Add functools.copy_class() which updates closures" solve > your use case? This looks like a similar issue indeed. If I'm able to copy a class "cleanly" (as defined in this other thread), that may solve the problem (hard to tell

[issue47144] Allow setting __classcell__

2022-03-28 Thread Douglas Raillard
Douglas Raillard added the comment: EDIT: empty_list() is a class method of List, not ContainerBase -- ___ Python tracker ___ ___

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Ned Deily
Ned Deily added the comment: New changeset 9194a7b8990a0feec1209b1e5694df3bf42906d8 by Hugo van Kemenade in branch '3.10': bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32154) https://github.com/python/cpython/commit/9194a7b8990a0feec1209b1e5694df3bf42906d8

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +30236 pull_request: https://github.com/python/cpython/pull/32156 ___ Python tracker ___

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-28 Thread miss-islington
miss-islington added the comment: New changeset 5944807b09717d43bb017f700e8c451dd07199ed by Miss Islington (bot) in branch '3.10': [3.10] bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866) (GH-32140)

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Eric Snow added the comment: There's probably something racy with make. See: https://github.com/python/cpython/runs/5712538599?check_suite_focus=true#step:10:1147 -- ___ Python tracker

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > If I understand correctly, a cell content can be modified since Python 3.7: > since commit 64505a1f6c0af4574e17e823b27ffe24eca44df5 of bpo-30486 Moreover, it's possible to create a cell object since Python 3.8, commit

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: > The same problem exists at the function level: see bpo-39805: "Copying > functions doesn't actually copy them". See also bpo-14369 "make function __closure__ writable". -- ___ Python tracker

[issue14369] make function __closure__ writable

2022-03-28 Thread STINNER Victor
Change by STINNER Victor : -- title: make __closure__ writable -> make function __closure__ writable ___ Python tracker ___ ___

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
New submission from Eric Snow : The "Check if generated files are up to date" GitHub check for PRs has been failing recently. It may also impact local usage of "make regen-all". Example: https://github.com/python/cpython/runs/5719012664 This may be related to gh-32061. -- assignee:

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Module objects are not shown in the help unless they are submodules of the specified module, even if they are imported with the star import. With this precedence I think it is okay to exclude the __future__ annotations as well. --

[issue47147] Allow `return yield from`

2022-03-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, submit an email to python-ideas or python-dev first as this need to be discussed in the mailing lists. -- ___ Python tracker

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2022-03-28 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 1e3132b1c3ebff8d28a6dd353bf217cb97c41e81 by Miss Islington (bot) in branch '3.9': bpo-28516: document contextlib.ExitStack.__enter__ behavior (GH-31636) (GH-32145)

[issue4833] Explicit directories for zipfiles

2022-03-28 Thread Sam Ezeh
Sam Ezeh added the comment: I've submitted the above patch. I created the ZipFile.mkdir function, created the necessary tests and wrote the documentation. I think it is ready for review. -- Added file: https://bugs.python.org/file50705/sam_ezeh.patch

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset dae09c2b819c2683ad870733451c050b59c3eb93 by Miss Islington (bot) in branch '3.9': [3.9] bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866) (GH-32140) (GH-32156)

[issue45953] Statically allocate interpreter states as much as possible.

2022-03-28 Thread Guido van Rossum
Guido van Rossum added the comment: I used 9 in deepfreeze.py to signify "immortal object". It has been copied by others (small integers are essentially immortal too). I wasn't too sure that the refcount wouldn't go below zero if the interpreter is repeatedly finalized and

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Eric Snow added the comment: New changeset 4c116f716bd1c174d6530b9a7a5ed3863927a109 by Eric Snow in branch 'main': bpo-47146: Eliminate a race between make regen-deepfreeze and make regen-global-objects. (gh-32162)

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Irit Katriel
Irit Katriel added the comment: Thank you, Serhiy! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26120] pydoc: move __future__ imports out of the DATA block

2022-03-28 Thread Irit Katriel
Irit Katriel added the comment: New changeset 15ba8167d78f9e66bd5b07c4e5cbb0463460310a by Irit Katriel in branch 'main': bpo-26120: make pydoc exclude __future__ imports from the data block of the module (GH-30888)

[issue47129] Improve errors messages in f-string syntax errors

2022-03-28 Thread Maciej Górski
Maciej Górski added the comment: Thanks for helping me with my very first python contribution! @eric.smith @lys.nikolaou -- ___ Python tracker ___

[issue4833] Explicit directories for zipfiles

2022-03-28 Thread Sam Ezeh
Change by Sam Ezeh : -- keywords: +patch pull_requests: +30238 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32160 ___ Python tracker

[issue47147] Allow `return yield from`

2022-03-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: In general, anything changing the python syntax needs to be discussed in the mailing lists and it may likely need a PEP as well, even if is minor. This is because this has consequences rippling the whole ecosystem, from IDEs to other parsers and this

[issue4833] Explicit directories for zipfiles

2022-03-28 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman versions: +Python 3.11 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower nosy_count: 4.0 -> 5.0 pull_requests: +30239 status: pending -> open pull_request: https://github.com/python/cpython/pull/32161 ___ Python tracker

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +30240 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32162 ___ Python tracker

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Steve Dower
Steve Dower added the comment: New changeset 295114dcd32b3aad5453e5e15e9e1befa0e5ca01 by Steve Dower in branch 'main': bpo-47138: Ensure Windows docs build uses the same pinned version as other platforms (GH-32161)

[issue47137] MemoryError in codeop.compile_command

2022-03-28 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +pablogsal title: MemoryError -> MemoryError in codeop.compile_command versions: +Python 3.8 ___ Python tracker ___

[issue47138] Pin Jinja2 to fix docs build

2022-03-28 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +30241 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/32163 ___ Python tracker ___

[issue47146] PR check "Check if generated files are up to date" failing intermittently

2022-03-28 Thread Eric Snow
Eric Snow added the comment: Looks like that fixed it, per https://github.com/python/cpython/pull/32134. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue47129] Improve errors messages in f-string syntax errors

2022-03-28 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 7b44ade018cfe6f54002a3cee43e8aa415d4d635 by Maciej Górski in branch 'main': bpo-47129: Add more informative messages to f-string syntax errors (32127) https://github.com/python/cpython/commit/7b44ade018cfe6f54002a3cee43e8aa415d4d635 --

[issue43818] Email does not apply policy to multipart messages with defects

2022-03-28 Thread Martin Dengler
Martin Dengler added the comment: Possible related to https://github.com/python/cpython/pull/32137 and https://bugs.python.org/issue43323 -- ___ Python tracker ___

[issue47147] Allow `return yield from`

2022-03-28 Thread Patrick Reader
Patrick Reader added the comment: Ok, will do, but what is the bar for a feature to need to go to the mailing lists first? I thought as this was a relatively minor one it wouldn't need to. Is it just because it's an actual syntax change? -- ___

[issue45953] Statically allocate interpreter states as much as possible.

2022-03-28 Thread Julien Palard
Julien Palard added the comment: Hum, and why 9? I am probably missing something obvious but 1 should be enough to ensure the value never hits 0. Except for refcount bugs obviously, but I don't think this is the right reason? -- ___

[issue47129] Improve errors messages in f-string syntax errors

2022-03-28 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, @macgors! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2022-03-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5c30388f3c586ba2f33e349e22e5949cb92de621 by Vincent Bernat in branch 'main': bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131) https://github.com/python/cpython/commit/5c30388f3c586ba2f33e349e22e5949cb92de621

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2022-03-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +30243 pull_request: https://github.com/python/cpython/pull/32165 ___ Python tracker ___

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2022-03-28 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +30242 pull_request: https://github.com/python/cpython/pull/32164 ___ Python tracker

[issue47143] Add functools.copy_class() which updates closures

2022-03-28 Thread STINNER Victor
STINNER Victor added the comment: Note: Implementing a metaclass in Python is hard, it's easy to mess up with closures: see bpo-29270 "ctypes: fail to create a _ctypes._SimpleCData subclass using a closure like calling super() without arguments". type.__new__() is called twice on the same

  1   2   >