[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?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for my tastes"

Yeah. I think only after looking back at the code after writing it I see it is 
too convoluted. I guess the code can remain as some artifact to show why not to 
down this path (unless some convenient way to implement it is introduced in the 
future).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 test completes.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35885] configparser: indentation

2020-03-30 Thread Ido Michael


Ido Michael  added the comment:

ping

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 asyncio to be dependent on 
the executors using atexit and daemon threads.

I'll see if I can figure it out, but this one might be a bit tricky to 
troubleshoot.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 post a PR with the fixes. This 
shouldn't require any new events, as far as I can tell.

--
assignee: steve.dower
messages: 365356
nosy: steve.dower
priority: normal
severity: normal
stage: needs patch
status: open
title: socket module missing audit events
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 situation even worse.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 size larger than PY_SSIZE_T_MAX).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 don't think that we officially 
support xlc, but it's more "best effort" support.)

You can use the new buildbot label to test you change on more platforms.""" - 
vstinner

Per https://www.python.org/dev/peps/pep-0007/ we require some C99 features as 
of CPython 3.6.  It does not currently list Flexible array member.

I'll be very surprised if we find any compiler that does not support this.

I'll run this through the buildbot testing as you suggested and assuming 
nothing important falls out, see that we add this to the C99 required feature 
list.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is a big deal as 
compilers are generally not _yet_ making use of this detail AFAIK.

--
assignee: gregory.p.smith
components: Interpreter Core
messages: 365349
nosy: gregory.p.smith
priority: normal
severity: normal
stage: patch review
status: open
title: Undefined C behavior going beyond end of struct via a char[1].
type: compile error
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +brett.cannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 upgraded beyond 45.0.0 

I can provide a PR that fixes this, (either by using glob.glob() to find the 
exact .whl available. or by extending the tuple in _PROJECTS.)

--
messages: 365344
nosy: anthon
priority: normal
severity: normal
status: open
title: ensurepip should use ifferent pattern for pip/setuptool wheel files
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 box with
  The Python Shell window is already executing a command;
   please wait until it is finished.
Then the attribute error error appears.

Explanation: Run Module first compiles the editor code to check for syntax 
errors.  If successful, it 1. restarts the execution process, which *resets 
executing to False*; 2. runs internal commands with runcommand (called twice) 
to change working directory, augment sys.path, and possibly change sys.args.  
3. runs the compiled user code with runcode.  Thus, the buggy 'executing' 
clause cannot be triggered.

Run Customized with "Restart shell" unchecked skips the restart and 'executing' 
may be left True.  If so, runcommand displays the message above and returns 
False, instead of running the command and returning True.  The runscript code 
currently ignores the return and calls runcode anyway. 

Guiding principle: The effect of running with run customized with given 
settings should not depend on whether executable happens to be true when the 
first runcommand is called.  I verified with time.sleep(15) that a statement 
can finish executing and executable reset to False while a user is reading the 
first 'executing' message.  Since setting args has be skipped, the run should 
be stopped.

Fixes:
1. Only display one 'executing' message.  Either make the 2nd runcommand 
conditioned on the first succeeding, or combine the two partial duplicate 
runcommand calls into one.  I will start with the first.


2. Improve the error message.  The user should only run without restart when 
there is a waiting '>>>' prompt and may need to take action (respond to 
input(), close a tkinter window, restart a hung execution).  The message should 
say 'Try again' since execution will not happen.

3. Don't run the users code after the message is given.

4. Fix the AttributeError as specified in my previous message.  For running 
editor code, runcode will again not ever be called with executing True, and it 
may be that the clause could be deleted.  But I am not sure what is possible is 
IDLE is started with both -s (run IDLESTARTUP or PYTHONSTARTUP) and -r file 
(run file), both of which also call runcode.

--
stage: patch review -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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()
def func(...):
...

When you pass maxsize and typed you do not pass a function as an argument of 
lru_cache, you pass it as an argument of the decorator created by the 
lru_cache() call.

@lru_cache(maxsize=128, typed=False)
def func(...):
...

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 reasons, so unexpected accepting may signal about using 
inefficient or incorrect algorithm.

For example, choice() works not only with lists, but with other sequences, so 
the implementation which works only with lists (for example the C 
implementation which uses the concrete C API) will fail with new tests. If we 
fix this hypothetical implementation by converting the argument to list (which 
would be inefficient for large collections), other new tests (which check that 
sets and iterators are not accepted) will fail.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 regret going down this path.

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 threads from :mod:`concurrent.futures` by adding
an internal `threading._register_atexit()`, which calls registered functions
prior to joining all non-daemon threads. This allows for compatibility
with subinterpreters, which don't support daemon threads.

The leaking test is:

$ ./python -m test --fail-env-changed -R 3:3 test_asyncio -m 
test.test_asyncio.test_events.EPollEventLoopTests.test_run_in_executor_cancel
0:00:00 load avg: 0.56 Run tests sequentially
0:00:00 load avg: 0.56 [1/1] test_asyncio
beginning 6 repetitions
123456
..
test_asyncio leaked [1, 1, 1] references, sum=3
test_asyncio leaked [2, 1, 1] memory blocks, sum=4
test_asyncio failed

== Tests result: FAILURE ==

1 test failed:
test_asyncio

Total duration: 4.2 sec
Tests result: FAILURE

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
https://github.com/python/cpython/pull/18832#issuecomment-596910350).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Python install and not an embedded version. But 
for a regular install it should still find all the (site) libraries, so I think 
it'll be fine in basically every case.

--
resolution:  -> fixed
stage: patch review -> commit review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is to actually raise NotImplementedError 
yourself, or ValaueError if that's what you really want to see.

Changing version numbers, since this feature could only go in to 3.9.

--
nosy: +eric.smith
type: behavior -> enhancement
versions: +Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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):
   if optional:
   self.opt = optional
   self.attr = attr

The class AlwaysShared always has shared keys, whereas the class 
SometimesShared is not shared if `optional` is True for first instantiation, 
but False for a later instantiation.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
severity: normal
status: open
title: os.stat in linux shows the wrong inode
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file49015/python_bug.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 dtype

--
components: Interpreter Core
messages: 365323
nosy: Hameer Abbasi
priority: normal
severity: normal
status: open
title: __round__ doesn't behave well with return NotImplemented
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = auto()
B = auto()
def _generate_next_value_(name, *args):
return name

for l in (E):
print(l.name)
print(l.value)

--
nosy: +ankeshsaha
Added file: https://bugs.python.org/file49014/Issue40025.PNG

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, f'a{count}', count)

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = DEFAULT

   def __init__(self, attr, optional=None):
   if optional:
   self.opt = optional
   self.attr = attr

This is a reasonable way to write a class, but has unpredictable memory use.
In the attached example, per-instance dict size goes from 104 bytes to 232 
bytes when sharing is prevented.

The language specification says that the dicts maintain insertion order, but 
the wording implies that this only to explicit dictionaries, not instance 
attribute or other namespace dicts.

Either we should allow key sharing in these cases, or clarify the documentation.

--
components: Interpreter Core
files: compact_dict_prevents_key_sharing.py
messages: 365319
nosy: Mark.Shannon, inada.naoki
priority: normal
severity: normal
stage: test needed
status: open
title: Regression in memory use of shared key dictionaries for "compact dicts"
type: behavior
Added file: 
https://bugs.python.org/file49013/compact_dict_prevents_key_sharing.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
test_asyncio leaked [3, 3, 24] references, sum=30
test_asyncio leaked [3, 3, 26] memory blocks, sum=32

--
components: Tests, asyncio
messages: 365318
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: test_asyncio leaked [3, 3, 3] references, sum=9
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 separated 
words in function names. Examples: "getenv" not "get_env", "setpriority" not 
"set_priority", etc.

Using "_to_" in the function name reduces the risk of conflict with a future 
addition to the libc. It's rare that libc function names use "_". One of the 
few exception: get_current_dir_name() which is a glibc extension.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

Now that `ast.unparse` is in (bpo-38870), can this patch be simplified?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


>>> all(x == 1 for x in [1, 1, 1])
True
""".strip(), file=fp)

result = doctest.testfile(filename, globs=globals())
print("result:", result)
---

--
nosy: +vstinner
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 better and can see the backward motion, perhaps you could 
adjust the drawing to make it more obvious. Hide the turtle and change the pen 
colour perhaps?

--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 there is no way to pass the actual maxsize value.

The PR implementation supports both signatures
lru_cache(maxsize=128, typed=False)
lru_cache(user_function, maxsize=128, typed=False)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
status: open
title: Turtle demo
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file49011/spike.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
status: open
title: AIX: xlc - default path changed and no longer recognized
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 it is now a good idea to have this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com