[issue41892] use both "for in" and "ElementTree.remove" has a index bug

2020-10-02 Thread Stefan Behnel
Change by Stefan Behnel : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > it's totally clear to me what @total_ordering should do > -- it should define __le__, __gt__ and __ge__ in terms > of __lt__, and leave __lt__ alone, for some subclass to > implement. +1 -- ___ Python

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tom Karzes
Tom Karzes added the comment: Thanks Tim and Terry. Stackless Python sounds interesting. It's nice to know that others had the same idea I did, although I tend to shy away from exotic variants since they tend to be less well-supported. Any chance that CPython will go stackless at some

[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-02 Thread Guido van Rossum
Guido van Rossum added the comment: [Terry] > But why should not parsing remove indents for 'eval' mode? I dunno, but it's been doing this since 1992, so I think it would be fragile to change. The best thing therefore is to make ast.literal_eval() match it exactly. --

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Guido van Rossum
Guido van Rossum added the comment: I still like to have a helper that recalculates the abstractness status of a class after adding some new methods (or deleting some). I would prefer the isinstance(cls, ABCMeta) check to be inside that helper, so that you could call it unconditionally

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'm going to ignore this issue until you two have reached agreement. > I recommend using some example code. That won't be necessary. I now understand what the OP is trying to do and am going to recommend against it. Guido, this really a decision for

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tim Peters
Tim Peters added the comment: Right, generators played no essential role here. Just one way of piling up a tall tower of C stack frames. Search the web for "stackless Python" for the history of attempts to divorce the CPython implementation from the platform C stack. There are ways to

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another "We are not responsible, proceed at your own risk" operation is importing ctypes, which allows one to overwrite bytes in the running python. -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved status: open -> closed

[issue41911] Language reference incorrectly says comparison expressions return boolean values

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: For rich comparisons, a proper explanation is given in the rich comparison entry in the datamodel section ( #41910) "A rich comparison method may return the singleton NotImplemented if it does not implement the operation for a given pair of arguments. By

[issue41915] unittest.mock.create_autospec(Obj, instance=True) has self keyword in _spec_signature if Obj implements __call__

2020-10-02 Thread Ethan Tang US
New submission from Ethan Tang US : When an `unittest.mock.create_autospec(Obj, instance=True)` is used, and said Obj implements the `__call__(self, ...)` function, the mocked instance of it will take the full function signature including the `self` argument. This will then cause an issue

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The word 'object' in this section is a bit confusing because it refers to any Python object, not to base class 'object' or an instance thereof. I suspect that this usage predates the introduction of the latter in 2.2. This interpretation is required for

[issue41913] EnvBuilder.install_scripts should use explicit permissions

2020-10-02 Thread Johan Herland
Change by Johan Herland : -- nosy: +jherland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41908] Make IDLE Start Menu entry more descriptive

2020-10-02 Thread Eryk Sun
Eryk Sun added the comment: > maybe we should consider moving the bitness to the folder title > (so the folder becomes "Python 3.8 64-bit")? Splitting up the start-menu entries into separate "Python 3.9 (32-bit)" and "Python 3.9 (64-bit)" folders would reduce clutter in the folder when

[issue41887] ast.literal_eval does not accept strings with leading whitespaces

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc for literal_eval says "evaluate ... a string containing a Python literal or container display." To me, ' 1' qualifies, just as it does as an expression for eval(). The exception comes from parsing raising IndentationError with leading whitespace

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33533] Provide an async iterator version of as_completed

2020-10-02 Thread Justin Arthur
Change by Justin Arthur : -- title: Provide an async-generator version of as_completed -> Provide an async iterator version of as_completed ___ Python tracker ___

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21516 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22505 ___ Python tracker

[issue41878] python3 fails to use custom mapping object as symbols in eval()

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Robert, this tracker is for patching CPython, not for debugging user code. If, as it appears, you are not suggesting the former, please close this. For the latter, python-list and stackoverflow.com are appropriate forums. -- nosy: +terry.reedy

[issue41877] Check against misspellings of assert etc. in mock

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vedran, you explained why many use pytest instead of unittest. But we have the latter and a stability policy. I am not familiar with the existing mock code, but one already invented solution for misspelling tolerance without enumeration is the soundex

[issue33533] Provide an async-generator version of as_completed

2020-10-02 Thread Justin Arthur
Justin Arthur added the comment: Thanks, Hrvoje. I've updated the patch to match this bug's suggested format and have updated the documentation and What's New. The one quirk that comes with the benefit of getting the same futures back is that we still allow both coroutines and futures to be

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Guido van Rossum
Guido van Rossum added the comment: I'm going to ignore this issue until you two have reached agreement. I recommend using some example code. -- ___ Python tracker ___

[issue41866] Document error in chinese version of contextlib.

2020-10-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18228] AIX locale parsing failure

2020-10-02 Thread Irit Katriel
Irit Katriel added the comment: Looks like this can be closed. -- nosy: +iritkatriel status: pending -> open ___ Python tracker ___

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tom Karzes
Tom Karzes added the comment: I tested this some more, and one thing became clear that I hadn't realized before: This bug has nothing to do specifically with generators (as I had thought), but is in fact due purely to the recursion limit. I created a recursive test program that doesn't use

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tim Peters
Tim Peters added the comment: There is no way in portable ANSI C to deduce a "safe" limit. The limits that exist were picked by hand across platforms, to be conservative guesses at what would "never" break. You're allowed to increase the limit if you think you know better - and you may! No

[issue41914] test_pdb fails

2020-10-02 Thread Sumagna Das
Change by Sumagna Das : -- title: test_pdb fails wit -> test_pdb fails ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41914] test_pdb fails wit

2020-10-02 Thread Sumagna Das
New submission from Sumagna Das : I was thinking about contributing to cpython so i cloned it and followed the tests mentioned on devguide.python.org. When i ran my tests, it failed on two of them: test_pdb and test_ssl. test_ssl had an issue already as i found here. test_pdb failure was the

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tom Karzes
Tom Karzes added the comment: That is a good point, except I don't believe the value needed to expose this bug is a "too-high limit" (as the documentation calls it). I set it to 100100 for convenience, but in practice even a value of 17000 is more than enough to expose the bug on my system

[issue36094] When using an SMTP SSL connection,, get ValueError.

2020-10-02 Thread Alice Bevan-McGregor
Alice Bevan-McGregor added the comment: Howdy! One of my projects, Marrow Mailer (formerly TurboMail) has received a bit of a flood of reports and erroneous pull requests attempting to correct this bug in the invocation of smtplib by Mailer. https://github.com/marrow/mailer/issues/83 is

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tim Peters
Tim Peters added the comment: The docs are already clear about that you play with `setrecursionlimit()` at your own risk: """ Set the maximum depth of the Python interpreter stack to limit. This limit prevents infinite recursion from causing an overflow of the C stack and crashing Python.

[issue41906] logging.config.dictConfig does not work with callable filters

2020-10-02 Thread Vinay Sajip
Vinay Sajip added the comment: You make reasonable points. I won't close this issue, and get to those updates when I can/as time allows. Meanwhile, if you or someone else proposes specific changes by way of a pull request, I'll look at that too. And thanks for your kind words about the

[issue39710] "will be returned as unicode" reminiscent from Python 2

2020-10-02 Thread Sumagna Das
Sumagna Das added the comment: Can i take on this issue? If yes, what am I supposed to do except for removing those lines which are mentioned? -- nosy: +sumagnadas ___ Python tracker

[issue41913] EnvBuilder.install_scripts should use explicit permissions

2020-10-02 Thread Frederik Rietdijk
Frederik Rietdijk added the comment: Nixpkgs issue https://github.com/NixOS/nixpkgs/issues/99156. -- ___ Python tracker ___ ___

[issue41913] EnvBuilder.install_scripts should use explicit permissions

2020-10-02 Thread Frederik Rietdijk
New submission from Frederik Rietdijk : Creating a venv with `python3 -m venv foo` and then reinitializing it with `python3 -m venv foo` fails with a `Error: [Errno 13] Permission denied: '/path/to/cwd/foo/bin/activate.fish'` with the CPython interpreters from Nixpkgs. The method

[issue40391] io.FileIO.mode doesn't comply with the docs

2020-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a duplicate of issue25341. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> File mode wb+ appears as rb+ ___ Python tracker

[issue41912] Long generator chain causes segmentation fault

2020-10-02 Thread Tom Karzes
New submission from Tom Karzes : If I create a sufficiently long chain of generators, I encounter a segmentation fault. For example, the following works as expected: % ./gen_bug3.py 1 1 % But for sufficiently larger chain lengths, it seg faults: % ./gen_bug3.py

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

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

2020-10-02 Thread Larry Hastings
Larry Hastings added the comment: FWIW: I think David's cited behavior proves that the GIL is de facto a scheduler. And, in case you missed it, scheduling is a hard problem, and not a solved problem. There are increasingly complicated schedulers with new approaches and heuristics.

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Ethan Furman
Change by Ethan Furman : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +21515 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22497 ___ Python tracker

[issue40391] io.FileIO.mode doesn't comply with the docs

2020-10-02 Thread Irit Katriel
Irit Katriel added the comment: The mode string is calculated here: https://github.com/python/cpython/blob/master/Modules/_io/fileio.c#L1055 and is based on these four values in the fileio struct: unsigned int created : 1; unsigned int readable : 1; unsigned int writable : 1;

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread miss-islington
miss-islington added the comment: New changeset 6dc8e0eb9b471f6665f841216a6b2d83741b3973 by Miss Islington (bot) in branch '3.9': bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291) https://github.com/python/cpython/commit/6dc8e0eb9b471f6665f841216a6b2d83741b3973

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Ben Avrahami
Ben Avrahami added the comment: This is a behavior that the PR changes. total_ordering should be able to override/implement abstract methods (in my opinion). If this ends up a strickling point then we can exclude total_ordering from this issue. Regardless, I think that this behavior is

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread miss-islington
miss-islington added the comment: New changeset ab32ea8d79d6bfb6580d35bfc4aa42d2729c0bcf by Miss Islington (bot) in branch '3.8': bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291) https://github.com/python/cpython/commit/ab32ea8d79d6bfb6580d35bfc4aa42d2729c0bcf

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: You might be misunderstanding what @total_ordering does. It can't be used by subclasses to override abstract methods. >>> from abc import abstractmethod, ABC >>> from functools import total_ordering >>> class X(ABC): @abstractmethod def

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21513 pull_request: https://github.com/python/cpython/pull/22493 ___ Python tracker

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +21514 pull_request: https://github.com/python/cpython/pull/22494 ___ Python tracker ___

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 20ce62f00957d11f24f6449cd5c0ef5dd67174d4 by Campbell Barton in branch 'master': bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291) https://github.com/python/cpython/commit/20ce62f00957d11f24f6449cd5c0ef5dd67174d4

[issue41908] Make IDLE Start Menu entry more descriptive

2020-10-02 Thread E. Paine
E. Paine added the comment: Do we need to include the bitness (IDLE doesn't care)? On Windows, it will also be included in the Python start-menu folder, so maybe we should consider moving the bitness to the folder title (so the folder becomes "Python 3.8 64-bit")? However, I also want to

[issue41802] Missing documentation for 'PyDict_DelItem' behavior

2020-10-02 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 1.0 -> 2.0 pull_requests: +21512 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22291 ___ Python tracker

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

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

[issue41911] Language reference incorrectly says comparison expressions return boolean values

2020-10-02 Thread Brett Cannon
New submission from Brett Cannon : https://docs.python.org/3/reference/expressions.html#comparisons claims that "Comparisons yield boolean values: True or False." But that's not necessarily true: ```python >>> class Spam: ... def __eq__(self, _): return 42 ... >>> Spam() == object() 42

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Brett Cannon
New submission from Brett Cannon : If you look at the data model `for object.__eq__` (https://docs.python.org/3.8/reference/datamodel.html#object.__eq__) you will see that it doesn't mention any actual implementation (unlike for __ne__). But

[issue40455] GCC 10 compiler warnings

2020-10-02 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41902] Micro optimization for range.index if step is 1

2020-10-02 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41901] Added some explaining to pickle errors.

2020-10-02 Thread Marco Sulla
Marco Sulla added the comment: I closed it for this reason: https://github.com/python/cpython/pull/22438#issuecomment-702794261 -- stage: -> resolved status: open -> closed ___ Python tracker

[issue41906] logging.config.dictConfig does not work with callable filters

2020-10-02 Thread raybb
raybb added the comment: Thank you for the clarification. I think I was most confused by the docs on this page (which I should have included in my initial post): https://docs.python.org/3/howto/logging.html It says: "In Python 3.2, a new means of configuring logging has been introduced,

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think that the backport to 3.8 may have some unintended consequences in the last patch release as venv created with 3.8 now exhibit the pip regression (https://github.com/pypa/pip/issues/8695.). Steve, would you be ok if we bump all branches

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-02 Thread László Kiss Kollár
László Kiss Kollár added the comment: pip 20.2.1 contains a regression which breaks `--system-site-package` integration: https://github.com/pypa/pip/issues/8695. It would be nice to include the latest patch version (20.2.3 at the moment) which fixes this and a few other issues. --

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

2020-10-02 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41894] UnicodeDecodeError during load failure in non-UTF-8 locale

2020-10-02 Thread Tal Einat
Change by Tal Einat : -- versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Ethan Furman
Ethan Furman added the comment: Thank you for the bug report. Another solution would be to subclass IntFlag and specify the `__format__` method: from enum import IntFlag as _IntFlag class IntFlag(_IntFlag): def __format__(self, spec): return format(self.value,

[issue41909] Segfault on __getattr__ infinite recursion on certain attribute accesses

2020-10-02 Thread Florian Bruhin
Change by Florian Bruhin : -- nosy: +The Compiler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2020-10-02 Thread STINNER Victor
STINNER Victor added the comment: The function is now deprecated. Thanks for the review INADA-san, I close the issue. Let's meet in Python 3.12 to remove it ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue41692] Deprecate immortal interned strings: PyUnicode_InternImmortal()

2020-10-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 583ee5a5b1971a18ebeb877948ce6264da0cc8aa by Victor Stinner in branch 'master': bpo-41692: Deprecate PyUnicode_InternImmortal() (GH-22486) https://github.com/python/cpython/commit/583ee5a5b1971a18ebeb877948ce6264da0cc8aa --

[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-10-02 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +21510 pull_request: https://github.com/python/cpython/pull/22477 ___ Python tracker ___

[issue41909] Segfault on __getattr__ infinite recursion on certain attribute accesses

2020-10-02 Thread Ran Benita
Change by Ran Benita : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41909] Segfault on __getattr__ infinite recursion on certain attribute accesses

2020-10-02 Thread Ran Benita
New submission from Ran Benita : The following program crashes with a segfault: class Segfault: def __getattr__(self, name): self.unknown_attribute instance = Segfault() issubclass(instance, int) # int doesn't matter Tested with Python 3.7, 3.8, 3.9rc2, and master in debug mode

[issue41902] Micro optimization for range.index if step is 1

2020-10-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would need to carefully look at the PRs to estimate the maintenance cost, but it seems to me initially that all these operations happen very rarely in regular code and probably will have no impact on macro benchmarks. In general, I dislike branches

[issue41908] Make IDLE Start Menu entry more descriptive

2020-10-02 Thread Terry J. Reedy
New submission from Terry J. Reedy : A current python-list thread "Problem" is about the difficulties beginners have getting started immediately after installation. I believe it started with another beginner asking about getting the modify/repair note. One other thing that came up is that

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: I believe the regression is due to GH-14545 which "fixed" bpo-37479. The news entry states: "When `Enum.__str__` is overridden in a derived class, the override will be used by `Enum.__format__` regardless of whether mixin classes are present." . The

[issue33533] Provide an async-generator version of as_completed

2020-10-02 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Hi, thanks for providing a PR. One thing I noticed is that the implementation in the PR yields results of the futures from the generator. This issue proposes a generator that instead yields the futures passed to as_completed. This is needed not just for

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Ben Avrahami
Ben Avrahami added the comment: Good points all, that I will try to address one by one: Firstly, this function is by no means mandatory for "post-creation mixins". Such tools can still be used without calling it (and remain ABC unaware), with absolutely no change in functionality. Indeed,

[issue41907] Regression in IntFlag behaviour in f-string

2020-10-02 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29127] Incorrect reference names in asyncio.subprocess documentation

2020-10-02 Thread Kyle Stanley
Kyle Stanley added the comment: I can confirm that both on the latest version of the docs (for 3.8) and for the version mentioned in the issue (3.6), the issue mentioned with asyncio.subprocess.PIPE is no longer present. (It was likely fixed in the asyncio documentation overhaul that

[issue41906] logging.config.dictConfig does not work with callable filters

2020-10-02 Thread Vinay Sajip
Vinay Sajip added the comment: The value of the '()' key should be a factory - something that returns a filter (either something that has a filter method or a callable). That returned callable, or the filter method, will be called with a LogRecord and its return value used to determine

[issue17490] Improve ast.literal_eval test suite coverage

2020-10-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue17490] Improve ast.literal_eval test suite coverage

2020-10-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -21504 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41902] Micro optimization for range.index if step is 1

2020-10-02 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner @pablo @mark On my local machine (without cpu isolation), PR 22480 does not affect performance issues. import pyperf runner = pyperf.Runner() runner.timeit(name="bench long divide", stmt=""" for i in range(1, 256): a = 1 // i