[issue42932] How to handle import tripartite pacakge issue in unittest scripts for python expect mock.Mock

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Please try a user forum. E.g. stackoverflow. -- nosy: +gvanrossum resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

Re: conceptual problem (was: A beginning beginner's question about input, output and . . .

2021-01-14 Thread Greg Ewing
On 14/01/21 11:49 am, Cameron Simpson wrote: The "pure" OOP approach, where method calls are used as messages to set or fetch aspects of the object, is usually does with getter and setter methods like: x = o.getX() o.setX(9) People use get and set methods, not because it's somehow

Re: why sqrt is not a built-in function?

2021-01-14 Thread Greg Ewing
Aother thing to consider is that math.sqrt is not the only sqrt function in Python. There is also one in cmath, and in the wider ecosystem, another one in numpy. Being explicit about which one you're using is a good thing. Concerning exponentiation, it can be used to achieve the same thing as

[issue42932] How to handle import tripartite pacakge issue in unittest scripts for python expect mock.Mock

2021-01-14 Thread lizhu
New submission from lizhu <2541058...@qq.com>: Hi, all When i use unittest to test my package which import other pacakge, however other pacakge use more and more tripartite pacakges, and it has an impact on test case, example: occur an err: moduleNotFindErro how to fix this issue?

[issue42877] TracebackException saves more data than it needs for format

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42877] TracebackException saves more data than it needs for format

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 4c94d74152a511d977fe26a4f3a32b7352ba9024 by Irit Katriel in branch 'master': bpo-42877: add the 'compact' param to TracebackException's __init__ (#24179) https://github.com/python/cpython/commit/4c94d74152a511d977fe26a4f3a32b7352ba9024

[issue42927] Inline cache for slots

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for all the positive feedback! What is the next step? -- ___ Python tracker ___ ___

[issue42893] Strange XPath search behavior of xml.etree.ElementTree.Element.find

2021-01-14 Thread robpats
robpats added the comment: Thanks for the pointer. I didn't notice this paragraph. xml.etree.ElementTree.Element.find currently returns None if XPath expression is invalid or unsupported. I think it should also return None if position predicates are not preceded by a tag name. It would be

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In order to test code.InteractiveCompiler (used by IDLE) and codeop._maybe_compile (which IC calls), which calls compile() 3 times with mode 'single', I entered the example as 2 or 3 lines in Shell. >>> [file for str(file) in [] # Error highlight on 's'. ]

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, Victor's one liner failed on repository debug builds with Windows' process error popup. I have seen this mysterious failure at least once when testing IDLE Shell running on the repository build. After the patch, my debug build gives the

Re: why sqrt is not a built-in function?

2021-01-14 Thread Eli the Bearded
In comp.lang.python, Ethan Furman wrote: > On 1/14/21 11:06 AM, Eli the Bearded wrote: >> "There should be one-- and preferably only one --obvious way to do it." >> Plus the ** operation ("root = x ** 0.5"), that's now three ways. > Yes, but which of those is obvious? If it's up to me, the **

[issue42927] Inline cache for slots

2021-01-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 Thanks for this. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42931] Include randbytes in random.__all__

2021-01-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

Friday Finking: Abstract Base Classes - love or hate

2021-01-14 Thread dn via Python-list
Do you make frequent use of Abstract Base Classes (ABCs), prefer to use an ordinary super-class for the same purpose, or steer-clear? Are they more-usually employed when the project includes an extensive design stage, and the meta-class integral to some hierarchy of entities? Previous Friday

[issue42931] Include randbytes in random.__all__

2021-01-14 Thread Setrak Balian
Change by Setrak Balian : -- keywords: +patch pull_requests: +23044 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24219 ___ Python tracker ___

RE: why sqrt is not a built-in function?

2021-01-14 Thread Avi Gross via Python-list
Ethan, if it is not obvious, then should we add the following functions just in case? cube_root() fourth_root() nth(root) two_thirds_root() e_th_root() pi_th_root()

[issue42931] Include randbytes in random.__all__

2021-01-14 Thread Setrak Balian
Change by Setrak Balian : -- components: Library (Lib) nosy: sbalian priority: normal severity: normal status: open title: Include randbytes in random.__all__ type: behavior versions: Python 3.10, Python 3.9 ___ Python tracker

[issue42929] On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename

2021-01-14 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.10 ___ Python tracker ___

[issue42929] On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename

2021-01-14 Thread Eryk Sun
Eryk Sun added the comment: shutil.move() has always fallen back on copy/unlink if os.rename() fails. This used to be clearly documented to account for the behavior of os.rename() in Windows, but the details were obscured over multiple rewrites. Currently the documentation makes it seem

Re: Exploring terminfo

2021-01-14 Thread Grant Edwards
On 2021-01-14, Eli the Bearded <*@eli.users.panix.com> wrote: > When I've wanted to do simple things like bold and clear, I've used the > tput(1) tool. You can capture stdout from the tool and use the output > over and over. Typically I've done this in shell scripts: > > #!/bin/sh > bold=$(tput

[issue33809] Expose `capture_locals` parameter in `traceback` convenience functions

2021-01-14 Thread Irit Katriel
Irit Katriel added the comment: On the other hand, I think it makes sense to add a print() method to TracebackException so that you can do TracebackException.from_exception(ex, capture_locals=True).print(file) or whatever other combination of current or future params. --

Re: Exploring terminfo

2021-01-14 Thread Grant Edwards
On 2021-01-14, Barry Scott wrote: > It seems that curses does not allow you to mix raw stdin/stdout with > its calls. (got that idea from a quick web search). That is definitely the case. Output in curses is done to an in-memory virtual terminal screen. Optimized output is then sent (at some

[issue7946] Convoy effect with I/O bound threads and New GIL

2021-01-14 Thread Stuart Axon
Stuart Axon added the comment: Catching up on the comments on this, it seems like nobody has enough certainty to say it will work well enough. In Linux, the scheduler is pluggable, which lets other non-default schedulers be shipped and tried in the real world. - See schedutil, introduced

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-14 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: This is now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Exploring terminfo

2021-01-14 Thread Eli the Bearded
In comp.lang.python, Barry Scott wrote: > Alan Gauld via Python-list wrote: >> I've written a short program that is supposed to >> - *clear the screen*, >> - read some input >> - display the result in a message *highlighted in bold*. >> - get input to end the program > It seems that curses does

[issue42930] xml.parsers.expat results differ buffer_text and / or buffer_size

2021-01-14 Thread Michael XU
New submission from Michael XU : More details available here: https://stackoverflow.com/questions/65676934/python-xml-parsers-expat-results-differ-based-on-buffer-text-true-or-false-and Raw data to replicate the issue is available upon request. -- components: XML messages: 385086

Re: count consecutive elements

2021-01-14 Thread Wolfram Hinderer via Python-list
Am 13.01.2021 um 22:20 schrieb Bischoop: I want to to display a number or an alphabet which appears mostly consecutive in a given string or numbers or both Examples s= ' aabskaaabad' output: c # c appears 4 consecutive times 8bbakebaoa output: b #b appears 2 consecutive times You can

Re: Question - problem downloading Python

2021-01-14 Thread Barry Scott
> On 14 Jan 2021, at 06:52, christine tiscareno wrote: > > I installed in my lap-top your latest version of Python (3.9.1), yet when I > go to cmd.exe to check, I get that I have Python 22.7.17 ??? > > Why? What should I do to get the latest version? > > I tried going back to fix

[issue42827] pegen parser: Multiline eval with assignment to function call: assertion failed

2021-01-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e5fe509054183bed9aef42c92da8407d339e8af8 by Lysandros Nikolaou in branch 'master': bpo-42827: Fix crash on SyntaxError in multiline expressions (GH-24140) https://github.com/python/cpython/commit/e5fe509054183bed9aef42c92da8407d339e8af8

Re: Exploring terminfo

2021-01-14 Thread Barry Scott
> On 14 Jan 2021, at 16:12, Alan Gauld via Python-list > wrote: > > During lockdown I've been digging deeper into the curses module > and lately into the ti family of functions that reside there. > > I've written a short program that is supposed to > - *clear the screen*, > - read some

[issue42929] On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename

2021-01-14 Thread fireattack
fireattack added the comment: Sorry, I should link https://docs.python.org/3/library/shutil.html#shutil.move for latest doc. But the content is the same. -- ___ Python tracker

[issue42929] On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename

2021-01-14 Thread fireattack
New submission from fireattack : According to https://docs.python.org/3.8/library/shutil.html#shutil.move "If the destination already exists but is not a directory, it may be overwritten depending on os.rename() semantics." I interpret "depending on os.rename() semantics" to mean it will

[issue42927] Inline cache for slots

2021-01-14 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Question - problem downloading Python

2021-01-14 Thread vincent . vandevyvre
On 14/01/21 07:52, Christine Tiscareno wrote: >I installed in my lap-top your latest version of Python (3.9.1), yet when I >go to cmd.exe to check, I get that I have Python 22.7.17 ??? > >Why? What should I do to get the latest version? > I tried going back to fix problems and it does not fix

[issue42877] TracebackException saves more data than it needs for format

2021-01-14 Thread Irit Katriel
Irit Katriel added the comment: As discussed on the PR: Since __context__ is documented, we can't just optimize it away. Instead we add a new param "compact", defaulted to False, which controls whether this optimization should be applied. Module level functions in traceback pass True since

Re: why sqrt is not a built-in function?

2021-01-14 Thread Ethan Furman
On 1/14/21 11:06 AM, Eli the Bearded wrote: "There should be one-- and preferably only one --obvious way to do it." Meanwhile, Alan Gauld pointed out: AG> because pow() is a builtin function and AG> root = pow(x,0.5) AG> is the same as AG> root = math.sqrt(x) Plus the **

[issue42927] Inline cache for slots

2021-01-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > This is a great result, IMO. I'm +1 to merge this. Same here. It would be good if Inada-san could confirm the benchmarks. > Can you add a new one `read_slots`? That should be "read_instancevar_slots". Or you refer to some other check? --

[issue42927] Inline cache for slots

2021-01-14 Thread Yury Selivanov
Yury Selivanov added the comment: > Some microbenchmarks: Can you add a new one `read_slots`? -- ___ Python tracker ___ ___

[issue42927] Inline cache for slots

2021-01-14 Thread Yury Selivanov
Yury Selivanov added the comment: > So it seems that everything is in the noise range except the "float" > benchmark that is 1.11x faster Yeah, this is why. https://github.com/python/pyperformance/blob/master/pyperformance/benchmarks/bm_float.py#L12 This is a great result, IMO. I'm +1 to

[issue42927] Inline cache for slots

2021-01-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Some microbenchmarks: CURRENT MASTER: Variable and attribute read access: 4.5 ns read_local 5.8 ns read_nonlocal 7.8 ns read_global 7.8 ns read_builtin 21.2 ns read_classvar_from_class 19.1 ns

[issue42927] Inline cache for slots

2021-01-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: So it seems that everything is in the noise range except the "float" benchmark that is 1.11x faster -- ___ Python tracker ___

[issue42927] Inline cache for slots

2021-01-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: These are the results: venv ❯ python -m pyperf compare_to json_old/* -G --min-speed=2 --table +-+--+--+ | Benchmark |

Re: why sqrt is not a built-in function?

2021-01-14 Thread Chris Angelico
On Fri, Jan 15, 2021 at 6:11 AM Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, Skip Montanaro wrote: > > Finally, should have never considered it, I think you might want to > > study the output of > > > > import this > > > > Think on the second and last lines in

Re: why sqrt is not a built-in function?

2021-01-14 Thread Eli the Bearded
In comp.lang.python, Skip Montanaro wrote: > Finally, should have never considered it, I think you might want to > study the output of > > import this > > Think on the second and last lines in particular. >>> import this The Zen of Python, by Tim Peters Beautiful is better than

[issue42920] How to add end_lineno in pyclbr?

2021-01-14 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: It is actually much easier now, considering that we are operating on the AST instead of the token stream. You probably only have to add a new field to Function/Class classes for end_lineno and access .end_lineno attribute here just like how we do for

[issue42920] How to add end_lineno in pyclbr?

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Hopefully Batuhan (who changed this code ~2 months ago) or Cheryl (who reviewed your previous patch) can help you. You can just close your existing PR and create a new one, still linking to your original issue 38307. -- nosy: +BTaskaya,

Re: why sqrt is not a built-in function?

2021-01-14 Thread Chris Angelico
On Fri, Jan 15, 2021 at 5:56 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-01-14 at 17:54:55 +, > Alan Gauld via Python-list wrote: > > > My question is: why do we even have a sqrt() in the > > math module given that pow() and ** are already there? > > Probably because the

Re: why sqrt is not a built-in function?

2021-01-14 Thread 2QdxY4RzWzUUiLuE
On 2021-01-14 at 17:54:55 +, Alan Gauld via Python-list wrote: > My question is: why do we even have a sqrt() in the > math module given that pow() and ** are already there? Probably because the standard C math library has such a function, and Python's math module is (or at least was)

Re: why sqrt is not a built-in function?

2021-01-14 Thread Ethan Furman
On 1/14/21 9:44 AM, Denys Contant wrote: I don't understand why sqrt is not a built-in function. Why do we have to first import the function from the math module? I use it ALL THE TIME! And thousands, tens of thousands, and maybe hundreds of thousands don't. That felt good. Thank you. Any

Re: why sqrt is not a built-in function?

2021-01-14 Thread Alan Gauld via Python-list
On 14/01/2021 17:44, Denys Contant wrote: > I don't understand why sqrt is not a built-in function. > Why do we have to first import the function from the math module? > I use it ALL THE TIME! because pow() is a builtin function and root = pow(x,0.5) is the same as root = math.sqrt(x) As is

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: They did not imply it was a bug, just that they don't know enough about Python to be able help you. As I said, this tracker is not a help forum (you're taking valuable time away from core developers). Try this forum: https://discuss.python.org/c/users/7 .

Re: why sqrt is not a built-in function?

2021-01-14 Thread Skip Montanaro
> I don't understand why sqrt is not a built-in function. > Why do we have to first import the function from the math module? > I use it ALL THE TIME! For one, it's specific to numeric types. You might use it all the time, but I (for example) almost never need to use it, or to import the math

[issue42925] Error trace of else inside class

2021-01-14 Thread Mark Shannon
Mark Shannon added the comment: It's a bug. -- assignee: -> Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: why sqrt is not a built-in function?

2021-01-14 Thread jak
Il 14/01/2021 18:44, Denys Contant ha scritto: I don't understand why sqrt is not a built-in function. Why do we have to first import the function from the math module? I use it ALL THE TIME! That felt good. Thank you. >>> val=16 >>> exp=2 >>> val ** (1/exp) 4.0 >>> --

why sqrt is not a built-in function?

2021-01-14 Thread Denys Contant
I don't understand why sqrt is not a built-in function. Why do we have to first import the function from the math module? I use it ALL THE TIME! That felt good. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: A beginning beginner's question about input, output and . . .

2021-01-14 Thread Peter Pearson
On Wed, 13 Jan 2021 21:46:08 - (UTC), Grant Edwards wrote: > On 2021-01-13, Peter Pearson wrote: [snip] >> Browsergui is not widely popular (I don't think anybody but me has >> mentioned it on this newsgroup), but it was written to be simple and >> Pythonic, and has served me well.

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
John Brearley added the comment: Hi Guido: So the Adafruit CircuitPython forum has already said they aren't really sure this is their issue or not, see: https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15/issues/66 What else would I need to do to get this looked at by people

Re: conceptual problem

2021-01-14 Thread Alan Gauld via Python-list
On 13/01/2021 15:37, songbird wrote: > my momentary conceptual problem is that to me OOP means > being able to encapsulate data structures and code from > other parts of the program, That's true, but encapsulation simply means that the data and functions are contained within a single entity -

Question - problem downloading Python

2021-01-14 Thread christine tiscareno
I installed in my lap-top your latest version of Python (3.9.1), yet when I go to cmd.exe to check, I get that I have Python 22.7.17 ??? Why? What should I do to get the latest version? I tried going back to fix problems and it does not fix it, that is how I got your email. How can I get

Re: count consecutive elements

2021-01-14 Thread Bischoop
On 2021-01-13, Bischoop wrote: I know what was wrong: > m = s.index(i) I forgot that m will return first index of i. So tried that way but still getting out of index although I that that I'm making sure not to get out of index. s = 'aabskaaabadh' c = 0 t = list(set(s)) #

[ANN] PyYAML-5.4b1: Linux and Mac users, please test wheels!

2021-01-14 Thread Matt Davis
=== Announcing PyYAML-5.4b1 === A beta release of PyYAML is now available: https://github.com/yaml/pyyaml/releases/tag/5.4b1 This release contains a security fix for CVE-2020-14343. It removes the python/module, python/object, and python/object/new tags

Exploring terminfo

2021-01-14 Thread Alan Gauld via Python-list
During lockdown I've been digging deeper into the curses module and lately into the ti family of functions that reside there. I've written a short program that is supposed to - *clear the screen*, - read some input - display the result in a message *highlighted in bold*. - get input to end

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, this is not a help forum. Please try a user forum. Probably you have to find one with people using the Adafruit modules (and CircuitPython?). -- nosy: +gvanrossum resolution: -> third party stage: -> resolved status: open -> closed

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
Change by John Brearley : Added file: https://bugs.python.org/file49743/print_data.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
Change by John Brearley : Added file: https://bugs.python.org/file49742/ada_dbg2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
New submission from John Brearley : The first attached script ada_dbg1.py.txt which uses simple hardcoded import statements, the creation of ads1115 objects work fine. The second attached script ada_dbg2.py.txt uses a loop to import a variable list of packages, which allows for more graceful

Wing Python IDE 7.2.8 has been released

2021-01-14 Thread Wingware
Wing 7.2.8 fixes reformatting selections for PEP8, corrects completion of code reformatting in remote files when code is unchanged, fixes problems analyzing incomplete 'def async' statements, correctly handles refactor module rename when the target name exists, adds a preference to control the

Re: count consecutive elements

2021-01-14 Thread Dan Stromberg
On Wed, Jan 13, 2021 at 6:20 PM Dan Stromberg wrote: > On Wed, Jan 13, 2021 at 5:59 PM Tim Chase > wrote: > >> On 2021-01-13 21:20, Bischoop wrote: >> > I want to to display a number or an alphabet which appears mostly >> > consecutive in a given string or numbers or both >> > Examples >> > s=

ANN: Wing Python IDE 7.2.8 has been released

2021-01-14 Thread Wingware
Wing 7.2.8 fixes reformatting selections for PEP8, corrects completion of code reformatting in remote files when code is unchanged, fixes problems analyzing incomplete 'def async' statements, correctly handles refactor module rename when the target name exists, adds a preference to control the

[issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb

2021-01-14 Thread Irit Katriel
Irit Katriel added the comment: This will be resolved once we push PR 21989, which resets the breakpoints before the test so the breakpoint number here is always 1. -- nosy: +iritkatriel, taleinat versions: +Python 3.10 -Python 3.6, Python 3.7, Python 3.8

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2021-01-14 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29842] Make Executor.map work with infinite/large inputs correctly

2021-01-14 Thread David Lukeš
David Lukeš added the comment: Any updates on this? Making Executor.map lazier would indeed be more consistent and very useful, it would be a shame if the PR went to waste :) It's a feature I keep wishing for in comparison with the older and process-only multiprocessing API. And eventually,

[issue42927] Inline cache for slots

2021-01-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will try to run today the pyperformance test suite to see if there is any impact on standard attribute access -- ___ Python tracker

[issue39273] ncurses does not include BUTTON5_* constants

2021-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue39273] ncurses does not include BUTTON5_* constants

2021-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 14cfa325c298ceb9eaf6b585a3cdcabf6c6378a9 by Zackery Spytz in branch 'master': bpo-39273: Expose BUTTON5_* constants in the curses module if available (GH-17996)

[issue42927] Inline cache for slots

2021-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Slot means so many different things in Python. Here it's about data descriptors created when you set __slots__ in the class definition. It is amazing that so large speed up can be achieved for such base operation. -- nosy: +serhiy.storchaka