[issue23689] Memory leak in Modules/sre_lib.h

2022-03-31 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +30298 pull_request: https://github.com/python/cpython/pull/32223 ___ Python tracker ___ ___

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

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

[issue47120] Make all jump opcodes relative

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

[issue46841] Inline bytecode caches

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

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2022-03-31 Thread Yury Selivanov
Yury Selivanov added the comment: > I have a feeling that we need a low-level API section that describes > *supported* API that is intended to task extenders only (guys who want to > provide an alternative task factory for example). I'm not sure how exposing all private methods spiraled out

[issue47167] Allow overriding future-task compliance check in asyncio

2022-03-31 Thread Yury Selivanov
Yury Selivanov added the comment: Sorry, I don't like the committed change and I think it should be reverted. Futures and Tasks have a documented `get_loop()` method which simply should be called by Task machinery, without the need to expose (and document) private methods. --

[issue47167] Allow overriding future-task compliance check in asyncio

2022-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset d4bb38f82bf18b00db3129031ce4969b6f0caab9 by Andrew Svetlov in branch 'main': bpo-47167: Allow overriding a future compliance check in asyncio.Task (GH-32197) https://github.com/python/cpython/commit/d4bb38f82bf18b00db3129031ce4969b6f0caab9

[issue47167] Allow overriding future-task compliance check in asyncio

2022-03-31 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue47120] Make all jump opcodes relative

2022-03-31 Thread Brandt Bucher
Brandt Bucher added the comment: Another benefit of this work is that we'll be able to remove `first_instr` from the eval loop. -- ___ Python tracker ___

[issue47151] subprocess fails when used as init, vfork() returns EINVAL if PID=1

2022-03-31 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue47120] Make all jump opcodes relative

2022-03-31 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2022-03-31 Thread EZ
EZ added the comment: First, I hope we all agree: 'C:\Windows' and '/usr/bin' == absolute path 'Windows' and 'bin' == relative path 'C:\Program Files' and '/bin' == absolute path 'C:\Windows\..\Program Files' and '/usr/../bin' == relative path It is very confusing between these two, but

[issue46841] Inline bytecode caches

2022-03-31 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +30297 pull_request: https://github.com/python/cpython/pull/3 ___ Python tracker ___

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-03-31 Thread Senthil Kumaran
Senthil Kumaran added the comment: I will review this in a day. I had been following the conversation, but couldn't look deeper into the code. Thank you for engaging and contributions. -- ___ Python tracker

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-03-31 Thread Ethan Furman
Ethan Furman added the comment: Sounds good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-03-31 Thread Éric Araujo
Éric Araujo added the comment: I would like to know what Senthil is thinking before the PR with options à la carte are merged! -- ___ Python tracker ___

[issue44159] mimetypes - "strict" on Windows

2022-03-31 Thread Mark Dong
Mark Dong added the comment: Hi, I want to follow up on this: On Linux (Ubuntu 20.04.4 LTS), the module also loads everything it finds in the registries (a.k.a, entries in the "knownfiles" variable) in "strict" mode, even though some of them aren't registered in IANA. (I'm assuming that

[issue47120] Make all jump opcodes relative

2022-03-31 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +30296 pull_request: https://github.com/python/cpython/pull/32221 ___ Python tracker ___

[issue47151] subprocess fails when used as init, vfork() returns EINVAL if PID=1

2022-03-31 Thread miss-islington
miss-islington added the comment: New changeset 9ed179b07df6ce7432f972f5d069a7c8dee56e79 by Miss Islington (bot) in branch '3.10': bpo-47151: Fallback to fork when vfork fails in subprocess. (GH-32186) https://github.com/python/cpython/commit/9ed179b07df6ce7432f972f5d069a7c8dee56e79

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2022-03-31 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10, Python 3.9 ___ Python tracker ___

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2022-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset ab89ccff3ca6efc2a8e6f5f45c30d568fb3d212f by Andrew Svetlov in branch 'main': bpo-45099: Document asyncio internal API (GH-32166) https://github.com/python/cpython/commit/ab89ccff3ca6efc2a8e6f5f45c30d568fb3d212f --

[issue46111] test_unittest fails in optimized mode

2022-03-31 Thread Ezio Melotti
Change by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40469] TimedRotatingFileHandler rotating on use not time

2022-03-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: See this thread on Discuss: https://discuss.python.org/t/logging-timedrotatingfilehandler-never-rotates-in-certain-cases/14747/1 -- nosy: +steven.daprano ___ Python tracker

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

2022-03-31 Thread Eric Snow
Eric Snow added the comment: Specifically: https://github.com/python/cpython/actions/workflows/build.yml. -- status: pending -> open ___ Python tracker ___

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

2022-03-31 Thread Eric Snow
Eric Snow added the comment: I'll keep an eye on PRs for the next day or so. -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python tracker

[issue47151] subprocess fails when used as init, vfork() returns EINVAL if PID=1

2022-03-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +30295 pull_request: https://github.com/python/cpython/pull/32219 ___ Python tracker

[issue47151] subprocess fails when used as init, vfork() returns EINVAL if PID=1

2022-03-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 4a08c4c469d36f99d3a5e0f17ad82ab35dcf2835 by Gregory P. Smith in branch 'main': bpo-47151: Fallback to fork when vfork fails in subprocess. (GH-32186) https://github.com/python/cpython/commit/4a08c4c469d36f99d3a5e0f17ad82ab35dcf2835

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

2022-03-31 Thread Eric Snow
Eric Snow added the comment: New changeset e7bb7c2f047b4f97e4426c42ae209c969808069d by Eric Snow in branch 'main': bpo-47146: Stop Depending On regen-deepfreeze For regen-global-objects (gh-32218) https://github.com/python/cpython/commit/e7bb7c2f047b4f97e4426c42ae209c969808069d --

[issue47183] Cant compile html docs

2022-03-31 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> works for me status: open -> pending ___ Python tracker ___ ___ Python-bugs-list

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

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

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Great, thanks :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47151] subprocess fails when used as init, vfork() returns EINVAL if PID=1

2022-03-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks. I had wondered if this was really a pid=1 restriction or not, but I could definitely imagine kernel scenarios where vfork is simply forbidden regardless. There are a variety of policy mechanisms in kernels, mainline Linux or not, that _could_ do

[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-03-31 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47176] Interrupt handling for wasm32-emscripten builds without pthreads

2022-03-31 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45886] Fix Program/_freeze_module for cross compiling Python

2022-03-31 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23325] Turn SIG_DFL and SIG_IGN into functions

2022-03-31 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47184] multiprocessing.set_start_method force argument is not documented

2022-03-31 Thread John Hagen
New submission from John Hagen : multiprocessing.set_start_method() has a `force` argument that is not documented: https://docs.python.org/3.10/library/multiprocessing.html#multiprocessing.set_start_method -- assignee: docs@python components: Documentation messages: 416451 nosy: John

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-31 Thread Steve Dower
Steve Dower added the comment: Done. Feel free to push directly to the repo, and bear in mind that changes may be reflected in any version build at any point, which is why we use tags (ahem... mostly... we've gotten it wrong before). Fourth field of the version number is our private one, so

[issue47172] Make virtual opcodes in the compiler negative and is_jump() identify only proper jumps

2022-03-31 Thread Irit Katriel
Change by Irit Katriel : -- title: Make virtual opcodes in the compiler > 256 and is_jump() identify only proper jumps -> Make virtual opcodes in the compiler negative and is_jump() identify only proper jumps ___ Python tracker

[issue47183] Cant compile html docs

2022-03-31 Thread Zachary Ware
Zachary Ware added the comment: You have a rather old version of Sphinx; the 3.11 docs are built with v4.5.0. Try `make clean-venv venv html`? -- nosy: +zach.ware ___ Python tracker

[issue47183] Cant compile html docs

2022-03-31 Thread mike mcleod
New submission from mike mcleod : After sync'ing to upstream/main and then python/Doc on  main via  v3.11.0a6+ ❯ make html mkdir -p build Building NEWS from Misc/NEWS.d with blurb PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -W . build/html Running Sphinx v3.5.4 building

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-03-31 Thread Mark Shannon
Mark Shannon added the comment: New changeset 74b95d86e0f14603f878c4df3133bc8a93f8f80a by Mark Shannon in branch 'main': bpo-40421: Add missing getters for frame object attributes to C-API. (GH-32114) https://github.com/python/cpython/commit/74b95d86e0f14603f878c4df3133bc8a93f8f80a

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-31 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Erlend - would you be up for write permissions on the cpython-source-deps > repo so you can push the SQLite updates yourself. Yep, I’m fine with that. -- ___ Python tracker

[issue32658] Metacharacter (\) documentation suggestion

2022-03-31 Thread mike mcleod
mike mcleod added the comment: After sync'ing to upstream/main and then running make html I get: ... checking consistency... done preparing documents... failed Warning, treated as error: unsupported theme option 'license_url' given make: *** [Makefile:53: build] Error 2 I cant see anything

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

2022-03-31 Thread Eric Snow
Eric Snow added the comment: Brandt pointed out this is consistently reproducible locally: make clean regen-all -j I'll get this sorted out today. -- ___ Python tracker

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

2022-03-31 Thread Eric Snow
Eric Snow added the comment: I re-ran jobs that had failed before I merged that gh-32206. Several passed, but the following are still failing: * https://github.com/python/cpython/pull/32188 + https://github.com/python/cpython/runs/5773938424 * https://github.com/python/cpython/pull/32132

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-31 Thread Steve Dower
Steve Dower added the comment: Erlend - would you be up for write permissions on the cpython-source-deps repo so you can push the SQLite updates yourself. As I've mentioned before, merging PRs into that repo isn't any easier than doing it directly (since you also need to check file hashes

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-03-31 Thread Christian Heimes
Change by Christian Heimes : -- versions: -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-03-31 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30293 pull_request: https://github.com/python/cpython/pull/32217 ___ Python tracker ___

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-03-31 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30292 pull_request: https://github.com/python/cpython/pull/32216 ___ Python tracker ___

[issue47158] logging.handlers.SysLogHandler doesn't get cleaned up properly on exit if it throws an exception

2022-03-31 Thread Enji Cooper
Enji Cooper added the comment: Grégory: that will fix this issue, but what I really need is some of the other changes, like moving the getaddrinfo logic into a separate route (connect). -- ___ Python tracker

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-03-31 Thread miss-islington
miss-islington added the comment: New changeset 44e915028d75f7cef141aa1aada962465a5907d6 by Christian Heimes in branch 'main': bpo-47182: Fix crash by named unicode characters after interpreter reinitialization (GH-32212)

[issue47083] The __complex__ method is missing from the complex, float, and int built-in types

2022-03-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47178] Improve the implementations of Sequence.index and MutableSequence.extend in collections.abc

2022-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking as closed because the changes are incorrect. See the comments in the PR. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python

[issue47120] Make all jump opcodes relative

2022-03-31 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +30291 pull_request: https://github.com/python/cpython/pull/32215 ___ Python tracker ___

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread miss-islington
miss-islington added the comment: New changeset 98d57737de73342d33d1b90dc0285f586465d22b by Miss Islington (bot) in branch '3.9': bpo-14911: Corrected generator.throw() documentation (GH-32207) https://github.com/python/cpython/commit/98d57737de73342d33d1b90dc0285f586465d22b --

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread miss-islington
miss-islington added the comment: New changeset 625f6704c0d783360574bbab2f78b0b9bbed5891 by Miss Islington (bot) in branch '3.10': bpo-14911: Corrected generator.throw() documentation (GH-32207) https://github.com/python/cpython/commit/625f6704c0d783360574bbab2f78b0b9bbed5891 --

[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +30290 pull_request: https://github.com/python/cpython/pull/32214 ___ Python tracker ___

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +30289 pull_request: https://github.com/python/cpython/pull/32213 ___ Python tracker

[issue14911] generator.throw() documentation inaccurate

2022-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 8be7c2bc5ad5e295f0f855bb31db412eef2c7c92 by Dave Goncalves in branch 'main': bpo-14911: Corrected generator.throw() documentation (GH-32207) https://github.com/python/cpython/commit/8be7c2bc5ad5e295f0f855bb31db412eef2c7c92 -- nosy:

[issue47179] pymalloc should align to max_align_t

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: Oh, it seems like this issue is a duplicate of bpo-31912 created in 2017. -- ___ Python tracker ___

[issue47179] pymalloc should align to max_align_t

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: Objects/obmalloc.c currently relies on the SIZEOF_VOID_P macro: --- #if SIZEOF_VOID_P > 4 #define ALIGNMENT 16 /* must be 2^N */ #define ALIGNMENT_SHIFT 4 #else #define ALIGNMENT 8 /* must be 2^N

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-03-31 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +30288 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32212 ___ Python tracker

[issue47179] pymalloc should align to max_align_t

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: On my x86-64 Fedora 35, gcc says 32 bytes for sizeof(max_align_t). By the way, g++ also says 32 bytes for sizeof(std::max_align_t). GCC 11.2.1 defines max_align_t as: --- #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \ ||

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-03-31 Thread Christian Heimes
New submission from Christian Heimes : unicodeobject.c has a static pointer to a unicode name CAPI capsule: static _PyUnicode_Name_CAPI *ucnhash_capi = NULL; The capsule is initialized on demand when the parser encounters a named unicode representation like "\N{digit nine}". Once the

[issue47120] Make all jump opcodes relative

2022-03-31 Thread Mark Shannon
Mark Shannon added the comment: New changeset a00518d9ad9a8f408a9699191019d75dd8406c32 by Irit Katriel in branch 'main': bpo-47120: Replace the JUMP_ABSOLUTE opcode by the relative JUMP_BACKWARD (GH-32115) https://github.com/python/cpython/commit/a00518d9ad9a8f408a9699191019d75dd8406c32

[issue47158] logging.handlers.SysLogHandler doesn't get cleaned up properly on exit if it throws an exception

2022-03-31 Thread Grégory Starck
Grégory Starck added the comment: Enji : you can use this then: ``` In [6]: class Fixed(logging.handlers.SysLogHandler): ...: def __init__(self, *a, **kw): ...: self.socket = None ...: super().__init__(*a, **kw) ...: def close(self): ...: if

[issue46907] Update Windows and MacOS installer to SQLite 3.38.2

2022-03-31 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: https://sqlite.org/src/info/336851b191fe79f0 was merged to the 3.38 branch, so we should expect 3.38.3 in the coming days. -- ___ Python tracker

[issue44740] Lowercase "Internet" and "web" in docs

2022-03-31 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue44740] Lowercase "Internet" and "web" in docs

2022-03-31 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47166] Dataclass transform should ignore TypeAlias variables

2022-03-31 Thread Eric V. Smith
Eric V. Smith added the comment: Same question as Alex: what does the TypeAlias being inside the class offer that being at module level doesn't? -- ___ Python tracker ___

[issue47158] logging.handlers.SysLogHandler doesn't get cleaned up properly on exit if it throws an exception

2022-03-31 Thread Vinay Sajip
Vinay Sajip added the comment: The 3.8 branch is security-fix-only now, I'm afraid. And I'm not sure it's worth backporting this. -- versions: -Python 3.8 ___ Python tracker

[issue47166] Dataclass transform should ignore TypeAlias variables

2022-03-31 Thread Alex Waygood
Alex Waygood added the comment: I think implementing this would add complexity to the code in dataclasses.py (though Eric's the expert!). For your use case, is it essential that the type alias declaration be inside the class scope? Would it be possible for you to simply have the alias

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2022-03-31 Thread miss-islington
miss-islington added the comment: New changeset b36d222110d0d6d84dc8e973ca87d976c2423f5d by Erlend Egeberg Aasland in branch 'main': bpo-45847: Port _tkinter to PY_STDLIB_MOD (GH-31698) https://github.com/python/cpython/commit/b36d222110d0d6d84dc8e973ca87d976c2423f5d --

[issue47181] error: impossible constraint in ‘asm’

2022-03-31 Thread Christian Heimes
Christian Heimes added the comment: Could you please attach your config.log file? -- nosy: +christian.heimes ___ Python tracker ___

[issue47181] error: impossible constraint in ‘asm’

2022-03-31 Thread gerald honk
New submission from gerald honk : On CentOS7 gcc 4.8.5 compiler it dosen't work run ./configure --enable-ipv6 --enable-shared --with-dbmliborder=gdbm:ndbm:bdb --with-computed-gotos=yes --with-system-expat --with-system-ffi --enable-loadable-sqlite-extensions --with-dtrace --with-lto

[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Géry
New submission from Géry : Registering `weakref.WeakSet` as a subtype of `_collections_abc.MutableSet` implies that it is also a subtype of `_collections_abc.Set` since `_collections_abc.MutableSet` is a subtype of `_collections_abc.Set` and the subtype relation is transitive. --

[issue47179] pymalloc should align to max_align_t

2022-03-31 Thread Petr Viktorin
New submission from Petr Viktorin : malloc() returns memory that's "suitably aligned for any built-in type". All of Python's allocation functions should do the same. In bpo-27987 (PR-12850, PR-13336), the alignment was raised* to 16 bytes and `long double`. This is OK for current

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-03-31 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +Interrupt handling for wasm32-emscripten builds without pthreads ___ Python tracker ___

[issue47176] Interrupt handling for wasm32-emscripten builds without pthreads

2022-03-31 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-03-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30286 pull_request: https://github.com/python/cpython/pull/32210 ___ Python tracker ___

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7fc39a21cb85163a456eab91b52e5fe85e7f7e3e by Victor Stinner in branch 'main': bpo-47164: Add _PyCFunctionObject_CAST() macr (GH-32190) https://github.com/python/cpython/commit/7fc39a21cb85163a456eab91b52e5fe85e7f7e3e --

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset f0bc69485677ae8973685866ada0982976d3878f by Victor Stinner in branch 'main': bpo-47164: Add _PyCFunction_CAST() macro (GH-32192) https://github.com/python/cpython/commit/f0bc69485677ae8973685866ada0982976d3878f --

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset c14d7e4b816134b8e93ece4066a86d229631ce96 by Victor Stinner in branch 'main': bpo-47164: Add _PyASCIIObject_CAST() macro (GH-32191) https://github.com/python/cpython/commit/c14d7e4b816134b8e93ece4066a86d229631ce96 --

[issue47164] [C API] Add private "CAST" macros to clean up casts in C code

2022-03-31 Thread STINNER Victor
STINNER Victor added the comment: After reading Mark's comments, I reworked my GH-32190 PR to only use the CAST macros in other macros, not in the C code. The CAST macros are not used in such code pattern: else if (PyCFunction_Check(func)) -return

[issue47151] subprocess fails when used as init, vfork() returns EINVAL if PID=1

2022-03-31 Thread Марк Коренберг
Марк Коренберг added the comment: Well. 1. We use Python as PID 1. In PID namespace. 2. Further investigation gave information that vfork()+pid=1 actually WORKS. The problem is connected with another weird thing in kernel (undocumented unshare() flags). 3. The logic to try fork() after