[issue43248] platform.libc_ver() returns no information on Alpine Linux

2021-02-19 Thread Dong-hee Na
Dong-hee Na added the comment: @Omer.Katz This issue should be fixed, feel free to submit the PR -- ___ Python tracker ___ ___

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Eryk Sun
Eryk Sun added the comment: > Isn't `PyUnicode_GET_LENGTH(text) < self->chunk_size` enough? Yes, that's simpler, except with `<=`" instead of `<`, since the maximum count is chunk_size when pending_bytes is a list or ASCII string. When I wrote the more complex check, I did't take into

[issue43248] platform.libc_ver() returns no information on Alpine Linux

2021-02-19 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43228] Regression in function builtins

2021-02-19 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41859] IDLE: ValueError; Completions not working right on macOS

2021-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seemingly random error involved completions and there is already an issue about them not working right on macOS. It was also opened by Raymond as a result of another 'random' error in an all day session. -- components: +macOS nosy: +ned.deily,

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
Inada Naoki added the comment: You are right. I misunderstood. ``` if (PyUnicode_IS_ASCII(text) && (PyUnicode_GET_LENGTH(text) + (self->pending_bytes ? self->pending_bytes_count : 0)) <= self->chunk_size &&

[issue40522] [subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2021-02-19 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +23375 pull_request: https://github.com/python/cpython/pull/24597 ___ Python tracker ___

[issue40522] [subinterpreters] Get the current Python interpreter state from Thread Local Storage (autoTSSkey)

2021-02-19 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +23374 pull_request: https://github.com/python/cpython/pull/24596 ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Carol Willing
Carol Willing added the comment: Absolutely, I can help do that. On Fri, Feb 19, 2021 at 9:14 PM Guido van Rossum wrote: > > Guido van Rossum added the comment: > > Carol, the most urgent thing we have going is to come up with text for > what's new. I posted a PR that adds my standard

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Eryk Sun
Eryk Sun added the comment: > In your code, huge data passed to .write(huge) may be > remained in the internal buffer. If you mean the buffered writer, then I don't see the problem. A large bytes object in pending_bytes gets temporarily referenced by _textiowrapper_writeflush(), and

[issue27646] doc: yield from expression can be any iterable

2021-02-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23373 pull_request: https://github.com/python/cpython/pull/24595 ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Carol, the most urgent thing we have going is to come up with text for what's new. I posted a PR that adds my standard "quick" tutorial ( https://github.com/python/cpython/pull/24588) which is also found in Appendix A of PEP 636 (the tutorial PEP -- the

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Carol Willing
Carol Willing added the comment: @Brandt Bucher @Guido van Rossum I'm finally getting some free time to get the docs workgroup up and running. I'm happy to help with any docs that you want for alpha and beyond. On Fri, Feb 19, 2021 at 8:27 PM Guido van Rossum wrote: > > Guido van Rossum

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
Inada Naoki added the comment: In your code, huge data passed to .write(huge) may be remained in the internal buffer. ``` [NEW PRE-FLUSH] else if ((self->pending_bytes_count + bytes_len) > self->chunk_size) { if (_textiowrapper_writeflush(self) < 0) { Py_DECREF(b);

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Eryk Sun
Eryk Sun added the comment: > stdout.write("small text") > stdout.write("very large text") # Calls writeflush, but can not allocate > buffer. Without the optimization, in most cases this will likely fail in _io_TextIOWrapper_write_impl() at the line `b = (*self->encodefunc)((PyObject *)

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: But seriously, nothing good can come from social media. It's what drove me to retire in 2018. Just ignore it please. -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, I see. Clearly we should have kept the "DWIM" option, aka "If it starts with a capital letter, it's a value pattern." :-) -- ___ Python tracker

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23372 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24592 ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread laurenjl
laurenjl added the comment: > I've seen too many knee-jerk reactions over the past weeks along the lines of > "the new switch feature can't handle named constants!". Here are some that I found interesting: https://twitter.com/jakevdp/status/1359870794877132810

[issue43272] AMD64 Arch Linux VintageParser 3.9: test_fstring test_named_expressions test_unpack_ex failed

2021-02-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43272] AMD64 Arch Linux VintageParser 3.9: test_fstring test_named_expressions test_unpack_ex failed

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: Thanks for fixing this preciuus buildbot worker. -- ___ Python tracker ___ ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Let's continue this at https://github.com/python/cpython/pull/24588 -- ___ Python tracker ___

[issue43272] AMD64 Arch Linux VintageParser 3.9: test_fstring test_named_expressions test_unpack_ex failed

2021-02-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f9d1bf2de07131a8d80bc1e4914ee534bc5effa4 by Pablo Galindo in branch '3.9': [3.9] bpo-43272: Fix old parser test failures for backported grammar constructs (GH-24591)

[issue43272] AMD64 Arch Linux VintageParser 3.9: test_fstring test_named_expressions test_unpack_ex failed

2021-02-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42974] tokenize reports incorrect end col offset and line string when input ends without explicit newline

2021-02-19 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43257] get_type_hints evaluates class variables before type hints

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Oops, I realized it's not really a compiler bug. When the compiler sees class C: str: str = "abc" if effectively rearranges that to class C: str = "abc" __annotations__["str"] = str (where __annotations__ is initialized to {} at the start of

[issue43263] threading module unable to run

2021-02-19 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: Sorry, I didn't make the question clear yesterday. My operating system is Windows and the compiler used is VS2019. My project address: https://github.com/twoone-3/BDSpyrunner When I use Python.dll to import Python files, the program is stuck.

[issue42990] Improve the C code for calling Python code: _PyEval_EvalCode()

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the clarifications, Victor! So I now understand: the *identity* of the builtins dict used by a function's code is captured when the function object is created. And I understand why: it's so that in the fast path for the LOAD_GLOBAL opcode we

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
Inada Naoki added the comment: This is not the problem only in the optimization. _textiowrapper_writeflush need to create buffer bytes object anyway and if it cause MemoryError, the TextIOWrapper can not flush internal buffer forever. stdout.write("small text") stdout.write("very large

[issue43042] Augment tutorial sentence.

2021-02-19 Thread miss-islington
miss-islington added the comment: New changeset a67fd011eadfae7103ca9e0a0b0f8312e4f00b0f by Miss Islington (bot) in branch '3.9': bpo-43042: Augment tutorial sentence (GH-24514) https://github.com/python/cpython/commit/a67fd011eadfae7103ca9e0a0b0f8312e4f00b0f --

[issue43202] Cleanup codeop._maybe_compile

2021-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Second patch: "Add comment, end others with period, remove unused variables, initialize others only when needed, and add explicit return." -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue43042] Augment tutorial sentence.

2021-02-19 Thread miss-islington
miss-islington added the comment: New changeset a072788c57f7a40ecc53cb32f795f4ec844c0aba by Miss Islington (bot) in branch '3.8': bpo-43042: Augment tutorial sentence (GH-24514) https://github.com/python/cpython/commit/a072788c57f7a40ecc53cb32f795f4ec844c0aba --

[issue43272] AMD64 Arch Linux VintageParser 3.9: test_fstring test_named_expressions test_unpack_ex failed

2021-02-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 1.0 -> 2.0 pull_requests: +23371 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24591 ___ Python tracker

[issue43042] Augment tutorial sentence.

2021-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +23370 pull_request: https://github.com/python/cpython/pull/24590 ___ Python tracker ___

[issue43042] Augment tutorial sentence.

2021-02-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23369 pull_request: https://github.com/python/cpython/pull/24589 ___ Python tracker

[issue43042] Augment tutorial sentence.

2021-02-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b30fcba3a8abaabd1087f2392ae8aec4c1b1f210 by Terry Jan Reedy in branch 'master': bpo-43042: Augment tutorial sentence (GH-24514) https://github.com/python/cpython/commit/b30fcba3a8abaabd1087f2392ae8aec4c1b1f210 --

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Brandt Bucher
Brandt Bucher added the comment: I understand. I would just like to see something that won't give new Python pattern-matching users (read: everybody) the very painful first impression that this is a switch. Can we rework it like: match input().split(): case []: print("Got

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-02-19 Thread Austin Lamb
Austin Lamb added the comment: Thanks Steve! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: > It's not a huge deal, but I vote that we either drop or rework the > "http_error" examples. I think it gives people a very wrong first impression > that makes the rest of the behavior quite surprising. > > Can it be changed to build off of something

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +23368 pull_request: https://github.com/python/cpython/pull/24588 ___ Python tracker ___

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-02-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-02-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Or maybe need a generic -X flag to tell Python that libregrtest is tracking > leaks, since we might need to change other parameters than only the opcode > cache size. I think we should go this way, maybe even less "public". If we add a -X, then it

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-02-19 Thread Steve Dower
Steve Dower added the comment: The ping was enough. Thanks! -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-02-19 Thread Steve Dower
Steve Dower added the comment: New changeset b4af629f4d4868ef74ee298d66259fae78c7fd89 by Austin Lamb in branch 'master': bpo-42825: Enable /OPT:REF (GH-24098) https://github.com/python/cpython/commit/b4af629f4d4868ef74ee298d66259fae78c7fd89 --

[issue38302] [3.10] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

2021-02-19 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +23367 pull_request: https://github.com/python/cpython/pull/24587 ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Brandt Bucher
Brandt Bucher added the comment: > Would people be okay if I added the tutorial from Appendix A of PEP 636 to > Doc/whatsnew/3.10.rst? Yes please! It's not a huge deal, but I vote that we either drop or rework the "http_error" examples. I think it gives people a very wrong first impression

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: I don't know who's really in charge of the docs. I suppose the PEP authors are, collectively, but that runs the risk that we're all expecting the person to our left in the circle to do it. Would people be okay if I added the tutorial from Appendix A of PEP

[issue43144] test_unicodedata: test_normalization uses network but doesn't depend on network resource

2021-02-19 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: Sorry. Feel free to commit as own patch. It's trivial. -- ___ Python tracker ___ ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-19 Thread Brandt Bucher
Brandt Bucher added the comment: To the folks working on docs: Does it seem realistic to have something ready by the next alpha (March 1st)? I'd like to at least have a What's New entry and a rough draft tutorial by then, since we'll probably (hopefully?) have a bunch of users jumping on

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-02-19 Thread Yury Selivanov
Yury Selivanov added the comment: > Giving the ability to control the cache size, at least at Python startup, is > one option. I'd really prefer not to allow users to control cache sizes. There's basically no point in that; the only practically useful thing is to enable or disable it.

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-02-19 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +Mark.Shannon, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43181] Python macros don’t shield arguments

2021-02-19 Thread Vitaliy
Vitaliy added the comment: Thanks for the fix, it works for my use case. (btw that was #define U(...) __VA_ARGS__ and not what I wrote). > I don't think that PR 24533 should be backported to Python 3.8 and Python > 3.9. I prefer to avoid any risk of regression, and so only change Python

[issue42027] /passive run of Windows installer fail silently on Win7

2021-02-19 Thread Steve Dower
Steve Dower added the comment: Probably an easy fix, if someone has a Win7 machine around to test on (which I don't these days). There are some UI level comparisons in the bootstrapper C++ file under Tools/msi that probably need fixing. Not urgent. Won't be long until Win10 is the only one

[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

2021-02-19 Thread Austin Lamb
Austin Lamb added the comment: What are the next steps for this - anything else I can provide, or is someone able to take a look at the Pull Request? Thanks! -- ___ Python tracker

[issue43265] [sqlite3] Improve backup error handling

2021-02-19 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: The unit test suite shows one case of improved "exception text". I'd say it's an improvement. $ ./python.exe # with GH-24586 applied >>> import sqlite3 >>> c1 = sqlite3.connect(":memory:") >>> c2 = sqlite3.connect(":memory:") >>> c1.backup(c2,

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-02-19 Thread Ned Deily
Change by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42338] Enable Debug Build For Python Native Modules in Windows, with Visual Studio Toolchain

2021-02-19 Thread Steve Dower
Steve Dower added the comment: That's the best solution. Alternatively, you can install the debug binaries of CPython using the option in the installer, recompile 3rd party packages from source, and use true debug builds that way. Unfortunately, there's not much we can do about 3rd party

[issue42405] Add distutils mvsccompiler support for Windows ARM64 build

2021-02-19 Thread Steve Dower
Steve Dower added the comment: Closed due to PEP 632 (distutils is now deprecated). Changes to support this should go into setuptools or another build backend. I'm already trying to get some resources together to help these other projects build/test on ARM64, so that should help. If someone

[issue30480] samefile and sameopenfile fail for WebDAV mapped drives

2021-02-19 Thread Steve Dower
Steve Dower added the comment: Same as issue33935, but since the newer issue has proposed solutions on it already, I'm preferring to keep that one open. -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed ___ Python

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-02-19 Thread Steve Dower
Steve Dower added the comment: Looks like we missed Christian's last message... Have OpenSSL made an updated release? If this issue is as bad as the short description above sounds, I expect they would have. It's possible to rebuild with the patch, but easier if it's a release. (Also,

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: If someone wants to measure the stack memory usage per function call, _testcapi.stack_pointer() can be used: see bpo-30866. -- ___ Python tracker

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-02-19 Thread Steve Dower
Steve Dower added the comment: Looks like someone increased the size of locals in the ceval functions. If any new buffers have been added recently, moving the processing into a helper function or using a single buffer instead of allocating them in separate if/case blocks can help reduce it.

[issue43272] AMD64 Arch Linux VintageParser 3.9: test_fstring test_named_expressions test_unpack_ex failed

2021-02-19 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Arch Linux VintageParser 3.9: https://buildbot.python.org/all/#/builders/495/builds/147 3 tests failed: test_fstring test_named_expressions test_unpack_ex The latest success build was 4 months ago (Nov 2):

[issue43166] Unused letters in Windows-specific pragma optimize

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: Since this change, AMD64 Windows10 3.x buildbot started to crash with Windows fatal exception: stack overflow -> see bpo-43271. -- nosy: +vstinner ___ Python tracker

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-02-19 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows10 3.x, build 856: https://buildbot.python.org/all/#/builders/146/builds/856 17 tests failed: test_exceptions test_fileio test_io test_isinstance test_json test_lib2to3 test_logging test_pickle test_pickletools test_plistlib

[issue43265] [sqlite3] Improve backup error handling

2021-02-19 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: Improve sqlite3 backup error handling -> [sqlite3] Improve backup error handling ___ Python tracker ___

[issue43251] [sqlite3] sqlite3_column_name() failures should raise MemoryError

2021-02-19 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: sqlite3_column_name() failures should raise MemoryError -> [sqlite3] sqlite3_column_name() failures should raise MemoryError ___ Python tracker

[issue43251] sqlite3_column_name() failures should raise MemoryError

2021-02-19 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Well, it returns NULL in case of out of memory, but is it the only cause? Can > NULL be returned for other reasons? According to the SQLite docs, no. Looking at the source code, we see that it also returns NULL if the second parameter (column

[issue43267] [sqlite3] Redundant type checks in pysqlite_statement_bind_parameter()

2021-02-19 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > It is a kind of optimization. PyLong_Check is very fast (only one comparison, AFAICS), so there is no gain in first doing PyLong_CheckExact and then PyLong_Check. Ditto for unicode. PyFloat_Check is the most expensive check, but it comes before

[issue42990] Improve the C code for calling Python code: _PyEval_EvalCode()

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: Guido: "I'm still worried about the change in semantics where globals["__builtins__"] is assigned a different dict after the function object has been created (...)" Well, there is a semantics change of Python 3.10 documented at:

[issue43265] Improve sqlite3 backup error handling

2021-02-19 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24586 ___ Python tracker

[issue43263] threading module unable to run

2021-02-19 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> works for me status: open -> pending ___ Python tracker ___ ___ Python-bugs-list

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2021-02-19 Thread Brett Cannon
Brett Cannon added the comment: Since this is still open I would assume it never made it in. -- ___ Python tracker ___ ___

[issue43265] Improve sqlite3 backup error handling

2021-02-19 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > I'm not sure about 1) because if target == source it means a user error. > OperationalError is usually used for non-user errors. Yes, my bad. ProgrammingError would be better. target == source results in SQLITE_ERROR, BTW. I'll throw up a PR for

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2021-02-19 Thread Brian Hulette
Brian Hulette added the comment: Hey there, I just came across this bug when looking into a problem with corrupted pyc files. Was the patch ever applied? I'm still seeing the original behavior in Python 3.7. Thanks! -- nosy: +hulettbh ___ Python

[issue42990] Improve the C code for calling Python code: _PyEval_EvalCode()

2021-02-19 Thread Mark Shannon
Mark Shannon added the comment: In Python 3.9 the binding is more late-ish binding, than true late binding. Because globals['__builtins__'] is cached for each function activation, executing functions don't see updates. Example: >>> def f(): ... print(len("test")) ... bltns =

[issue42990] Improve the C code for calling Python code: _PyEval_EvalCode()

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, that's clearer. I'm still worried about the change in semantics where globals["__builtins__"] is assigned a different dict after the function object has been created (similar to https://bugs.python.org/file49816/func_builtins2.py). I.e. def

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: > (Or perhaps provide an -X flag to disable it without the need to recompile.) Giving the ability to control the cache size, at least at Python startup, is one option. Or maybe need a generic -X flag to tell Python that libregrtest is tracking leaks, since

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue (but I'm not interested by trying to fix it). -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue42402] Termios module documentation is extremely lacking

2021-02-19 Thread Irit Katriel
Irit Katriel added the comment: Could it simply be that the link to mod:`termios` should have been to :manpage:`termios(3)` instead? -- nosy: +iritkatriel ___ Python tracker

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Please revert this and use a separate build flag (e.g. DISABLE_INLINE_CACHES) for the refleaks run. (Or perhaps provide an -X flag to disable it without the need to recompile.) I am developing new inline cache ideas and of course I need to run in debug

[issue43267] [sqlite3] Redundant type checks in pysqlite_statement_bind_parameter()

2021-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a kind of optimization. We first perform few fast checks for exact types, and then slower subclass checks. I do not know whether this optimization is worth, but it was written so, and there is nothing wrong in it. -- nosy: +serhiy.storchaka

[issue43251] sqlite3_column_name() failures should raise MemoryError

2021-02-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, it returns NULL in case of out of memory, but is it the only cause? Can NULL be returned for other reasons? -- ___ Python tracker

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-19 Thread paul j3
paul j3 added the comment: The parents mechanism is not elaborate. It copies groups and actions by reference. The comments that I quoted actually come from that method that does this copying. >From a quick glance at that code I see that it does not preserve the group >nesting.

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-02-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23365 pull_request: https://github.com/python/cpython/pull/24582 ___ Python tracker ___

[issue43266] "String conversion and formatting" formatting messes up array subscripting

2021-02-19 Thread miss-islington
miss-islington added the comment: New changeset 1cfed3d5b0ec1419c8a1d5cf8bff1a6e1483771a by Miss Islington (bot) in branch '3.9': closes bpo-43266: Improve array formatting. (GH-24573) https://github.com/python/cpython/commit/1cfed3d5b0ec1419c8a1d5cf8bff1a6e1483771a --

[issue43255] Ceil division with /// operator

2021-02-19 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43257] get_type_hints evaluates class variables before type hints

2021-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Sure looks like a compiler bug! Can you investigate whether this occurs in earlier Python versions? Maybe bisect if it doesn’t? -- ___ Python tracker

[issue43266] "String conversion and formatting" formatting messes up array subscripting

2021-02-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23363 pull_request: https://github.com/python/cpython/pull/24584 ___ Python tracker

[issue43266] "String conversion and formatting" formatting messes up array subscripting

2021-02-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +23364 pull_request: https://github.com/python/cpython/pull/24585 ___ Python tracker ___

[issue43266] "String conversion and formatting" formatting messes up array subscripting

2021-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e by Erlend Egeberg Aasland in branch 'master': closes bpo-43266: Improve array formatting. (GH-24573) https://github.com/python/cpython/commit/2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e --

[issue43265] Improve sqlite3 backup error handling

2021-02-19 Thread Андрей Воропаев
Change by Андрей Воропаев : Added file: https://bugs.python.org/file49823/DOC-20200420-WA ___ Python tracker ___ ___ Python-bugs-list

[issue43265] Improve sqlite3 backup error handling

2021-02-19 Thread Berker Peksag
Berker Peksag added the comment: I'm not sure about 1) because if target == source it means a user error. OperationalError is usually used for non-user errors. 3) sounds good to me if that part is already covered by tests and they passed. -- ___

[issue43257] get_type_hints evaluates class variables before type hints

2021-02-19 Thread Ken Jin
Ken Jin added the comment: Hmm I noticed this occurs in Python 3.9 but not 3.10. If you insert ``from __future__ import annotations`` at the start of your code, it stops erroring. Anyways, I don't think this is dataclass specific, the following code using a plain class also errors: ```

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4a6bf276ed3e6687394afe26b0d9a061ac06fc6b by Nicholas Sim in branch 'master': bpo-35134: Move non-limited C API files to Include/cpython/ (GH-24561) https://github.com/python/cpython/commit/4a6bf276ed3e6687394afe26b0d9a061ac06fc6b --

[issue43268] [internals] Pass the current interpreter (interp) rather than the current Python thread state (state)

2021-02-19 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43268] [internals] Pass the current interpreter (interp) rather than the current Python thread state (state)

2021-02-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 839184f85cb2d2ad514fff9b431733d1c9607533 by Victor Stinner in branch 'master': bpo-43268: local_clear() uses _PyInterpreterState_GET() (GH-24583) https://github.com/python/cpython/commit/839184f85cb2d2ad514fff9b431733d1c9607533 --

[issue43255] Ceil division with /// operator

2021-02-19 Thread Boštjan Mejak
Boštjan Mejak added the comment: Mr. Stinner, I really don't understand what are you hinting at. -- ___ Python tracker ___ ___

[issue43268] [internals] Pass the current interpreter (interp) rather than the current Python thread state (state)

2021-02-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23362 pull_request: https://github.com/python/cpython/pull/24583 ___ Python tracker ___

[issue30425] Python 3.6.1 (32-bit)_20170522020736.log

2021-02-19 Thread Irit Katriel
Irit Katriel added the comment: Chakrit, what is the issue you are reporting here? -- nosy: +iritkatriel resolution: -> not a bug status: open -> pending ___ Python tracker

  1   2   >