[issue44308] Raw Strings lack parody

2021-06-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Remember that backslash escapes are only a Python syntactic feature. If you read data from a file, or from the input() builtin, that contains a backslash, it remains a backslash: >>> s = input() a\b >>> print(len(s), s == r'a\b') 3 True

[issue44308] Raw Strings lack parody

2021-06-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think you have missed something important here: >>> data = b'foo\bar' >>> len(data) 6 >>> print(data) b'foo\x08ar' If you want bytes including a backslash followed by a b, you need to use raw bytes rb'foo\bar' or escape the

[issue13299] namedtuple row factory for sqlite3

2021-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, namedtuple speed improved considerably since these posts were made. When I last checked, their lookup speed was about the same as a dict lookup. See: https://docs.python.org/3/whatsnew/3.9.html#optimizations --

[issue44308] Raw Strings lack parody

2021-06-03 Thread Nicholas Willhite
New submission from Nicholas Willhite : I'm really sure this isn't filed correctly. I'm a total noob to this process, so feel free to redirect me. :) Bytes can be defined as a function, or a prefixed series. You can prefix a series with "b" and get the expected data type. You can also use

[issue44307] date.today() is 2x slower than datetime.now().date()

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

[issue44307] date.today() is 2x slower than datetime.now().date()

2021-06-03 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43654] IDLE: Fix tab completion after settings and some keys

2021-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The unknown is whether anyone has changed these > pseudoevent bindings and if so, how much do we care? I don't think we care. Getting tab completion sorted out is the priority. -- nosy: +rhettinger ___

[issue44300] using Linked list vs dynamic array for LifoQueue class

2021-06-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Lists appends and pops are already amortized O(1) operations. As they grow, they over-allocate by 12.5%. When shrinking they reclaim memory when the size falls in half. Together, these two strategies make lists efficient as a LIFO stack. A straight

[issue44307] date.today() is 2x slower than datetime.now().date()

2021-06-03 Thread Anthony Sottile
New submission from Anthony Sottile : ```console $ python3.10 -m timeit -s 'from datetime import datetime' 'datetime.now().date()' 50 loops, best of 5: 708 nsec per loop $ python3.10 -m timeit -s 'from datetime import date' 'date.today()' 20 loops, best of 5: 1.4 usec per loop ```

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2021-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Concrete reason 3. Treewidget does not work on high-res monitors. The #37041 quick Treeview test worked for Andre Roberge -- nosy: +aroberge versions: +Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-03 Thread Eric Snow
Eric Snow added the comment: New changeset b2bf2bc1ece673d387341e06c8d3c2bc6e259747 by Mark Shannon in branch 'main': bpo-43693: Compute deref offsets in compiler (gh-25152) https://github.com/python/cpython/commit/b2bf2bc1ece673d387341e06c8d3c2bc6e259747 --

[issue32280] Expose `_PyRuntime` through a section name

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 35002aa8f62dda1f79035e9904abdf476683e9be by Max Bélanger in branch 'main': bpo-32280: Store _PyRuntime in a named section (GH-4802) https://github.com/python/cpython/commit/35002aa8f62dda1f79035e9904abdf476683e9be -- nosy:

[issue32280] Expose `_PyRuntime` through a section name

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

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e53f72a1b42e17a331ed14bec674b1ee01d0720c by Pablo Galindo in branch '3.10': [3.10] bpo-44305: Improve syntax error for try blocks without except or finally (GH-26523) (GH-26524)

[issue44305] Improve syntax error for try block without finally or except block

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

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25118 pull_request: https://github.com/python/cpython/pull/26524 ___ Python tracker ___

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b250f89bb7e05e72a4641d44b988866b919575db by Pablo Galindo in branch 'main': bpo-44305: Improve syntax error for try blocks without except or finally (GH-26523)

[issue44306] asyncio.from_thread

2021-06-03 Thread Thomas Grainger
Thomas Grainger added the comment: """High-level support for working with threads in asyncio""" import functools import contextvars from . import events from . import tasks __all__ = "to_thread", "from_thread" class _Local(threading.local): loop = None _local = _Local() def

[issue44306] asyncio.from_thread

2021-06-03 Thread Thomas Grainger
New submission from Thomas Grainger : create a asyncio.from_thread shortcut to run async functions from a thread started with asyncio.to_thread ``` def from_thread(async_func, /, *args, **kwargs): """Synchronously run function *async_func* in the event loop thread. Any *args and

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26523 ___ Python tracker

[issue44305] Improve syntax error for try block without finally or except block

2021-06-03 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Given this script: try: x = 34 a = 1 instead of printing: File "/home/pablogsal/github/python/master/lel.py", line 4 a = 1 ^ SyntaxError: invalid syntax we should print: File "/home/pablogsal/github/python/master/lel.py", line 4

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks for the quick turnaround, this works! -- ___ Python tracker ___ ___ Python-bugs-list

[issue11105] Compiling recursive Python ASTs crash the interpreter

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

[issue44042] [sqlite3] _pysqlite_connection_begin() optimisations

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3446516ffa92c98519146253153484291947b273 by Erlend Egeberg Aasland in branch 'main': bpo-44042: Optimize sqlite3 begin transaction (GH-25908) https://github.com/python/cpython/commit/3446516ffa92c98519146253153484291947b273 --

[issue44042] [sqlite3] _pysqlite_connection_begin() optimisations

2021-06-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset de58b319af3a72440a74e807cf8a1194ed0c6d8c by Batuhan Taskaya in branch '3.9': [3.9] bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) (GH-26522)

[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3283bf4519139cf62ba04a76930f84ca1e7da910 by Pablo Galindo in branch '3.10': [3.10] bpo-44273: Improve syntax error message for assigning to "..." (GH-26477) (GH-26478)

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > And I've identified the issue is in test_close_kill_running. The patch for > resolving the crash in bpo-38323 can be the cause of the newly introduced hang Also, how did you reached this conclusion? --

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread STINNER Victor
Change by STINNER Victor : -- priority: deferred blocker -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-03 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +25116 pull_request: https://github.com/python/cpython/pull/26522 ___ Python tracker ___

[issue11105] Compiling recursive Python ASTs crash the interpreter

2021-06-03 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- components: +Interpreter Core -None priority: low -> normal title: Compiling evil ast crashes interpreter -> Compiling recursive Python ASTs crash the interpreter versions: +Python 3.11, Python 3.9 ___ Python tracker

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Global module state has been established by f461a7fc3f8740b9e79e8874175115a3474e5930 (bpo-42862, GH-24203). We can safely migrate static variables into that struct as a next step. -- ___ Python tracker

[issue11105] Compiling evil ast crashes interpreter

2021-06-03 Thread miss-islington
miss-islington added the comment: New changeset 976598d36bd180024c5f0edf1f7ec0f0b436380f by Miss Islington (bot) in branch '3.10': bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) https://github.com/python/cpython/commit/976598d36bd180024c5f0edf1f7ec0f0b436380f --

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: Ok, test_wrong_cert_tls13() and test_pha_required_nocert() of test_ssl should now be more reliable on Windows. I consider that the initial issue is now fixed and I close the issue. -- components: +SSL, Tests resolution: -> fixed stage: patch review

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset d2ab15f5376aa06ed120164f1b84bb40adbdd068 by Miss Islington (bot) in branch '3.10': bpo-43921: Fix test_ssl.test_wrong_cert_tls13() on Windows (GH-26502) (GH-26518)

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5c2191df9a21a3b3d49dd0711b8d2b92591ce82b by Victor Stinner in branch 'main': bpo-43921: Cleanup test_ssl.test_wrong_cert_tls13() (GH-26520) https://github.com/python/cpython/commit/5c2191df9a21a3b3d49dd0711b8d2b92591ce82b --

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've also been trying to debug it for the whole day. Not sure what's causing this. (Why does all error occur in Fedora buildbots? If I remember correctly, another test also failed there.") -- ___ Python tracker

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > How did you managed? I ran test_asyncio for almost 5 hours with -R in my > linux machine and could not reproduce? Now it's not again not reproducing. Maybe I used some wrong flag. But I'll try to debug this issue. --

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

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

[issue11105] Compiling evil ast crashes interpreter

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f3491242e41933aa9529add7102edb68b80a25e9 by Batuhan Taskaya in branch 'main': bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) https://github.com/python/cpython/commit/f3491242e41933aa9529add7102edb68b80a25e9 --

[issue11105] Compiling evil ast crashes interpreter

2021-06-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +25115 pull_request: https://github.com/python/cpython/pull/26521 ___ Python tracker

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f461a7fc3f8740b9e79e8874175115a3474e5930 by Erlend Egeberg Aasland in branch 'main': bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module (GH-24203)

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ned, can you confirm that this works for you? I am closing the issue, but if something is missing, please, reopen it and we will look into it :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > And extending the buildbot timer may not help since it seems it's running > infinitely Extending the bot time was done so we can use faulthandler to identify the test, because buildbot was cancelling the whole build before that :) --

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Victor, this issue is reproducible on Linux. I reproduced it on my WSL. How did you managed? I ran test_asyncio for almost 5 hours with -R in my linux machine and could not reproduce? -- ___ Python

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Victor, this issue is reproducible on Linux. I reproduced it on my WSL. And I've identified the issue is in test_close_kill_running. The patch for resolving the crash in bpo-38323 can be the cause of the newly introduced hang. test_close_kill_running is

[issue44301] Is there a way to provide destructor for module written using C API?

2021-06-03 Thread Azat Ibrakov
Azat Ibrakov added the comment: With this setup https://gist.github.com/lycantropos/f9243dc98e104a13ddd991316e93d31a I get prompt about module being initialized but that's it: it never gets deleted and reference count for `Rational` keeps increasing. What am I missing? --

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cea0585b7939b487d7089f9d473f495264e8a491 by Mark Shannon in branch '3.10': [3.10] bpo-44298: Backport #26513 to 3.10 (#26516) https://github.com/python/cpython/commit/cea0585b7939b487d7089f9d473f495264e8a491 --

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-06-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is a report about this change might have caused behaviour change for '.' in sys.path between 3.10.0a7 and 3.10.0b1 https://mail.python.org/archives/list/python-...@python.org/thread/DE3MDGB2JGOJ3X4NWEGJS26BK6PJUPKW/ -- nosy: +orsenthil

[issue44294] 3.9.5 Windows 64-bit installer says v3.8.10 in startup window.

2021-06-03 Thread Zachary Ware
Zachary Ware added the comment: I don't see anything that looks odd from your screenshots, so I'll go ahead and close it. Steve can leave a note here if there was actually something going weird on the server that he fixed. -- resolution: -> works for me stage: -> resolved status:

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2021-06-03 Thread James Gerity
James Gerity added the comment: The cause of DeprecationWarning sometimes [1] not being issued is I believe because in string_parser.c [2] the module is explicitly set to NULL and the filename will be '' or '' or somesuch, which eventually that ends up being normalized to something that

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-03 Thread mike bayer
mike bayer added the comment: if the issue is in greenlet this can be bounced back to https://github.com/python-greenlet/greenlet/issues/242 -- ___ Python tracker ___

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-03 Thread mike bayer
New submission from mike bayer : segmentation fault related to object deallocation and traceback objects, is extremely difficult to reproduce and definitely appeared as of 3.10.0b2, does not occur in 3.10.0b1. linux and osx platforms are affected. The issue requires "greenlet==1.1.0" to be

[issue27153] Default value shown by argparse.ArgumentDefaultsHelpFormatter is backwards for action='store_false'

2021-06-03 Thread wim glenn
Change by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28742] argparse.ArgumentDefaultsHelpFormatter sometimes provides inaccurate documentation of defaults, so they should be overrideable

2021-06-03 Thread wim glenn
Change by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44294] 3.9.5 Windows 64-bit installer says v3.8.10 in startup window.

2021-06-03 Thread Sunny Jamshedji
Sunny Jamshedji added the comment: Screenshot 4 Yes, I would agree, since it stopped happening on the 3rd and 4th try like someone noticed something on the server end; maybe a little guy running around inside the server, IDK?! I'd close this myself, but it was certainly quite bizarre.

[issue44294] 3.9.5 Windows 64-bit installer says v3.8.10 in startup window.

2021-06-03 Thread Sunny Jamshedji
Sunny Jamshedji added the comment: Screenshot 3 -- Added file: https://bugs.python.org/file50089/3. Use Show in Folder Opens Downloads.png ___ Python tracker ___

[issue44294] 3.9.5 Windows 64-bit installer says v3.8.10 in startup window.

2021-06-03 Thread Sunny Jamshedji
Sunny Jamshedji added the comment: Screenshot 2. -- Added file: https://bugs.python.org/file50088/2. Used Save Link As.png ___ Python tracker ___

[issue29249] Pathlib glob ** bug

2021-06-03 Thread wim glenn
Change by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44303] Buildbot website failing with 503

2021-06-03 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44303] Buildbot website failing with 503

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. Now it's back up again. Was a glitch perhaps. -- ___ Python tracker ___ ___

[issue44303] Buildbot website failing with 503

2021-06-03 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : I was trying to debug a issue (the test_asyncio random failing problem) when suddenly Buildbot is showing up with "503 Service Unavailable No server is available to handle this request.". It's constantly failing with the request. I'm not sure if it's only

[issue44238] Unable to install Python 3.9.5 - Windows Server

2021-06-03 Thread Steve Dower
Steve Dower added the comment: I see this line in your log: Rejecting product '{6504EEE5-2172-4D34-A76D-0372356396B4}': Non-assigned apps are disabled for non-admin users. I'm not entirely sure what it means, or how you managed to install it under this apparent restriction, but it looks

[issue37224] [subinterpreters] test__xxsubinterpreters fails randomly

2021-06-03 Thread hai shi
hai shi added the comment: OK, I try to take a look after Kyle leaves temporarily. But I haven't replicate this issue in my vm in recent days :( -- nosy: +shihai1991 versions: +Python 3.11 -Python 3.8 ___ Python tracker

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2021-06-03 Thread Steve Dower
Steve Dower added the comment: You shouldn't need to install the redistributable, but if you can't, then you have an issue that is not limited to CPython and it's not something we can fix. It sounds like you didn't try disabling any virus scanners. That may still help. If not, I don't know,

[issue44283] Add jump table for certain safe match-case statements

2021-06-03 Thread Brandt Bucher
Brandt Bucher added the comment: I'm hoping we can get something close that for free by just waiting... the faster-cpython folks are working on a tagged-pointer implementation of integers as we speak. I've been looking for a new project, so I'd love to help work on this issue (if you're

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 by Victor Stinner in branch 'main': bpo-39573: Py_TYPE becomes a static inline function (GH-26493) https://github.com/python/cpython/commit/f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 --

[issue44302] compile fail when make install run pip install as sudo

2021-06-03 Thread Battant
New submission from Battant : Hello, 5.4.0-73-generic Here is my configuration ubuntu 20.04 linux kernel 5.4.0-73-generic step to reproduce clone cpytjpm 3.11 repository https://github.com/python/cpython compile with this tcl ./configure -with-tcltk-includes=/usr/include/

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 84d80f5f30b1f545083c70a7d4e1e79ab75f9fa6 by Erlend Egeberg Aasland in branch '3.10': [3.10] bpo-42972: Track sqlite3 statement objects (GH-26475) (GH-26515) https://github.com/python/cpython/commit/84d80f5f30b1f545083c70a7d4e1e79ab75f9fa6

[issue42213] Get rid of cyclic GC hack in sqlite3.Connection and sqlite3.Cache

2021-06-03 Thread miss-islington
miss-islington added the comment: New changeset d88b47b5a396aa8d66f9a0e6b13a0825d59d0eff by Erlend Egeberg Aasland in branch 'main': bpo-42213: Remove redundant cyclic GC hack in sqlite3 (GH-26517) https://github.com/python/cpython/commit/d88b47b5a396aa8d66f9a0e6b13a0825d59d0eff --

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25114 pull_request: https://github.com/python/cpython/pull/26520 ___ Python tracker ___

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-03 Thread Eric Snow
Eric Snow added the comment: New changeset 2c1e2583fdc4db6b43d163239ea42b0e8394171f by Eric Snow in branch 'main': bpo-43693: Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388)

[issue37041] IDLE: path browser unusable on some displays

2021-06-03 Thread Andre Roberge
Change by Andre Roberge : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44301] Is there a way to provide destructor for module written using C API?

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: Hi, you should use the multiphase initialization API which has clear and free functions. https://www.python.org/dev/peps/pep-0489/#the-proposal See for example the source code of the Modules/_abc.c extension. -- nosy: +vstinner

[issue44301] Is there a way to provide destructor for module written using C API?

2021-06-03 Thread Azat Ibrakov
New submission from Azat Ibrakov : I'm reimplementing `fractions.Fraction` class using C API (https://github.com/lycantropos/cfractions). And the problem is that I want to use `numbers.Rational` interface in my type checks to add support for user-defined rational numbers. I see how it's

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +25113 pull_request: https://github.com/python/cpython/pull/26518 ___ Python tracker ___

[issue42213] Get rid of cyclic GC hack in sqlite3.Connection and sqlite3.Cache

2021-06-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25112 pull_request: https://github.com/python/cpython/pull/26517 ___ Python tracker ___

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea0210fa8ccca769896847f25fc6fadfe9a717bc by Victor Stinner in branch 'main': bpo-43921: Fix test_ssl.test_wrong_cert_tls13() on Windows (GH-26502) https://github.com/python/cpython/commit/ea0210fa8ccca769896847f25fc6fadfe9a717bc --

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: Well, as soon as the buildbot worker is green, it works for me :-D -- ___ Python tracker ___ ___

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25111 pull_request: https://github.com/python/cpython/pull/26516 ___ Python tracker ___

[issue42213] Get rid of cyclic GC hack in sqlite3.Connection and sqlite3.Cache

2021-06-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 82ad22a97d4b5d7134424f12bd6a61167db7f4f8 by Erlend Egeberg Aasland in branch 'main': bpo-42213: Check connection in sqlite3.Connection.__enter__ (GH-26512) https://github.com/python/cpython/commit/82ad22a97d4b5d7134424f12bd6a61167db7f4f8

[issue44293] PEP 585 breaks inspect.isclass

2021-06-03 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Btw this reminds me I should make a PyPI release of typing_inspect (last release was May 2020), hopefully will make a release on this weekend. -- ___ Python tracker

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Mark Shannon
Mark Shannon added the comment: New changeset 937cebc93b4922583218e0cbf0a9a14705a595b2 by Mark Shannon in branch 'main': bpo-44298: Fix line numbers for early exits in with statements. (GH-26513) https://github.com/python/cpython/commit/937cebc93b4922583218e0cbf0a9a14705a595b2 --

[issue44293] PEP 585 breaks inspect.isclass

2021-06-03 Thread Guido van Rossum
Guido van Rossum added the comment: Instead of introspecting types, use this library: https://github.com/ilevkivskyi/typing_inspect -- ___ Python tracker ___

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-06-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25110 pull_request: https://github.com/python/cpython/pull/26515 ___ Python tracker ___

[issue21363] io.TextIOWrapper always closes wrapped files

2021-06-03 Thread Marten H. van Kerkwijk
Marten H. van Kerkwijk added the comment: In astropy we are now working around the auto-closing of the underlying stream in TextIOWrapper by subclassing and overriding `__del__` to detach [1]. It would seem more elegant if `TestIOWrapper` (and really, `BufferedReader`) could gain an

[issue44300] using Linked list vs dynamic array for LifoQueue class

2021-06-03 Thread Mihai Ion
New submission from Mihai Ion : Switching to Linked list data structure for improving performance append() and pop() run time complexity when eliminating dynamic array resizing -- components: Library (Lib) files: main.py messages: 395004 nosy: euromike21 priority: normal severity:

[issue44294] 3.9.5 Windows 64-bit installer says v3.8.10 in startup window.

2021-06-03 Thread Zachary Ware
Zachary Ware added the comment: I suspect one or more of your screenshots did not make it through submission (you can only attach one at a time), but are you quite certain you got things straight here? This is the first report we've had of this, and I'm quite sure there would have been a

[issue44286] venv activate script would be good to show failure.

2021-06-03 Thread john kim
john kim added the comment: Thank you for your explanation of venv. I understand that venv is not portable. But I was confused because the venv was written on the left side of the terminal line and it looked like it was working. Therefore, if venv does not work, such as if __venv_dir__ is

[issue39560] PyUnicode_FromKindAndData kind transformation is not documented

2021-06-03 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44293] PEP 585 breaks inspect.isclass

2021-06-03 Thread Ken Jin
Ken Jin added the comment: @Jelle thanks for nosy-ing me too and the thorough investigation. @Joseph Thanks for taking the time to raise this inconvenience on the bug tracker. > By the way, Python typing is so much unstable (every version breaks the > previous one), it's very complicated

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +25109 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26513 ___ Python tracker

[issue39560] PyUnicode_FromKindAndData kind transformation is not documented

2021-06-03 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 4eed2821d40373345ed133b2b8d912fef59acab7 by Zackery Spytz in branch 'main': bpo-39560: Document PyUnicode_FromKindAndData() kind transformation (GH-23848) https://github.com/python/cpython/commit/4eed2821d40373345ed133b2b8d912fef59acab7

[issue44291] Unify logging.handlers.SysLogHandler behavior with SocketHandlers

2021-06-03 Thread Kirill Pinchuk
Kirill Pinchuk added the comment: Oh, sorry bad wording. The current implementation has reconnection logic only for UNIX sockets The patch adds reconnection logic for UDP/TCP sockets as well. I've done it with minimal changes to the existing code to accomplish that. And probably it can be

[issue44291] Unify logging.handlers.SysLogHandler behavior with SocketHandlers

2021-06-03 Thread Vinay Sajip
Vinay Sajip added the comment: > right now it has reconnection logic for unixsocket but not for tcp/udp Should it not have UDP/TCP supported as well as domain sockets, before being reviewed? -- nosy: +vinay.sajip ___ Python tracker

[issue44286] venv activate script would be good to show failure.

2021-06-03 Thread Vinay Sajip
Vinay Sajip added the comment: venvs aren't meant to be portable (i.e. renaming the directory or moving to a new location). Scripts installed into a venv have absolute paths pointing to the location when the venv was created. venvs should be treated as throwaway resources that can be

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-03 Thread Matt Billenstein
Matt Billenstein added the comment: I have been stopping it since the initial problem - there’s something wonky with using the system python on macos afaict... M -- Matt Billenstein m...@vazor.com > On Jun 3, 2021, at 4:39 AM, STINNER Victor wrote: > >  > STINNER Victor added the

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Mark Shannon
Mark Shannon added the comment: Why this occurs: with cm: A break translates to something like: ex = cm.__exit__; cm.__enter__() # with cm A ex(...) goto loop_end # break So, the break is traced after the exit call. However, this doesn't seem consistent with

[issue44298] 3.10.0b2 traces with-exit before the break that caused the exit

2021-06-03 Thread Mark Shannon
Mark Shannon added the comment: For context, this behavior was introduced in https://bugs.python.org/issue43933 -- ___ Python tracker ___

[issue42213] Get rid of cyclic GC hack in sqlite3.Connection and sqlite3.Cache

2021-06-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25108 pull_request: https://github.com/python/cpython/pull/26512 ___ Python tracker ___

  1   2   >