[issue47198] os.stat on windows doesn't take an open file even though os.stat in os.supports_fd

2022-04-01 Thread Eryk Sun
Eryk Sun added the comment: You're mistaken about what `fd` is. It's a TextIOWrapper, which wraps a BufferedWriter, which buffers a FileIO raw file object, which accesses the open file number fd.fileno(). For example: >>> f = open('tmp.tmp','w') >>> os.stat(f.fileno()).st_size 0

[issue47198] os.stat on windows doesn't take an open file even though os.stat in os.supports_fd

2022-04-01 Thread Joe Cool
New submission from Joe Cool : os.stat on windows doesn't take an open file even though os.stat in os.supports_fd >>> fd = open('tmp.tmp', 'w') >>> fd <_io.TextIOWrapper name='tmp.tmp' mode='w' encoding='cp1252'> >>> os.stat(fd) Traceback (most recent call last): File "", line 1, in

[issue47190] Integrating tkinter and asyncio event loops

2022-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did some somewhat similar experiments a few years ago. I will try to find the code sometime. -- nosy: +terry.reedy ___ Python tracker

[issue47188] ncurses: *** buffer overflow detected ***: terminated with -D_FORTIFY_SOURCE=3

2022-04-01 Thread Siddhesh Poyarekar
Change by Siddhesh Poyarekar : -- nosy: +siddhesh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44660] email.feedparser: support RFC 6532 section 3.5

2022-04-01 Thread Francis Johnson
Francis Johnson added the comment: Hello, I haven't had the time to complete @r.david.murrary's recommendation and unfortunately don't anticipate that I will for now. Any objection to me resubmitting the pull request as-is? Alone, it still delivers business value so to speak. Thanks

[issue47147] Allow `return yield from`

2022-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this should be closed as rejected, and that Patrick should remove the 'return's that are in front of 'yield from ...'. Then 'yield from x' will be a statement, not an expression, and the ()s will not be needed, as they are used to

[issue47162] Add call trampoline to work around bad fpcasts on Emscripten

2022-04-01 Thread Hood Chatham
Hood Chatham added the comment: Actually, I think the _PyImport_InitFunc trampoline call is only there as a work around for the problematic `test_imp` and `test_import` Python tests. I don't know of any third party code with a problem there. --

[issue47197] ctypes mishandles `void` return type

2022-04-01 Thread Hood Chatham
Change by Hood Chatham : -- keywords: +patch nosy: +hoodmane nosy_count: 2.0 -> 3.0 pull_requests: +30317 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32246 ___ Python tracker

[issue47131] Speedup test_unparse

2022-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0f68c208fa6a36b6c8ad3d775e64292a665ba108 by Jeremy Kloth in branch 'main': bpo-47131: Speedup AST comparisons in test_unparse by using node traversal (GH-32132)

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks for this enhancement. I close the issue. Do you know if it does fix the old bpo-37387 issue? -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 306a93b4819db611041da735ca3b34117a3bc961 by Jeremy Kloth in branch '3.9': [3.9] bpo-47089: Avoid test_compileall failures on Windows (GH-32037). (GH-32240) https://github.com/python/cpython/commit/306a93b4819db611041da735ca3b34117a3bc961

[issue12387] IDLE save keyboard shortcut problem

2022-04-01 Thread David Goncalves
Change by David Goncalves : -- nosy: +dpg nosy_count: 9.0 -> 10.0 pull_requests: +30316 pull_request: https://github.com/python/cpython/pull/32245 ___ Python tracker ___

[issue47197] ctypes mishandles `void` return type

2022-04-01 Thread Hood Chatham
New submission from Hood Chatham : On wasm targets, `test_code` fails. It's because of a bad function pointer cast. The problematic code is as follows: ```py import ctypes py = ctypes.pythonapi freefunc = ctypes.CFUNCTYPE(None, ctypes.c_voidp) RequestCodeExtraIndex =

[issue47196] Function pointer cast in test_imp

2022-04-01 Thread Hood Chatham
Hood Chatham added the comment: Every other `PyInit` function in that module also needs the spec argument to be removed in order for test_importlib to pass. -- ___ Python tracker

[issue47196] Function pointer cast in test_imp

2022-04-01 Thread Hood Chatham
Change by Hood Chatham : -- keywords: +patch nosy: +hoodmane nosy_count: 2.0 -> 3.0 pull_requests: +30315 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32244 ___ Python tracker

[issue47196] Function pointer cast in test_imp

2022-04-01 Thread Hood Chatham
New submission from Hood Chatham : The function PyInit_imp_dummy is declared as void f(PyObject* spec) and ignores the argument. In the test, it is called via imp.load_dynamic as void f(void). On wasm targets without the call trampolines added in https://bugs.python.org/issue47162 this

[issue47152] Reorganize the re module sources

2022-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: 1. If we're reorganizing anyway, I see no reason to keep the old names. 2. For maximum backwards compatibility, I'd say keep as much as you can, as long as keeping it won't interfere with the reorganization. --

[issue47162] Add call trampoline to work around bad fpcasts on Emscripten

2022-04-01 Thread Hood Chatham
Hood Chatham added the comment: As an update, building the chrome devtools with the wasm limit set to 12Mb following that guide worked fantastic. Highly recommend it. (Though there are a few paths that are out of date, I had to consult google's devtools docs.) The problem is that

[issue47162] Add call trampoline to work around bad fpcasts on Emscripten

2022-04-01 Thread Hood Chatham
Hood Chatham added the comment: I'm having trouble pinpointing the bad function pointer because chrome cuts off the end of the wasm file with: ``` ;; text is truncated due to size ``` Maybe I should follow the directions here, since this is a consistent nuisance.

[issue47162] Add call trampoline to work around bad fpcasts on Emscripten

2022-04-01 Thread Christian Heimes
Christian Heimes added the comment: Interesting, can you pin point the buggy function pointer? If you link with -gsource-map and deploy the map file, your browser should give you a decent stack trace. -- ___ Python tracker

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

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30314 pull_request: https://github.com/python/cpython/pull/32243 ___ Python tracker ___

[issue47135] Allow decimal.localcontext to accept keyword arguments to set context attributes

2022-04-01 Thread Sam Ezeh
Change by Sam Ezeh : -- pull_requests: +30313 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32242 ___ Python tracker ___

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-04-01 Thread miss-islington
miss-islington added the comment: New changeset 1069d529590850e87a11b8c559a7fb296e9c626a by Miss Islington (bot) in branch '3.10': bpo-47089: Avoid test_compileall failures on Windows (GH-32037) https://github.com/python/cpython/commit/1069d529590850e87a11b8c559a7fb296e9c626a --

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: Guido (msg416498) > Surely the bigger issue is that the contents of new_code itself must be > totally different? Also there are other tables that need to be adjusted if > you really do change co_code, e.g. the debugging tables. Do you consider that

[issue47192] sys._getframe audit event has frame as argument in 3.8-3.10

2022-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47195] importlib lock race issue in deadlock handling code

2022-04-01 Thread Richard Purdie
New submission from Richard Purdie : We've seen tracebacks in production like: File "", line 1004, in _find_and_load(name='oe.gpg_sign', import_=) File "", line 158, in _ModuleLockManager.__enter__() File "", line 110, in _ModuleLock.acquire() KeyError: 139622474778432 and File

[issue47191] inspect - getasyncgeneratorstate, getasyncgeneratorlocals

2022-04-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems to be duplicate of https://bugs.python.org/issue35759 -- nosy: +xtreak ___ Python tracker ___

[issue46023] Modules/makesetup generated rules ignore *disabled*

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue47174] Define behavior of descriptor-typed fields on dataclasses

2022-04-01 Thread mike bayer
Change by mike bayer : -- nosy: +zzzeek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47162] Add call trampoline to work around bad fpcasts on Emscripten

2022-04-01 Thread Hood Chatham
Hood Chatham added the comment: Note that there are still Python test suite failures in emscripten without these trampolines enabled, for instance test_imp fails. The only trampoline needed to pass the core test suite is _PyImport_InitFunc_TrampolineCall. -- nosy: +hoodchatham

[issue47194] Upgrade to zlib v1.2.12 in CPython binary releases

2022-04-01 Thread Zachary Ware
Change by Zachary Ware : -- keywords: +patch pull_requests: +30312 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32241 ___ Python tracker

[issue47135] Allow decimal.localcontext to accept keyword arguments to set context attributes

2022-04-01 Thread Sam Ezeh
Sam Ezeh added the comment: This is what functionality looks like when supplying incorrect attribute names with the patch. Python 3.11.0a6+ (heads/bpo-47135-dirty:d4bb38f82b, Apr 1 2022, 20:01:56) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information.

[issue47135] Allow decimal.localcontext to accept keyword arguments to set context attributes

2022-04-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm not sure what the implementation uses to enforce this, but decimal contexts already seem to reject arbitrary attributes. So a naive implementation that just setattr()'s the keyword arguments will automatically fail: >>> from decimal import getcontext

[issue47170] py launcher on windows opens new terminal window when parsing python script with shebang

2022-04-01 Thread Eryk Sun
Eryk Sun added the comment: > This is Windows (shell) behaviour. To avoid this, you need to > add the .py extension to the PATHEXT environment variable. PowerShell reuses the current console session only if .PY is set in PATHEXT. Otherwise Python gets executed with a flag that tells the

[issue47135] Allow decimal.localcontext to accept keyword arguments to set context attributes

2022-04-01 Thread Sam Ezeh
Sam Ezeh added the comment: I've uploaded a patch and it seems to work, which I'm very proud of. I'll create some tests, amend documentation and create a news entry. After that, I'll create a pull request on GitHub. -- keywords: +patch Added file:

[issue47193] Use zlib-ng rather than zlib in binary releases

2022-04-01 Thread Oleg Iarygin
Change by Oleg Iarygin : -- nosy: +arhadthedev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47194] Upgrade to zlib v1.2.12 in CPython binary releases

2022-04-01 Thread Gregory P. Smith
New submission from Gregory P. Smith : zlib v1.2.11 as used in Windows binary releases contains a security issue that, while fixed in its git repo years ago, never wound up in a release or a CVE until just now. Folllow the https://www.openwall.com/lists/oss-security/2022/03/24/1 thread and

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

2022-04-01 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +barneygale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-04-01 Thread Christian Heimes
Christian Heimes added the comment: New changeset 082d3495d0c820972f09f6109a98ed7eb5a7b79f by Christian Heimes in branch 'main': bpo-40280: Emscripten fork_exec now fails early (GH-32224) https://github.com/python/cpython/commit/082d3495d0c820972f09f6109a98ed7eb5a7b79f --

[issue47193] Use zlib-ng rather than zlib in binary releases

2022-04-01 Thread Gregory P. Smith
New submission from Gregory P. Smith : zlib-ng is an optimized zlib library with better performance on most architectures (with contributions from the likes of Google, Cloudflare, and Intel). It is API compatible with zlib. https://github.com/zlib-ng/zlib-ng I believe the only platform we

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-04-01 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: +30311 pull_request: https://github.com/python/cpython/pull/32240 ___ Python tracker ___

[issue47135] Allow decimal.localcontext to accept keyword arguments to set context attributes

2022-04-01 Thread Sam Ezeh
Sam Ezeh added the comment: I'm looking into adding this > Seems reasonable to me, but I think a full implementation would want to throw > an error for keyword args that don't already exist as context attributes > (otherwise typos would fail silently) For _pydecimal, I think this would

[issue47192] sys._getframe audit event has frame as argument in 3.8-3.10

2022-04-01 Thread Dutcho
New submission from Dutcho : Documentation (https://docs.python.org/3/library/audit_events.html and https://docs.python.org/3/library/sys.html#sys._getframe) states that `sys._getframe()` "raises [...] an auditing event with no arguments". However, Python 3.8-3.10 provide the frame as

[issue47191] inspect - getasyncgeneratorstate, getasyncgeneratorlocals

2022-04-01 Thread Animatea Animatea
New submission from Animatea Animatea : Create inspect introspection functions for asyncgen. ```py ASYNCGEN_CREATED = 'ASYNCGEN_CREATED' ASYNCGEN_RUNNING = 'ASYNCGEN_RUNNING' ASYNCGEN_SUSPENDED = 'ASYNCGEN_SUSPENDED' ASYNCGEN_CLOSED = 'ASYNCGEN_CLOSED' def

[issue47009] Streamline list.append for the common case

2022-04-01 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +30310 pull_request: https://github.com/python/cpython/pull/32239 ___ Python tracker ___

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

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30309 pull_request: https://github.com/python/cpython/pull/32238 ___ Python tracker ___

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-04-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +30308 pull_request: https://github.com/python/cpython/pull/32237 ___ Python tracker

[issue47089] Avoid sporadic failure of test_compileall on Windows

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 76b8a075b8a79b08468fd0ed06a489a5c815bc11 by Jeremy Kloth in branch 'main': bpo-47089: Avoid test_compileall failures on Windows (GH-32037) https://github.com/python/cpython/commit/76b8a075b8a79b08468fd0ed06a489a5c815bc11 --

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: python-dev thread: https://mail.python.org/archives/list/python-...@python.org/thread/KWSPCLXDHBAP2U4LBSMLQEOC7LREDMPB/ Mark wrote: "You can pass the exception table the same way you pass all the other arguments. The exception table depends on the code, but

[issue47152] Reorganize the re module sources

2022-04-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Modules with old names are kept (deprecated). The questions are: 1. Should we keep the sre_ prefix in new submodules? Should we prefix them with underscores? 2. Should we keep only non-underscored names in the sre_* modules or undescored names too?

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: > How would you compute the exception table from the bytecode? There are no > clues in the bytecode about where the try and except blocks are. Disassemble the bytecode to rebuild basic blocks and detect which ones are except blocks. I don't know how the

[issue47190] Integrating tkinter and asyncio event loops

2022-04-01 Thread Skip Montanaro
New submission from Skip Montanaro : After looking around and asking, it appears there is no built-in integration of the tkinter and asyncio event loops. That would seem to be a good thing, at least as an example. I wrote a simple hello world which creates an AsyncTk class and uses

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: How would you compute the exception table from the bytecode? There are no clues in the bytecode about where the try and except blocks are. -- nosy: +gvanrossum ___ Python tracker

[issue40222] "Zero cost" exception handling

2022-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: > See bpo-47185: code.replace(co_code=new_code) no longer catch exceptions on > Python 3.11. Surely the bigger issue is that the contents of new_code itself must be totally different? Also there are other tables that need to be adjusted if you really do

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47152] Reorganize the re module sources

2022-04-01 Thread Guido van Rossum
Guido van Rossum added the comment: I don't mind reorganizing this, but I would insist that we keep code using old undocumented things (like the sre_* modules) working for several releases, using the standard deprecation approach. -- ___ Python

[issue47189] What's new in Python 3.11: Faster CPython

2022-04-01 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +30307 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32235 ___ Python tracker ___

[issue47189] What's new in Python 3.11: Faster CPython

2022-04-01 Thread Ken Jin
Change by Ken Jin : -- assignee: docs@python components: Documentation nosy: docs@python, kj priority: normal severity: normal status: open title: What's new in Python 3.11: Faster CPython versions: Python 3.11 ___ Python tracker

[issue47161] pathlib method relative_to doesnt work with // in paths

2022-04-01 Thread Barney Gale
Change by Barney Gale : -- nosy: +barneygale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-04-01 Thread Eric Snow
Eric Snow added the comment: Looks like gh-32218 worked. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue47188] ncurses: *** buffer overflow detected ***: terminated with -D_FORTIFY_SOURCE=3

2022-04-01 Thread Martin Liška
New submission from Martin Liška : Note -D_FORTIFY_SOURCE=3 will come newly with GCC12. So I noticed the following error: demo.py: ```python import curses curses.initscr() curses.unget_wch('a') ``` Error message: *** buffer overflow detected ***: terminated Backtrace: #0

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

2022-04-01 Thread Christian Heimes
Christian Heimes added the comment: New changeset 17245c815e44e79d4dad6a99b54000956a4a7229 by Christian Heimes in branch 'main': bpo-40280: Add debug Emscripten flavors (GH-32233) https://github.com/python/cpython/commit/17245c815e44e79d4dad6a99b54000956a4a7229 --

[issue46023] Modules/makesetup generated rules ignore *disabled*

2022-04-01 Thread Christian Heimes
Christian Heimes added the comment: New changeset abdd69c95c1711c2dc75be4e784c6d6c80a409b9 by Christian Heimes in branch 'main': bpo-46023: makesetup: skip all duplicate modules (GH-32234) https://github.com/python/cpython/commit/abdd69c95c1711c2dc75be4e784c6d6c80a409b9 --

[issue47168] Improvements for stable ABI definition files

2022-04-01 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 079143df7e40c4d336cb5c385b166aa91058d050 by Petr Viktorin in branch 'main': bpo-47168: Mark files generated by `make regen-limited-abi` as generated (GH-32195) https://github.com/python/cpython/commit/079143df7e40c4d336cb5c385b166aa91058d050

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-04-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. If you have a more concrete proposal, either re-open this or bring it up on python-ideas. -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

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

2022-04-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2022-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset 997ba5d126f5040d5b7536f73bc89049e9f9421d by Irit Katriel in branch 'main': bpo-47172: Compiler enhancements (GH-32200) https://github.com/python/cpython/commit/997ba5d126f5040d5b7536f73bc89049e9f9421d -- nosy: +Mark.Shannon

[issue47161] pathlib method relative_to doesnt work with // in paths

2022-04-01 Thread Eryk Sun
Eryk Sun added the comment: > Hmm..., I get it, but Im not gonna lie it's pretty confusing given > that in other places `//` works as a substitute for `/`. Maybe it > should be mentioned in the documentation? In Linux, the system resolves "//" as just "/". In other POSIX systems, such as

[issue46023] Modules/makesetup generated rules ignore *disabled*

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30306 pull_request: https://github.com/python/cpython/pull/32234 ___ Python tracker ___

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

2022-04-01 Thread Eryk Sun
Eryk Sun added the comment: > Now a file that doesn't exist: > >>> mike = Path("palin.jpg") > >>> mike.resolve() > WindowsPath('palin.jpg') This is a bug in resolve(). It was fixed in 3.10+ by switching to ntpath.realpath(). I don't remember why a fix for 3.9 was never applied. Work on the

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

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30305 pull_request: https://github.com/python/cpython/pull/32233 ___ Python tracker ___

[issue47187] locale module example is wrong for some platforms

2022-04-01 Thread Sylvain Marie
New submission from Sylvain Marie : The example in the doc shows ```python >>> import locale >>> loc = locale.getlocale() # get current locale # use German locale; name might vary with platform >>> locale.setlocale(locale.LC_ALL, 'de_DE') >>> locale.strcoll('f\xe4n', 'foo') # compare a

[issue38668] Update os.path documentation regarding recommended types

2022-04-01 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch nosy: +jack__d nosy_count: 2.0 -> 3.0 pull_requests: +30304 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32232 ___ Python tracker

[issue32658] Metacharacter (\) documentation suggestion

2022-04-01 Thread Jack DeVries
Jack DeVries added the comment: Did you run ``make venv`` to setup your virtual environment? Sphynx themes are usually pip dependencies, so if you're getting a "missing theme" error, it sounds like your virtual environment is not setup right. -- nosy: +jack__d

[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset 04e07c258f4f2ac85e25355242a113f98a706f04 by Irit Katriel in branch 'main': bpo-47186: Replace JUMP_IF_NOT_EXC_MATCH by CHECK_EXC_MATCH + jump (GH-32231) https://github.com/python/cpython/commit/04e07c258f4f2ac85e25355242a113f98a706f04

[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +30303 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32231 ___ Python tracker ___

[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-01 Thread Irit Katriel
New submission from Irit Katriel : It would help issue47120 to reduce the number of jump opcodes. The exception matching opcodes JUMP_IF_NOT_EXC_MATCH and JUMP_IF_NOT_EG_MATCH are not hot, and we can split them into a check + ordinary jump. For JUMP_IF_NOT_EXC_MATCH this is simple because

[issue46841] Inline bytecode caches

2022-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset ae9de82e321581e1906c6ef2a7ad83ab30ae3325 by Brandt Bucher in branch 'main': bpo-46841: Use a `bytes` object for `_co_code_adaptive` (GH-32205) https://github.com/python/cpython/commit/ae9de82e321581e1906c6ef2a7ad83ab30ae3325 --

[issue32658] Metacharacter (\) documentation suggestion

2022-04-01 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +30302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32230 ___ Python tracker ___

[issue46841] Inline bytecode caches

2022-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset bd2e47c8830d1b2869f2b4345945a5e0c3b4e3fb by Brandt Bucher in branch 'main': bpo-46841: Avoid unnecessary allocations in code object comparisons (GH-3) https://github.com/python/cpython/commit/bd2e47c8830d1b2869f2b4345945a5e0c3b4e3fb

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

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30301 pull_request: https://github.com/python/cpython/pull/32229 ___ Python tracker ___

[issue47009] Streamline list.append for the common case

2022-04-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset a0ea7a116ce52a178c02d42b684089758bd7f355 by Dennis Sweeney in branch 'main': bpo-47009: Streamline list.append for the common case (GH-31864) https://github.com/python/cpython/commit/a0ea7a116ce52a178c02d42b684089758bd7f355 -- nosy:

[issue40222] "Zero cost" exception handling

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: See bpo-47185: code.replace(co_code=new_code) no longer catch exceptions on Python 3.11. -- nosy: +vstinner ___ Python tracker ___

[issue47185] code.replace(co_code=new_code) no longer catch exceptions on Python 3.11

2022-04-01 Thread STINNER Victor
New submission from STINNER Victor : Since bpo-40222 "Zero cost exception handling", code object created by from bytecode with code.replace(co_code=new_code) no longer catch exceptions on Python 3.11, unless an exception table is set explicitly. Example: --- def f(): try:

[issue47183] Cant compile html docs

2022-04-01 Thread mike mcleod
mike mcleod added the comment: Works for me. The command installed the correct version of Sphinx. Thanks. -- stage: -> resolved status: pending -> closed ___ Python tracker

[issue47169] Stable ABI: Some optional (#ifdef'd) functions aren't handled correctly

2022-04-01 Thread Jakub Kulik
Jakub Kulik added the comment: Solaris is affected by missing `PyThread_get_thread_native_id`; all other symbols from the SYMBOL_NAMES tuple (in test_stable_abi_ctypes.py) are available. -- ___ Python tracker

[issue47169] Stable ABI: Some optional (#ifdef'd) functions aren't handled correctly

2022-04-01 Thread Jakub Kulik
Change by Jakub Kulik : -- nosy: +kulikjak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset f877b40e3f7e0d97878884d80fbec879a85ab7e8 by Victor Stinner in branch 'main': bpo-46850: Move _PyInterpreterState_SetEvalFrameFunc() to internal C API (GH-32054) https://github.com/python/cpython/commit/f877b40e3f7e0d97878884d80fbec879a85ab7e8

[issue44133] Some C-API symbols (e.g. Py_FrozenMain) are not always exported on Unix

2022-04-01 Thread Jakub Kulik
Jakub Kulik added the comment: Yes, it still does, and PyThread_get_thread_native_id is the only symbol missing. -- ___ Python tracker ___

[issue47182] _PyUnicode_Fini should invalidate ucnhash_capi capsule pointer

2022-04-01 Thread Christian Heimes
Christian Heimes added the comment: New changeset 55d5c96c57738766eb6f3b5ccfa6599d5f094c18 by Christian Heimes in branch '3.10': [3.10] bpo-47182: Fix crash by named unicode characters after interpreter reinitialization (GH-32212) (GH-32216)

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-04-01 Thread Sam Ezeh
Change by Sam Ezeh : -- pull_requests: +30300 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32225 ___ Python tracker ___

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-04-01 Thread Sam Ezeh
Change by Sam Ezeh : Added file: https://bugs.python.org/file50711/sam_ezeh.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-04-01 Thread Sam Ezeh
Change by Sam Ezeh : Removed file: https://bugs.python.org/file50710/sam_ezeh.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-04-01 Thread Sam Ezeh
Change by Sam Ezeh : Added file: https://bugs.python.org/file50710/sam_ezeh.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-04-01 Thread Sam Ezeh
Change by Sam Ezeh : Removed file: https://bugs.python.org/file50709/sam_ezeh.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2022-04-01 Thread Sam Ezeh
Sam Ezeh added the comment: I've submitted a patch that introduces code that raises TypeError at construction if `fieldnames` is not a sequence -- keywords: +patch nosy: +sam_ezeh Added file: https://bugs.python.org/file50709/sam_ezeh.patch ___

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset b9a5522dd952125a99ff554f01f311cae25f5a91 by Victor Stinner in branch 'main': bpo-46850: Move _PyEval_EvalFrameDefault() to internal C API (GH-32052) https://github.com/python/cpython/commit/b9a5522dd952125a99ff554f01f311cae25f5a91 --

[issue47152] Reorganize the re module sources

2022-04-01 Thread STINNER Victor
STINNER Victor added the comment: sre_constants, sre_compile and sre_parse are not tested and are not documented. I don't consider them as public API currently. If someone has good reason to use them, IMO we must clearly define which exact API is needed, properly document and test it. If

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

2022-04-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30299 pull_request: https://github.com/python/cpython/pull/32224 ___ Python tracker ___

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

2022-04-01 Thread Vedran Čačić
Vedran Čačić added the comment: > First, I hope we all agree: > 'C:\Windows\..\Program Files' and '/usr/../bin' == relative path I don't agree. To me, absolute means regardless of a reference point. So, absolute path would be a path that refers to the same entity from whichever directory you

  1   2   >