[issue40037] py_compile.py quiet undefined in main function

2020-03-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I feel it's the same. It also reports about the undeclared variable just being found by bad file used with py_compile. It was also reported at https://bugs.python.org/issue39743. Can you please explain why this is not a duplicate? --

[issue38976] Add support for HTTP Only flag in MozillaCookieJar

2020-03-30 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
brendon zhang added the comment: np! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for putting some thought into this. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
Change by brendon zhang : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
brendon zhang added the comment: "lru_cache(maxsize=128, typed=False)(user_function)" oh ok! I overlooked that you could do this. There isn't really a need then for supporting user_function w/ the maxsize argument in single call. "The code in the PR is valiant attempt but is way too tricky

[issue40103] ZipFile.extractall is not multiprocess safe with regard to directory creation.

2020-03-30 Thread Nathan Silberman
Change by Nathan Silberman : -- keywords: +patch pull_requests: +18597 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19216 ___ Python tracker

[issue40108] Improve error message for -m option when .py is present

2020-03-30 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 2.0 -> 3.0 pull_requests: +18596 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19239 ___ Python tracker

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: > I'll see if I can figure it out, but this one might be a bit tricky to > troubleshoot. Oh yes, I know that fixing such issue can be very tricky. For example, there is no threading._unregister_atexit() function. Maybe the callback stays alive after the

[issue39725] unrelated `from None` exceptions hide prior exception information

2020-03-30 Thread Ido Michael
Change by Ido Michael : -- nosy: -Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35885] configparser: indentation

2020-03-30 Thread Ido Michael
Ido Michael added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40121] socket module missing audit events

2020-03-30 Thread Steve Dower
Steve Dower added the comment: In my defense(?), it was working fine everywhere except Windows. And I'm pretty sure I was working in WSL for this change *shrug* With the PR, it will match the documentation. -- ___ Python tracker

[issue37009] Threading and THREAD_SAFE for AIX

2020-03-30 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > this patch assures that the define is added to BASECFLAGS for AIX - and will > not be forgotten during builds. @Micheal.Felt I can't see an attached patch or PR, FYI. -- nosy: +BTaskaya ___ Python tracker

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-30 Thread Kyle Stanley
Kyle Stanley added the comment: > This change introduced a leak in test_asyncio: bpo-40115. Thanks for bringing attention to it Victor. It seems like a rather odd side effect, considering that PR-19149 had no C code and was internal to concurrent.futures and threading. I did not expect

[issue40121] socket module missing audit events

2020-03-30 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +18595 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19238 ___ Python tracker

[issue39734] Deprecate readinto() fallback path in _pickle.c

2020-03-30 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +18594 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19237 ___ Python tracker

[issue39943] Meta: Clean up various issues in C internals

2020-03-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18593 pull_request: https://github.com/python/cpython/pull/19236 ___ Python tracker ___

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: The SC approved the PEP! Łukasz, do you want to submit the PR to update the PEP status? We should get the implementation reviewed (e.g. by Serhiy) and land it before alpha 6 goes out, April 22 (we should aim for a week before at least). --

[issue40121] socket module missing audit events

2020-03-30 Thread Steve Dower
New submission from Steve Dower : Some of the events it was supposed to raise are not being raised. This is likely my fault for not adding the thorough testing in the test suite at the time (I'm uncovering them now with a different test suite...) I'll do a thorough review of this module and

[issue37390] Generate table of audit events for docs

2020-03-30 Thread Steve Dower
Steve Dower added the comment: All seems to be fine now. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: (Oops typo) If buildbots remain red, we will *miss* other regressions which would make the situation even worse. -- ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since it introduced a regression on buildbots. If no fix is found soon (let's say in 1 or 2 days), I will revert the change to get more time to investigate. If buildbots remain red, we will be other regressions which would make the

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: Alexander Riccio: Do you know want to propose a change to replace direct usage of malloc/realloc/free with PyMem_Malloc, PyMem_Realloc and PyMem_RawFree? It would add their builtin debug feature for free, and also detect most obvious buffer overflow (reject

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 51e3e450fbed46198d9be92add1a5dee6a1f7f41 by Alexander Riccio in branch 'master': bpo-40020: Fix realloc leak on failure in growable_comment_array_add (GH-19083) https://github.com/python/cpython/commit/51e3e450fbed46198d9be92add1a5dee6a1f7f41

[issue40120] Undefined C behavior going beyond end of struct via a char[1].

2020-03-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: >From the PR comment thread (as I opened that first): """Well, there was no other choice in ISO C89 than using char ob_sval[1];, no? Is char ob_sval[]; supported by the C compiler supported by CPython? Like Visual Studio, GCC, clang and xlc (AIX)? (I

[issue40120] Undefined C behavior going beyond end of struct via a char[1].

2020-03-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40120] Undefined C behavior going beyond end of struct via a char[1].

2020-03-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +18592 pull_request: https://github.com/python/cpython/pull/19232 ___ Python tracker ___

[issue40120] Undefined C behavior going beyond end of struct via a char[1].

2020-03-30 Thread Gregory P. Smith
New submission from Gregory P. Smith : The correct C99 way to do this is using a char[]. PyBytesObject and unicode's struct encoding_map both do this. Unclear to me if we should backport this to earlier versions or not (because PyBytesObject may be exposed?) Probably, but I also doubt it

[issue40046] Increase test coverage of the random module

2020-03-30 Thread Carol Willing
Carol Willing added the comment: Thanks Serhiy for the explanation. I agree with Raymond about the doc change. Raymond, These tests, after reading Serihy's response, make sense to me. Let's revisit and reconsider the PR on the tests without the doc change. Thanks! --

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If CO_FUTURE_DIVISION conflicts with PyCF_ALLOW_TOP_LEVEL_AWAIT, does not CO_ITERABLE_COROUTINE conflict with PyCF_SOURCE_IS_UTF8 and CO_ASYNC_GENERATOR with PyCF_DONT_IMPLY_DEDENT? -- ___ Python tracker

[issue39943] Meta: Clean up various issues in C internals

2020-03-30 Thread Brett Cannon
Brett Cannon added the comment: New changeset fc2d8d62af25be90f5fd490df141a775d9619b23 by Andy Lester in branch 'master': bpo-39943: Remove unnecessary casts in import.c that remove constness (GH-19209) https://github.com/python/cpython/commit/fc2d8d62af25be90f5fd490df141a775d9619b23

[issue40108] Improve error message for -m option when .py is present

2020-03-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for investigating this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40119] ensurepip should use different pattern for pip/setuptool wheel files

2020-03-30 Thread Anthon van der Neut
Change by Anthon van der Neut : -- title: ensurepip should use ifferent pattern for pip/setuptool wheel files -> ensurepip should use different pattern for pip/setuptool wheel files ___ Python tracker

[issue40119] ensurepip should use ifferent pattern for pip/setuptool wheel files

2020-03-30 Thread Anthon van der Neut
New submission from Anthon van der Neut : Setuptools, starting with minor version 45.1.0 no longer is a -py2.py3-none-any.whl file, but a -py3-none-any.whl file. In ensurepip's __init__.py the former is hard-coded, so the setuptools shipping with python (for 3.9.0a5 this is 41.2.0) cannot be

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reproducer: In Shell, run "input('prompt'), Without giving a response, so that input is left 'executing', switch to editor with valid code, select "Run... Customized", unselect "Restart shell", and select OK. One will twice see and have to click away a

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use lru_cache(maxsize=128, typed=False)(user_function). lru_cache should support a function as an argument on if it is a single positional argument, this is the purpose. So you can write @lru_cache def func(...): ... instead of @lru_cache()

[issue40094] Add os.waitstatus_to_exitcode() function

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: Ok, I chose os.waitstatus_to_exitcode() name. I updated my PR. -- title: Add os.status_to_exitcode() function -> Add os.waitstatus_to_exitcode() function ___ Python tracker

[issue40046] Increase test coverage of the random module

2020-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, of course. The PR adds new tests for different types of arguments which currently are accepted (so it would be a regression if they will no accepted in new releases or in alternate implementations) and for types which currently are not accepted for

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since the current signature allows *maxsize* and *typed* to be either positional or keyword arguments, we couldn't do this cleanly the way dataclasses did. The code in the PR is valiant attempt but is way too tricky for my tastes -- we would likely

[issue40037] py_compile.py quiet undefined in main function

2020-03-30 Thread Georgy Kibardin
Georgy Kibardin added the comment: This is not a duplicate of https://bugs.python.org/issue38731. quiet is is still undefined in main() -- nosy: +Georgy Kibardin ___ Python tracker

[issue40037] py_compile.py quiet undefined in main function

2020-03-30 Thread Georgy Kibardin
Georgy Kibardin added the comment: Please, reopen. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40046] Increase test coverage of the random module

2020-03-30 Thread Carol Willing
Carol Willing added the comment: Hi Raymond and Serhiy, Serhiy, Was there a specific use case or regression that you felt the tests would be helpful? -- nosy: +willingc ___ Python tracker

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: bench_parser.py: Benchmark for AbstractBasicAuthHandler.http_error_auth_reqed(). -- Added file: https://bugs.python.org/file49016/bench_parser.py ___ Python tracker

[issue40117] __round__ doesn't behave well with return NotImplemented

2020-03-30 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40115] test_asyncio leaked [3, 3, 3] references, sum=9

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: The leak was introduced by: commit b61b818d916942aad1f8f3e33181801c4a1ed14b (HEAD, refs/bisect/bad) Author: Kyle Stanley Date: Fri Mar 27 15:31:22 2020 -0400 bpo-39812: Remove daemon threads in concurrent.futures (GH-19149) Remove daemon

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: > bpo-39812: Remove daemon threads in concurrent.futures (GH-19149) This change introduced a leak in test_asyncio: bpo-40115. -- nosy: +vstinner ___ Python tracker

[issue36144] Dictionary union. (PEP 584)

2020-03-30 Thread Guido van Rossum
Guido van Rossum added the comment: I guess we should keep this open until Raymond Hettinger has given feedback on https://github.com/python/cpython/pull/18832 (where we have the option of changing to Brandt's proposal from

[issue40117] __round__ doesn't behave well with return NotImplemented

2020-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you want to get a TypeError, raise a TypeError. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue40069] Clear .lst files for AIX

2020-03-30 Thread David Edelsohn
David Edelsohn added the comment: Likely somewhere in the Python configuration process it is probing a command line option that emits a .lst file. -- ___ Python tracker ___

[issue8901] Windows registry path not ignored with -E option

2020-03-30 Thread Steve Dower
Steve Dower added the comment: I'm 99% satisfied that this change is the right approach (rather than adding a new option), but we'll have to wait to hear from beta feedback I think. My main concern is users who pass -E on the command line to avoid environment variables, but are relying on a

[issue8901] Windows registry path not ignored with -E option

2020-03-30 Thread Steve Dower
Steve Dower added the comment: New changeset 676b105111e2399ed400cd13ab113f9aa891760d by Zackery Spytz in branch 'master': bpo-8901: Windows registry path is now ignored with the -E option (GH-18169) https://github.com/python/cpython/commit/676b105111e2399ed400cd13ab113f9aa891760d

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2020-03-30 Thread Tapas Kundu
Change by Tapas Kundu : -- nosy: +tapakund nosy_count: 14.0 -> 15.0 pull_requests: +18591 pull_request: https://github.com/python/cpython/pull/19231 ___ Python tracker ___

[issue40117] __round__ doesn't behave well with return NotImplemented

2020-03-30 Thread Eric V. Smith
Eric V. Smith added the comment: NotImplemented is documented as only being used for binary operators: https://docs.python.org/3/library/constants.html#NotImplemented Changing that seems like a pretty large issue. I'd suggest discussing this on python-ideas. Maybe better for your situation

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2020-03-30 Thread Mark Shannon
Mark Shannon added the comment: Just to clarify. class AlwaysShared: opt = DEFAULT def __init__(self, attr, optional=None): self.attr = attr if optional: self.opt = optional class SometimesShared: opt = DEFAULT def __init__(self, attr, optional=None):

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2020-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the current behavior is a guard against such pitfall. If you allow to add new keys when not all other keys are set, you can end with sharing growing set of keys. -- ___ Python tracker

[issue40118] os.stat in linux shows the wrong inode

2020-03-30 Thread omer sela
New submission from omer sela : when calling os.stat(fd).st_ino on with a file descriptor of a symbolic link it returns the inode of the original file and not of the link (picture attached) -- components: Library (Lib) files: python_bug.png messages: 365324 nosy: omer sela priority:

[issue40117] __round__ doesn't behave well with return NotImplemented

2020-03-30 Thread Hameer Abbasi
Change by Hameer Abbasi : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40117] __round__ doesn't behave well with return NotImplemented

2020-03-30 Thread Hameer Abbasi
New submission from Hameer Abbasi : Minimal reproducer: >>> class A: ... def __round__(self): ... return NotImplemented ... >>> round(A()) NotImplemented Should give a TypeError. This can be useful when deciding, for example, if a given a.dtype implements round based on the

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2020-03-30 Thread Mark Shannon
Mark Shannon added the comment: Indeed it shouldn't. How is that relevant? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-30 Thread Ankesh Saha
Ankesh Saha added the comment: Hi, I have ran the code with with _generate_next_value_ method at the bottom of the class and didn't run into any exceptions. Please refer my python file. Please let me know if I am missing something. from enum import Enum, auto class E(Enum): A =

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2020-03-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But the following class should not lead to unlimited memory consumption when create new instances: class C: count = 0 def __init__(self): count = self.__class__.count self.__class__.count = count + 1 setattr(self,

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2020-03-30 Thread Mark Shannon
New submission from Mark Shannon : The current implementation of dicts prevents keys from being shared when the order of attribute differs from the first instance created. This can potentially use a considerably larger amount of memory than expected. Consider the class: class C: opt =

[issue40077] Convert static types to PyType_FromSpec()

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

[issue40115] test_asyncio leaked [3, 3, 3] references, sum=9

2020-03-30 Thread STINNER Victor
New submission from STINNER Victor : x86 Gentoo Refleaks 3.x: https://buildbot.python.org/all/#/builders/16/builds/128 test_asyncio leaked [3, 3, 3] references, sum=9 test_asyncio leaked [3, 5, 3] memory blocks, sum=11 3:26:23 load avg: 3.78 Re-running test_asyncio in verbose mode

[issue40077] Convert static types to PyType_FromSpec()

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset 53e4c91725083975598350877e2ed8e2d0194114 by Dong-hee Na in branch 'master': bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202) https://github.com/python/cpython/commit/53e4c91725083975598350877e2ed8e2d0194114 --

[issue40094] Add os.status_to_exitcode() function

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: > Other name ideas: > * wait_status_to_exit_code() Well, anothe option is: * waitstatus_to_exitcode() While the documentation uses "exit code", the code commonly uses "exitcode" or "returncode". Moreover, in the os module, underscore is not used to

[issue23967] Make inspect.signature expression evaluation more powerful

2020-03-30 Thread Eric Wieser
Eric Wieser added the comment: > To make this work I had to write an ast printer that produces evaluatable > Python code. Note that it's not complete, I know it's not complete, it's > missing loads of operators. Assume that if this is a good idea I will add > all the missing operators.

[issue23967] Make inspect.signature expression evaluation more powerful

2020-03-30 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +Eric Wieser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37881] __text_signature__ parser doesn't handle globals in extension module

2020-03-30 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +Eric Wieser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-30 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +18590 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19230 ___ Python tracker ___

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
brendon zhang added the comment: update: ignore concern #1. I used __text_signature__ attribute to reset the inspect signature to something useful https://github.com/python/cpython/pull/19226/commits/eea367f64d2a83d0987a3f7a155ac015306e960b --

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-30 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Sending a patch that would prevent this collision. -- ___ Python tracker ___ ___

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-30 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Both PyCF_ALLOW_TOP_LEVEL_AWAIT and CO_FUTURE_DIVISION has same value. -- ___ Python tracker ___

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-30 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +lukasz.langa priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: This change caused python-gmpy2 tests to fail: https://bugzilla.redhat.com/show_bug.cgi?id=1817710 Reproducer: --- from __future__ import print_function, division import doctest filename = "doctest.txt" with open(filename, "w") as fp: print(""" Test

[issue40113] Turtle demo

2020-03-30 Thread Davide Golinelli
Davide Golinelli added the comment: I attacched a picture where you can see the cursor drawing backwars. the program is supposed to draw a function like y=sin(x) but is drawing y=abs(sin(x)). -- Added file: https://bugs.python.org/file49012/backwards.png

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: All PRs are now merged. Thanks to everybody who was involved in this issue. It's a nice speedup which is always good to take ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> performance

[issue40113] Turtle demo

2020-03-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Try changing the turtle to the arrow pointer and see if you can still see backwards movement. james.shape('arrow') -- ___ Python tracker

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset ce105541f8ebcf2dffcadedfdeffdb698a0edb44 by Petr Viktorin in branch 'master': bpo-37207: Use vectorcall for list() (GH-18928) https://github.com/python/cpython/commit/ce105541f8ebcf2dffcadedfdeffdb698a0edb44 --

[issue40113] Turtle demo

2020-03-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Perhaps this is just my old eyes, but I can't see where the turtle is going backwards. I can see it spinning, but it's not clear that the turtle position is moving backwards or if it is an illusion caused by the turtle spinning around. If your eyes are

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
brendon zhang added the comment: Two concerns is 1. the method signature (inspect.signature(lru_cache)) is not (maxsize=128, typed=False) anymore, and so it is poor documentation. 2. not good reuse of TypeErrors related to incorrect number of inputs / type of inputs. --

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
New submission from brendon zhang : Existing implementation of lru_cache user_function option supports typed_code argument, but does not support maxsize argument, because when we pass in the user function as a positional argument, it gets assigned to the maxsize parameter, and therefore

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
Change by brendon zhang : -- keywords: +patch pull_requests: +18588 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19226 ___ Python tracker ___

[issue40114] support maxsize argument for lru_cache's user_function option

2020-03-30 Thread brendon zhang
Change by brendon zhang : -- components: Library (Lib) nosy: brendon-zh...@hotmail.com, rhettinger priority: normal severity: normal status: open title: support maxsize argument for lru_cache's user_function option type: behavior versions: Python 3.8

[issue40113] Turtle demo

2020-03-30 Thread Davide Golinelli
New submission from Davide Golinelli : running the attacched simple program the turtle go backwards even if not asked. i added a sleep command in order to view the bug more easly -- components: Tests files: spike.py messages: 365303 nosy: Davide Golinelli priority: normal severity:

[issue40112] AIX: xlc - default path changed and no longer recognized

2020-03-30 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +18587 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19225 ___ Python tracker ___

[issue40112] AIX: xlc - default path changed and no longer recognized

2020-03-30 Thread Michael Felt
New submission from Michael Felt : The is a check if compiler is xlc, and skips a test if it is. XLC no longer installs in /usr/vac, and the test_search_cpp fails (again) -- components: Distutils messages: 365302 nosy: Michael.Felt, dstufft, eric.araujo priority: normal severity:

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2020-03-30 Thread Ionel Cristian Mărieș
Change by Ionel Cristian Mărieș : -- nosy: +ionelmc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40069] Clear .lst files for AIX

2020-03-30 Thread Michael Felt
Michael Felt added the comment: FYI: IMHO it is artifact of the way an xlc compiler is setup. Maybe this is a new default (I see they changed the names of config files). On my server (with xlc v11) I do not get them, but on a different server (with xlc v13) I do get .lst files. So, seems