Re: Using pytest, sometimes does not capture stderr

2021-04-04 Thread David
On Mon, 5 Apr 2021 at 14:26, Cameron Simpson wrote: > On 05Apr2021 13:56, David wrote: > >Thanks for confirming my suspicions so quickly. What you wrote > >makes sense, but there are two points that still puzzle me. > >1) The final line of the pytest failure output seems to shows that > >

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-04-04 Thread Thomas Wamm
Thomas Wamm added the comment: I have forked my TerraLunar graphics program to make a simpler more portable version, called "TerraLunar-tkbench.py" to facilitate testing of the tkinter stack for graphics performance. The project folder is at:

[issue43731] PEP 597: logging.basicConfig() uses locale encoding.

2021-04-04 Thread Inada Naoki
New submission from Inada Naoki : logging.basicConfig() uses locale encoding when reading config file. We need to add `encoding=None` parameter and `encoding=io.text_encoding(encoding)` in it. -- components: Library (Lib) messages: 390223 nosy: methane priority: normal severity:

Re: Using pytest, sometimes does not capture stderr

2021-04-04 Thread Cameron Simpson
On 05Apr2021 13:56, David wrote: >On Mon, 5 Apr 2021 at 13:44, Cameron Simpson wrote: >> On 05Apr2021 13:28, David wrote: >> >Can anyone explain why the module_2.py test fails? >> >Is it because stderr during module import is not the same as during test? >> >Is it something to do with mutable

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23931 pull_request: https://github.com/python/cpython/pull/25189 ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset c8e5eb904e12010d2302364e1037c24a30f5e241 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181) https://github.com/python/cpython/commit/c8e5eb904e12010d2302364e1037c24a30f5e241 --

Re: Using pytest, sometimes does not capture stderr

2021-04-04 Thread David
On Mon, 5 Apr 2021 at 13:44, Cameron Simpson wrote: > On 05Apr2021 13:28, David wrote: > >Can anyone explain why the module_2.py test fails? > >Is it because stderr during module import is not the same as during test? > >Is it something to do with mutable defaults? > >How to investigate this? >

Re: Using pytest, sometimes does not capture stderr

2021-04-04 Thread Cameron Simpson
On 05Apr2021 13:28, David wrote: >I have just begun using pytest at a basic level and I am >seeing behaviour that I do not understand. > >My platform is Debian 10.9 > >There are 3 files involved, contents are provided below, and attached. >- module_1.py passes the test as expected >- module_2.py

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset ee952b5c7355cb64179ca9bb77b13e7738132d3d by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in test_filecmp (GH-25159) https://github.com/python/cpython/commit/ee952b5c7355cb64179ca9bb77b13e7738132d3d --

Using pytest, sometimes does not capture stderr

2021-04-04 Thread David
Hi, I have just begun using pytest at a basic level and I am seeing behaviour that I do not understand. My platform is Debian 10.9 There are 3 files involved, contents are provided below, and attached. - module_1.py passes the test as expected - module_2.py has a tiny change, and fails

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset de522a89e42a35da9275169b113460c3581e32d7 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix test_email (GH-25158) https://github.com/python/cpython/commit/de522a89e42a35da9275169b113460c3581e32d7 --

[issue41974] Remove complex.__float__, complex.__floordiv__, etc

2021-04-04 Thread Guido van Rossum
Guido van Rossum added the comment: Indeed, Bartosz. Do you think you can help by submitting a PR for the docs? -- ___ Python tracker ___

Re: About \033[m

2021-04-04 Thread Terry Reedy
On 4/4/2021 7:40 AM, Skip Montanaro wrote: Porque quando se usa formatac,ao de cores, o python nao consegue centralizar dentro da cadeia de 40 caracteres ? Tive que colocar 54 no parametro pois de alguma forma esta sendo considerado os caracteres de dentro do comando \033[m

Re: Friday Finking: initialising values and implied tuples

2021-04-04 Thread 2QdxY4RzWzUUiLuE
On 2021-04-05 at 11:47:53 +1200, dn via Python-list wrote: > Did you spot how various contributors identified when they prefer one > method in a specific situation, but reach for another under differing > circumstances! What? Use cases matter? I'm *shocked*. :-/ Of all the methodologies I

[issue43730] Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question?

2021-04-04 Thread Thomas Cavalli
Change by Thomas Cavalli : -- title: Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question -> Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question? ___ Python tracker

[issue43730] Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question

2021-04-04 Thread Thomas Cavalli
Change by Thomas Cavalli : -- title: Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" ques -> Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" question ___ Python tracker

[issue43730] Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" ques

2021-04-04 Thread Thomas Cavalli
New submission from Thomas Cavalli : The last sentence of this section seems wrong to me: "If there is no / in the function definition, there are no positional-only parameters." Should this better be: "If there is no / in the function definition, there are only positional-only parameters."

Re: Friday Finking: initialising values and implied tuples

2021-04-04 Thread Greg Ewing
On 5/04/21 11:47 am, dn wrote: I think I've read that the compiler is smart-enough to realise that the RHS 'literal-tuples'?'tuple-literals' are being used as a 'mechanism', and thus the inits are in-lined. It does indeed seem to do this in some cases: >>> def g(i, j, k): ... a, b, c = i, j,

[issue43730] Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" ques

2021-04-04 Thread Thomas Cavalli
Change by Thomas Cavalli : -- nosy: thomaspcavalli priority: normal severity: normal status: open title: Tutorial Documentation for 4.7.3.2. Positional-Only Parameters, no "/" ques ___ Python tracker

Re: Friday Finking: initialising values and implied tuples

2021-04-04 Thread dn via Python-list
On 04/04/2021 01.00, Rob Cliffe via Python-list wrote: > > > On 03/04/2021 04:09, 2qdxy4rzwzuui...@potatochowder.com wrote: >> On 2021-04-03 at 02:41:59 +0100, >> Rob Cliffe via Python-list wrote: >> >>> x1 = 42; y1 =  3;  z1 = 10 >>> x2 = 41; y2 = 12; z2 = 9 >>> x3 =  8;  y3 = 

[issue43729] Tutorial Documentation for 3.1.1. Numbers missing "result"

2021-04-04 Thread Thomas Cavalli
New submission from Thomas Cavalli : The Division (/) section example uses the commented variable "result" without it being defined. I am counting 4 numbers, (5.6667, 5, 2, 17), that are called result. The correct result can be implied but its poor documentation. So, either change: >>> 17

Re: Friday Finking: initialising values and implied tuples

2021-04-04 Thread dn via Python-list
On 03/04/2021 11.25, Marco Ippolito wrote: >> (a) basic linear presentation: >> >> resource = "Oil" >> time = 1 >> crude = 2 >> residue = 3 >> my_list = "long" >> >> (b) using explicit tuples: >> >> ( resource, time, crude, residue, my_list ) = ( "Oil", 1, 2, 3, "long" ) >> >> (c) linear and

[issue43655] Tkinter: make X window & macOS recognize dialogs as such

2021-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Excuse me, it is the query boxes, not the search boxes, that already have the call. Unlike the other boxes I initially tested, they do not have the traffic lights. I believe that this, not movability, is the effect on mac of 'movableModal'. I tested a

[issue43655] Tkinter: make X window & macOS recognize dialogs as such

2021-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See https://wiki.tcl-lang.org/page/MacWindowStyle . I suppose it affects window decoration. -- ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Adding the rest of RM to evaluate the proposed solution -- nosy: +lukasz.langa, ned.deily, steve.dower ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, so seems that PR25188 works if the abi dump file for the "correct" version is generated with the same compiler that is used to check the ABI. I think this is acceptable if the workflow is: - As soon as a version is released, we generate in the

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-04 Thread Christoph Gohlke
Christoph Gohlke added the comment: Thank you for fixing this issue so fast! Python 3.9.4 works well. -- ___ Python tracker ___

[issue41974] Remove complex.__float__, complex.__floordiv__, etc

2021-04-04 Thread Bartosz
Bartosz added the comment: The docs for this should probably be updated to reflect the change: https://docs.python.org/3/library/typing.html#typing.runtime_checkable -- nosy: +DevilXD ___ Python tracker

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23930 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25188 ___ Python tracker

[RELEASE] Python 3.9.4 hotfix is now available

2021-04-04 Thread Łukasz Langa
Python 3.9.3 was released two days ago on Friday, April 2nd. It contains important security content listed below for reference. Unfortunately, it also introduced an unintentional ABI incompatibility, making some C extensions built with Python 3.9.0 - 3.9.2 crash with Python 3.9.3 on 32-bit

[issue43655] Tkinter: make X window & macOS recognize dialogs as such

2021-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume 'floatable' means 'can move dialog around on top of the parent window'. On my Mac Air, with 3.8 and 8.6.8, all the dialogs I checked, including About, are already floatable in this sense, not just the search boxes (which already had

[RELEASE] Python 3.9.4 hotfix is now available

2021-04-04 Thread Łukasz Langa
Python 3.9.3 was released two days ago on Friday, April 2nd. It contains important security content listed below for reference. Unfortunately, it also introduced an unintentional ABI incompatibility, making some C extensions built with Python 3.9.0 - 3.9.2 crash with Python 3.9.3 on 32-bit

[issue43655] Tkinter: make X window & macOS recognize dialogs as such

2021-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Epaine (or Tal?): please test PR-25187 on Mac. -- nosy: +epaine title: Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog -> Tkinter: make X window & macOS recognize dialogs as such ___ Python tracker

Matplotlib scale

2021-04-04 Thread Julien Hofmann
Hi everyone, I've created a code to run a 2D mapping using matplotlib from a .csv file. I've tried to set the maximum color (red) of the scale as 80% of the maximum value and not as the maximum value of my .csv file. Does someone know how to modify that? I've tried different solution but it

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, we can use libabigail. For instance: root@7a3947dec3d8:/pytho# abidiff Python-3.9.2/python Python-3.9.3/python Functions changes summary: 0 Removed, 3 Changed (53 filtered out), 0 Added functions Variables changes summary: 0 Removed, 0 Changed

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-04 Thread Chris Angelico
On Mon, Apr 5, 2021 at 2:21 AM jak wrote: > > I modified your code in the following way: > > line 65-66: > from: > > if (qty <= alternate["per_minute"] > and (costs[Extractor], costs) > (alternate["costs"][Extractor], > alternate["costs"]) > > to: > if (qty <=

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: For example, the tool generates this report for the two 3.9 versions (attached to the issue). -- Added file: https://bugs.python.org/file49935/compat_report.html ___ Python tracker

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-04-04 Thread Tim Peters
Tim Peters added the comment: I think it's time to change what address_in_range() tries to answer. It currently gives a precise answer to "is this byte address in a region obmalloc owns?". But that's stronger than what it needs to do its job: the real question is "is this an address that

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We could have a buildbot using https://github.com/lvc/abi-compliance-checker -- ___ Python tracker ___

[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 25187 makes all Tkinter dialog windows and most IDLE dialog windows (except about and help windows) be recognized as dialogs by window managers on macOS and X Window. It conforms the behavior of standard Tk dialog windows. This change is harmless

[issue43655] Tkinter: Not setting _NET_WM_WINDOW_TYPE on FileDialog

2021-04-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23929 pull_request: https://github.com/python/cpython/pull/25187 ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Indeed. In particular given the 3.9.3 issue I was assuming such a test should include asserting both the sizeof() ABI structs and offsetof() public members of all ABI structs. On each specific first class supported platform. This goes beyond what

[issue38794] Setup: support linking openssl statically

2021-04-04 Thread Christian Heimes
Christian Heimes added the comment: Lukas, no, some guy called Bill approached me at our last Illuminati meeting in Hollow Earth. He asked me to implement static linking for his next-gen secret brain chip. In exchange for the favor I was allowed to ride his T-Rex. True story! Thanks,

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-04 Thread David Bolen
David Bolen added the comment: No longer needed after commit c368ce74d2c9bcbf1ec320466819c2d4768252f7 -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24275] lookdict_* give up too soon

2021-04-04 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 7.0 -> 8.0 pull_requests: +23928 pull_request: https://github.com/python/cpython/pull/25186 ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-04 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +23927 pull_request: https://github.com/python/cpython/pull/25185 ___ Python tracker ___ ___

[issue43724] macOS cannot compute sizeof (long double)

2021-04-04 Thread Ned Deily
Ned Deily added the comment: P.S. Also check System Preferences -> Software Update for any updates to the Command Line Tools. -- ___ Python tracker ___

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-04 Thread jak
Il 04/04/2021 18:18, jak ha scritto: Il 04/04/2021 11:13, Chris Angelico ha scritto: On Sun, Apr 4, 2021 at 6:26 PM jak wrote: Il 01/04/2021 01:14, Chris Angelico ha scritto: copy / paste corrupted the tabs, sorry -- https://mail.python.org/mailman/listinfo/python-list

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-04 Thread jak
Il 04/04/2021 11:13, Chris Angelico ha scritto: On Sun, Apr 4, 2021 at 6:26 PM jak wrote: Il 01/04/2021 01:14, Chris Angelico ha scritto: I think this code makes some sort of argument in the debate about whether Python has too much flexibility or if it's the best metaprogramming toolset in

[issue43724] macOS cannot compute sizeof (long double)

2021-04-04 Thread Ned Deily
New submission from Ned Deily : >From the config.log you supplied, it looks the macOS system you are running on >was upgraded to the current latest version, 11.2.3, but the Command Line Tools >were not. It seems that with recent macOS releases, you often need to do that >manually for each

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2021-04-04 Thread Steve Newcomb
Steve Newcomb added the comment: Sometimes a leak is exactly what's wanted, i.e. a standing block of shared memory that allows sharing processes come and go ad libitum. I mention this because I haven't seen anyone mention it explicitly. While turicas's monkeypatch covers the use case in

[issue43704] ShareableList() raises TypeError when passing "name" keyword

2021-04-04 Thread Steve Newcomb
Steve Newcomb added the comment: The documentation, which needs some improvement, I think. I'll suggest some improvements when I understand things a little better. For the record, it turned out that SharedMemoryManager was irrelevant, as were sockets. That makes sense since memory can't

[issue41370] PEP 585 and ForwardRef

2021-04-04 Thread miss-islington
miss-islington added the comment: New changeset d56bcf915b8d5a6afe4555cb6813c8210824e751 by Miss Islington (bot) in branch '3.9': [3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH-25183) (GH-25184)

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-04 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : When importing the curses module, be it on Windows or Darwin or UNIX-based OS or any other platform, if the _curses module is not found then just a ModuleNotFoundError is raised. But this error is not very informational in case of _curses module. Since

[issue41370] PEP 585 and ForwardRef

2021-04-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +23926 pull_request: https://github.com/python/cpython/pull/25184 ___ Python tracker

[issue41370] PEP 585 and ForwardRef

2021-04-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 2b5913b4ee5852a28ca1509478f5582beb3aff7b by Ken Jin in branch 'master': bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (#25183) https://github.com/python/cpython/commit/2b5913b4ee5852a28ca1509478f5582beb3aff7b

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR 25182 fixes the issue, so I am closing this again. Thanks for the quick fix, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset aadd4e10fda87b64ea527667238503da326a06e7 by Irit Katriel in branch 'master': bpo-24160: Fix test_pdb refleaks failure (GH-25182) https://github.com/python/cpython/commit/aadd4e10fda87b64ea527667238503da326a06e7 --

[issue41570] Add DearPyGui to faq/gui.rst

2021-04-04 Thread Irit Katriel
New submission from Irit Katriel : Jonathan, I see you closed the PR. Did you intend to close this issue as well? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue41370] PEP 585 and ForwardRef

2021-04-04 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 7.0 -> 8.0 pull_requests: +23925 pull_request: https://github.com/python/cpython/pull/25183 ___ Python tracker ___

[issue20626] Manager documentation unclear about lists and thread safeness

2021-04-04 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: 1. A link was added in commit 86a76684269f940a20366cb42668f1acb0982dca 2. The Programming Guidelines mentions thread safety of proxies: https://docs.python.org/3/library/multiprocessing.html#programming-guidelines Can this be closed? --

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Irit Katriel
Irit Katriel added the comment: With the patch: PS C:\Users\User\src\cpython-dev> ./python -m test test_pdb -R 3:3 Running Debug|x64 interpreter... 0:00:00 Run tests sequentially 0:00:00 [1/1] test_pdb beginning 6 repetitions 123456 .. == Tests result: SUCCESS == 1 test OK. Total

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +23924 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25182 ___ Python tracker ___

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Irit Katriel
Irit Katriel added the comment: Thanks, I'm looking. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Per our buildbot policy (https://discuss.python.org/t/policy-to-revert-commits-on-buildbot-failure/404) we will need to revert this in 24 hours if is not fixed to avoid masking future errors. -- ___

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately PR21989 has breaking the refleaks buildbots. Example: https://buildbot.python.org/all/#/builders/320/builds/226/steps/5/logs/stdio To reproduce: ❯ ./python -m test test_pdb -R 3:3 0:00:00 load avg: 1.40 Run tests sequentially 0:00:00

[issue43719] Master build failure on Windows getting file system encoding

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Fixed by https://github.com/python/cpython/pull/25172 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue43725] Create a release branch ABI stability regression test

2021-04-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is probably complementary or in the avenue of https://www.python.org/dev/peps/pep-0652/ -- nosy: +pablogsal, petr.viktorin ___ Python tracker

[issue43727] futures cancelled by ThreadPoolExecutor.shutdown() not yielded by as_completed()

2021-04-04 Thread bbh
New submission from bbh : concurrent.futures.ThreadPoolExecutor.shutdown(cancel_futures=True) cancels the pending futures, but the futures remain in the state CANCELLED and never get to the state CANCELLED_AND_NOTIFIED. Thus they are never yielded by concurrent.futures.as_completed(). If I

[issue42823] Incorrect frame.f_lineno when frame.f_trace is set

2021-04-04 Thread Ned Batchelder
Change by Ned Batchelder : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

Re: About \033[m

2021-04-04 Thread Skip Montanaro
>Porque quando se usa formatac,ao de cores, o python nao consegue > centralizar dentro da cadeia de 40 caracteres ? > >Tive que colocar 54 no parametro pois de alguma forma esta sendo >considerado os caracteres de dentro do comando \033[m Python doesn't know there is anything

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-04 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c7b0feca25fc68ec3e0884b82e5f45a4da011e8e by Gregory P. Smith in branch '3.9': [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179) https://github.com/python/cpython/commit/c7b0feca25fc68ec3e0884b82e5f45a4da011e8e

[issue42500] crash with unbounded recursion in except statement

2021-04-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c7b0feca25fc68ec3e0884b82e5f45a4da011e8e by Gregory P. Smith in branch '3.9': [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179) https://github.com/python/cpython/commit/c7b0feca25fc68ec3e0884b82e5f45a4da011e8e

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-04 Thread Chris Angelico
On Sun, Apr 4, 2021 at 6:26 PM jak wrote: > > Il 01/04/2021 01:14, Chris Angelico ha scritto: > > I think this code makes some sort of argument in the debate about > > whether Python has too much flexibility or if it's the best > > metaprogramming toolset in the world. I'm not sure which side of

[issue43726] regex module fails with a quantified backref but succeeds with repeated backref

2021-04-04 Thread David Ellsworth
David Ellsworth added the comment: Thanks, I didn't realize. I thought it was an official module that wasn't included as part of the main package due to being unfinished. Reported the bug here: https://bitbucket.org/mrabarnett/mrab-regex/issues/408/regex-fails-with-a-quantified --

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23923 pull_request: https://github.com/python/cpython/pull/25181 ___ Python tracker ___

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-04 Thread hai shi
hai shi added the comment: > Perhaps it would be better that compiling them not be attempted with > configuring --with-trace-refs? +1. The limited C API can't be build under Py_TRACE_REFS now. -- ___ Python tracker

[issue27129] Wordcode, part 2

2021-04-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset c368ce74d2c9bcbf1ec320466819c2d4768252f7 by Dennis Sweeney in branch 'master': bpo-27129: Update magic numbers and bootstrapping for GH-25069 (GH-25172) https://github.com/python/cpython/commit/c368ce74d2c9bcbf1ec320466819c2d4768252f7

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-04 Thread hai shi
Change by hai shi : -- pull_requests: +23922 pull_request: https://github.com/python/cpython/pull/25180 ___ Python tracker ___ ___

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-04 Thread jak
Il 01/04/2021 01:14, Chris Angelico ha scritto: I think this code makes some sort of argument in the debate about whether Python has too much flexibility or if it's the best metaprogramming toolset in the world. I'm not sure which side of the debate it falls on, though. class Building:

[issue43726] regex module fails with a quantified backref but succeeds with repeated backref

2021-04-04 Thread Patrick Reader
Patrick Reader added the comment: The `regex` module is a third-party package, not part of the Python standard library. Please report issues here: https://bitbucket.org/mrabarnett/mrab-regex/issues -- nosy: +pxeger ___ Python tracker

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171) https://github.com/python/cpython/commit/3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b --

[issue43726] regex module fails with a quantified backref but succeeds with repeated backref

2021-04-04 Thread David Ellsworth
New submission from David Ellsworth : The regex /^((x*)\2{3}(?=\2$))*x$/ matches powers of 5 in unary, expressed as strings of "x" characters whose length is the number. The following command line should print "1", but prints nothing: python -c 'import regex;