[issue30951] Documentation error in inspect module

2020-03-22 Thread laike9m


Change by laike9m :


--
nosy: +laike9m

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-22 Thread hai shi


hai shi  added the comment:

> I noticed that caches on Lib/encodings/__init__.py and codec_search_cach of 
> PyInterpreterState are the places holding the refs. I removed those caches 
> and number went do to.

Good Catch, Paulo.
IMHO, caches is useful in codecs(it's improve the search efficiency).

I have two humble idea:
1. Clean all item of codec_search_xxx in `Py_Finalize()`;
2. change the refcount mechanism(in this case, refcount+1 or refcount+2 make no 
differenct);

--

___
Python tracker 

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



[issue40028] Math module method to find prime factors for non-negative int n

2020-03-22 Thread Tim Peters


Tim Peters  added the comment:

Jonathan, _almost_ no factoring algorithms have any use for a table of primes.  
Brute force trial division can use one, but that's about it.

A table of primes _is_ useful for implementing functions related to pi(x) = the 
number of primes <= x, and the bigger the table the better.  But that's not 
what this report is about.

Raymond, spinning up a process to factor a small integer is pretty wildly 
expensive and clumsy - even if you're on a box with gfactor.  This is the kind 
of frequently implemented thing where someone who knows what they're doing can 
easily whip up relatively simple Python code that's _far_ better than what most 
users come up with on their own.  For example, to judge from many stabs I've 
seen on StackOverflow, most users don't even realize that trial division can be 
stopped when the trial divisor exceeds the square root of what remains of the 
integer to be factored.

Trial division alone seems perfectly adequate for factoring 32-bit ints, even 
at Python speed, and even if it merely skips multiples of 2 and 3 (except, of 
course, for 2 and 3 themselves).

Pollard rho seems perfectly adequate for factoring 64-bit ints that _are_ 
composite (takes time roughly proportional to the square root of the smallest 
factor), but really needs to be backed by a fast "is it a prime?" test to avoid 
taking "seemingly forever" if fed a large prime.

To judge from the docs I could find, that's as far as gfactor goes too.  Doing 
that much in Python isn't a major project.  Arguing about the API would consume 
10x the effort ;-)

--

___
Python tracker 

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



[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Tim Peters


Tim Peters  added the comment:

I have scant memory of working on this code.  But back then Python wasn't at 
all keen to enforce type checking in harmless contexts.  If, e.g., someone 
found it convenient to pass integers that happened to be in float format to 
randrange(), why not?  Going "tsk, tsk, tsk" won't help them get their work 
done ;-)

If we were restarting from scratch, I'd be happy enough to say "screw floats 
here - _and_ screw operator.index() - this function requires ints, period".  
But, as is, I see insufficient benefit to potentially making code that's been 
working fine for decades "deprecated".

Yes, I realize the code may eventually become marginally faster then.  That 
doesn't, to my eyes, outweigh the certainty of annoying some users.

--
assignee: tim.peters -> 

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-22 Thread Paulo Henrique Silva


Paulo Henrique Silva  added the comment:

About half of the remaining refs are related to encodings. I noticed that 
caches on Lib/encodings/__init__.py and codec_search_cach of PyInterpreterState 
are the places holding the refs. I removed those caches and number went do to:

Before: 4382 refs left
After : 2344 refs left (-46%)

The way to destroy codec_search_cache was recently changed on #36854 and $38962.

(Not proposing to merge this, but my changes are at 
https://github.com/python/cpython/compare/master...phsilva:remove-codec-caches).

--

___
Python tracker 

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



[issue40045] Make "dunder" method documentation easier to locate

2020-03-22 Thread Kyle Stanley


Change by Kyle Stanley :


--
priority: normal -> low

___
Python tracker 

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



[issue40045] Make "dunder" method documentation easier to locate

2020-03-22 Thread Kyle Stanley


New submission from Kyle Stanley :

In a recent python-ideas thread, the rule of dunder methods being reserved for 
Python internal usage only was brought up 
(https://mail.python.org/archives/list/python-id...@python.org/message/GMRPSSQW3SXNCP4WU7SYDINL67M2WLQI/),
 due to an author of a third party library using them without knowing better. 
Steven D'Aprano linked the following section of the docs that defines the rule: 
https://docs.python.org/3/reference/lexical_analysis.html#reserved-classes-of-identifiers.
 

When I had attempted to search for the rule in the documentation (prior to the 
above discussion), I noticed that it was rather difficult to discover because 
it was written just as "System-defined names" with no mention of "dunder" 
(which is what the dev community typically refers to them as, at least in more 
recent history).

To make it easier for the average user and library maintainer to locate this 
section, I propose changing the first line to one of the following:

1) System-defined names, also known as "dunder" names.
2) System-defined names, informally known as "dunder" names.

I'm personally in favor of (1), but I could also see a reasonable argument for 
(2). If we can decide on the wording, it would make for a good first-time PR to 
the CPython docs.

--
assignee: docs@python
components: Documentation
keywords: easy, newcomer friendly
messages: 364832
nosy: aeros, docs@python
priority: normal
severity: normal
status: open
title: Make "dunder" method documentation easier to locate
type: enhancement
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



[issue21760] inspect documentation describes module type inaccurately

2020-03-22 Thread Furkan Önder

Furkan Önder  added the comment:

I sent a PR to fix a __file__ description.
https://github.com/python/cpython/pull/19097

--

___
Python tracker 

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



[issue40043] RegExp Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

2020-03-22 Thread SilentGhost


SilentGhost  added the comment:

Leon, this most likely is not a bug, not because what's stated in 
documentation, but because you're most likely not testing what you think you 
do. Here is the test that you should be doing:

>>> re.match(r'(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)', '>>

No match. If there is a different output in your setup, please provide both the 
output and the details of your system and Python installation.

--
nosy: +SilentGhost
stage:  -> 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



[issue15436] __sizeof__ is not documented

2020-03-22 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> I can add those changes if someone didn't take it already?

I think we've decided that this is an implementation specific detail.

--
resolution:  -> not a bug
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



[issue10572] Move test sub-packages to Lib/test

2020-03-22 Thread Ido Michael


Ido Michael  added the comment:

GH-18727

Only tkinter module for start.

--

___
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-22 Thread Ido Michael


Ido Michael  added the comment:

@SilentGhost Added documentation to the module and a test for a give space 
indent in the module test.

--

___
Python tracker 

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



[issue15436] __sizeof__ is not documented

2020-03-22 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



[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-03-22 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



[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-03-22 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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I've filed [Homebrew/brew#7204](https://github.com/Homebrew/brew/issues/7204) 
to track the testing/validation of this change against Homebrew.

--

___
Python tracker 

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



[issue39989] Output closing parenthesis in ast.dump() on separate line

2020-03-22 Thread Anthony Sottile


Anthony Sottile  added the comment:

fwiw, astpretty's output looks like the black output: 
https://github.com/asottile/astpretty

>>> astpretty.pprint(ast.parse('if x == y: y += 4').body[0])
If(
lineno=1,
col_offset=0,
test=Compare(
lineno=1,
col_offset=3,
left=Name(lineno=1, col_offset=3, id='x', ctx=Load()),
ops=[Eq()],
comparators=[Name(lineno=1, col_offset=8, id='y', ctx=Load())],
),
body=[
AugAssign(
lineno=1,
col_offset=11,
target=Name(lineno=1, col_offset=11, id='y', ctx=Store()),
op=Add(),
value=Num(lineno=1, col_offset=16, n=4),
),
],
orelse=[],
)

--
nosy: +Anthony Sottile

___
Python tracker 

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



[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Using index() simplifies the code. Adding deprecation warnings complicates it. 
The PR consists of two commits, look at the first one to see how the code can 
finally look.

If you think that the deprecation is not needed, we can just keep the 
simplified version.

--

___
Python tracker 

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



[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I'm generally against "fixing" things that aren't broken.  AFAICT, this has 
never been an issue for any real user over its 20 year history.  Also, the 
current PR makes the code look gross and may impact code that is currently 
working.  Tim, this is mostly your code, what do you think?

--
assignee:  -> tim.peters

___
Python tracker 

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



[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-22 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

The relevant info which seems to make the tests fail:

Properly detect EOF while reading in libssl. Previously if we hit an EOF while 
reading in libssl then we would report an error back to the application 
(SSL_ERROR_SYSCALL) but errno would be 0. We now add an error to the stack 
(which means we instead return SSL_ERROR_SSL) and therefore give a hint as to 
what went wrong.

Upstream PR: https://github.com/openssl/openssl/pull/10882

urllib3 issue: https://github.com/urllib3/urllib3/issues/1825

--
nosy: +cstratak

___
Python tracker 

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



[issue40044] Tests failing with the latest update of openssl to version 1.1.1e

2020-03-22 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

Closing it as duplicate of https://bugs.python.org/issue40018

--
resolution:  -> duplicate
stage:  -> 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



[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Many functions that accepts non-integer arguments (except float) and truncate 
them to integers emits a deprecation warning since 3.8 (see issue36048 and 
issue20092). They will be errors in 3.10 (see 37999).

--

___
Python tracker 

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



[issue40044] Tests failing with the latest update of openssl to version 1.1.1e

2020-03-22 Thread Charalampos Stratakis


New submission from Charalampos Stratakis :

The fedora rawhide buildbots started failing due to the latest update of 
openssl to version 1.1.1e.

e.g. https://buildbot.python.org/all/#/builders/607/builds/137

Changelog: https://www.openssl.org/news/cl111.txt

The relevant info which seems to make the tests fail:

Properly detect EOF while reading in libssl. Previously if we hit an EOF while 
reading in libssl then we would report an error back to the application 
(SSL_ERROR_SYSCALL) but errno would be 0. We now add an error to the stack 
(which means we instead return SSL_ERROR_SSL) and therefore give a hint as to 
what went wrong.

Upstream PR: https://github.com/openssl/openssl/pull/10882

urllib3 issue: https://github.com/urllib3/urllib3/issues/1825

--
assignee: christian.heimes
components: Library (Lib), SSL, Tests
messages: 364818
nosy: christian.heimes, cstratak
priority: normal
severity: normal
status: open
title: Tests failing with the latest update of openssl to version 1.1.1e
versions: Python 2.7, Python 3.6, Python 3.7, 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



[issue37319] Deprecate using random.randrange() with non-integers

2020-03-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +18473
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19112

___
Python tracker 

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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
resolution:  -> fixed
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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset 5765acaf64cc2c52ce8a35de9407faddf6885598 by Jason R. Coombs in 
branch '3.7':
[3.7] bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch 
(GH-9516) (GH-19111)
https://github.com/python/cpython/commit/5765acaf64cc2c52ce8a35de9407faddf6885598


--

___
Python tracker 

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



[issue40043] RegExp Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

2020-03-22 Thread Matthew Barnett


Matthew Barnett  added the comment:

The documentation is talking about whether it'll match at the current position 
in the string. It's not a bug.

--
resolution:  -> not a bug

___
Python tracker 

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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset c959fa9353b92ce95dd7fe3f25fe65bacbe22338 by Miss Islington (bot) 
in branch '3.8':
bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516) 
(GH-19110)
https://github.com/python/cpython/commit/c959fa9353b92ce95dd7fe3f25fe65bacbe22338


--

___
Python tracker 

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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +18472
pull_request: https://github.com/python/cpython/pull/19111

___
Python tracker 

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



[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
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



[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset bace59d8b8e38f5c779ff6296ebdc0527f6db14a by Serhiy Storchaka in 
branch 'master':
bpo-3: Improve compatibility of the ast module. (GH-19056)
https://github.com/python/cpython/commit/bace59d8b8e38f5c779ff6296ebdc0527f6db14a


--

___
Python tracker 

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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset 044cf94f610e831464a69a8e713dad89878824ce by Ronald Oussoren in 
branch 'master':
bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516)
https://github.com/python/cpython/commit/044cf94f610e831464a69a8e713dad89878824ce


--

___
Python tracker 

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



[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2020-03-22 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 8.0 -> 9.0
pull_requests: +18471
pull_request: https://github.com/python/cpython/pull/19110

___
Python tracker 

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



[issue40043] RegExp Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

2020-03-22 Thread Leon Hampton


Leon Hampton  added the comment:

Hello,
There may be a bug in the implementation of the Conditional Construction of 
Regular Expressions, namely the (?(id/name)yes-pattern|no-pattern).
In the Regular Expression documentation 
(https://docs.python.org/3.7/library/re.html), in the portion about the 
Conditional Construct, it gives this sample pattern 
'(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)' and states that the pattern WILL NOT MATCH 
this string ' RegExp 
Conditional Construct (?(id/name)yes-pattern|no-pattern) Problem

___
Python tracker 

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



[issue40043] Poor RegEx example for (?(id/name)yes-pattern|no-pattern)

2020-03-22 Thread Leon Hampton


New submission from Leon Hampton :

Hello,
In the 3.7.7 documentation on Regular Expression, the Conditional Construct, 
(?(id/name)yes-pattern|no-pattern), is discussed. (This is a very thorough 
document, by the way. Good job!)
One example given for the Conditional Construct does not work as described. 
Specifically, the example gives this matching pattern 
'(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)' and states that it will NOT MATCH the string 
'

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



[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-22 Thread Matej Cepl


Matej Cepl  added the comment:

Thank you very much for the hint. Do I have to include the patch for bpo-19977 
only (that would be easy), or also all twelve PRs for bpo-29240 (that would 
probably broke my will to do it)?

--

___
Python tracker 

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



[issue40024] Add _PyModule_AddType private helper function

2020-03-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 05e4a296ecc127641160a04f39cc02c0f66a8c27 by Dong-hee Na in branch 
'master':
bpo-40024: Add PyModule_AddType() helper function (GH-19088)
https://github.com/python/cpython/commit/05e4a296ecc127641160a04f39cc02c0f66a8c27


--

___
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-22 Thread STINNER Victor


STINNER Victor  added the comment:

Remaining issue: optimize list(iterable), PR 18928. I reviewed the PR and I'm 
waiting for Petr.

--

___
Python tracker 

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



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

Just to confirm, for some reason ENABLE_IPV6 is not set when compiling 
_overlapped. I'm not familiar enough with the windows build infrastructure to 
submit a PR though.

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



[issue39380] ftplib uses latin-1 as default encoding

2020-03-22 Thread Sebastian G Pedersen


Sebastian G Pedersen  added the comment:

Yes, I will update the PR before the end of next week.

--

___
Python tracker 

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



[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Junyu Zhang


Junyu Zhang  added the comment:

Thank you for your reply, this report is indeed the situation prompted by the 
warning. There will be few problems in the single-machine deployment mode. Of 
course, it is also possible to take advantage of the possibility of elevation 
of privilege. In the distributed deployment mode, the client script is leaked. 
The resulting authkey leak will also cause RCE problems. I have an idea. If 
ManagerBase can allow users to customize the serialization operation, it may be 
greatly relieved. Your suggestion is that I need to submit this to 
secur...@python.org Report it?

--

___
Python tracker 

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



[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-03-22 Thread 朱聖黎

Change by 朱聖黎 :


--
keywords: +patch
nosy: +akarei
nosy_count: 10.0 -> 11.0
pull_requests: +18470
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/19109

___
Python tracker 

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



[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-22 Thread Nick Coghlan


Nick Coghlan  added the comment:

The test cases for locale coercion *not* triggering still assume that 
bpo-19977, using surrogateescape on the standard streams in the POSIX locale, 
has been implemented (since that was implemented in Python 3.5).

Hence the various test cases complaining that they found "ascii:strict" (Py 3.4 
behaviour without bpo-19977) where they expected "ascii:surrogateescape" (the 
Py 3.5+ behaviour *with* bpo-19977).

To get a PEP 538 backport to work as intended on 3.4, you'd need to backport 
that earlier IO stream error handling change as well.

--

___
Python tracker 

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



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

I tried some debugging with Python 3.9.0a4 and it looks like unparse_address in 
overlapped.c 
(https://github.com/python/cpython/blob/v3.9.0a4/Modules/overlapped.c#L689) 
raises the error. Almost seems like ENABLE_IPV6 is not set...

--

___
Python tracker 

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



[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-03-22 Thread Ethan Furman


Change by Ethan Furman :


--
type:  -> enhancement

___
Python tracker 

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



[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-03-22 Thread Ethan Furman


Change by Ethan Furman :


--
assignee: ethan.furman
nosy: ethan.furman
priority: normal
severity: normal
stage: needs patch
status: open
title: Enum Flag: psuedo-members have None for name attribute
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



[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-03-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset b33e52511a59c6da7132c226b7f7489b092a33eb by Serhiy Storchaka in 
branch 'master':
bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)
https://github.com/python/cpython/commit/b33e52511a59c6da7132c226b7f7489b092a33eb


--

___
Python tracker 

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



[issue36759] datetime: astimezone() results in OSError: [Errno 22] Invalid argument

2020-03-22 Thread Ard Kuijpers


Ard Kuijpers  added the comment:

Encountered this bug on Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC 
v.1916 64 bit (AMD64)], so on Windows 10. I can reproduce the bug with the code 
in message https://bugs.python.org/msg341149. 

It does not seem to be a duplicate of #29097 since I cannot reproduce that 
issue.

--
nosy: +Ard Kuijpers
versions: +Python 3.7

___
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-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Closing this as duplicate. Feel free to reopen if it's a mistake. Thanks.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> bad input crashes py_compile library

___
Python tracker 

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



[issue40041] Typo in argparse ja-document wrong:'append', correct:'extend'

2020-03-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Japanese translation is tracked in GitHub and can be reported there. 
https://github.com/python/python-docs-ja

--
nosy: +xtreak

___
Python tracker 

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



[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2020-03-22 Thread Steve Dower


Steve Dower  added the comment:

Go ahead. I think you should create three PRs (docs, tests and code), with only 
as many tests in the code PR as are needed to keep it passing.

--

___
Python tracker 

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



[issue40041] Typo in argparse ja-document wrong:'append', correct:'extend'

2020-03-22 Thread Yasunobu Imamura


New submission from Yasunobu Imamura :

In Japanese document of argparse,

https://docs.python.org/ja/3/library/argparse.html

In explain of action,

ENGLISH DOCUMENT: ..., 'append', ..., 'extend'
JAPANESE DOCUMENT: ..., 'append', ..., 'append'

So, Japanese document is wrong.

--
assignee: docs@python
components: Documentation
messages: 364797
nosy: Yasunobu Imamura, docs@python
priority: normal
severity: normal
status: open
title: Typo in argparse ja-document wrong:'append', correct:'extend'
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



[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-22 Thread Saaheer Purav


Saaheer Purav  added the comment:

I have tried everything like going to the .idlerc folder and making changes, 
but nothing worked. Finally, I had to change the original config files and it 
worked because Python is assuming that another theme which I put under 'IDLE 
Classic' is the original one. Also, the key for run-module(F5) doesn't work. In 
the original config file, the key for run-module is . However, Python 
does not read only that particular line and in the configure IDLE it shows that 
the field for run-module is empty.

--

___
Python tracker 

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



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Change by Kjell Braden :


Removed file: https://bugs.python.org/file48996/udp_ipv6_server.py

___
Python tracker 

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



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Change by Kjell Braden :


--
nosy: +kbr
Added file: https://bugs.python.org/file48996/udp_ipv6_server.py

___
Python tracker 

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



[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

sorry - is a duplicate of https://bugs.python.org/issue39148

--
resolution:  -> duplicate
stage:  -> 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



[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden


New submission from Kjell Braden :

on Windows 10 with Python 3.8.2 and Python 3.9.0a4, the ProactorEventLoop 
raises "OSError: [WinError 87] The parameter is incorrect" when recvfrom on an 
AF_INET6 socket returns data:


DEBUG:asyncio:Using proactor: IocpProactor
INFO:asyncio:Datagram endpoint local_addr=('::', 1) remote_addr=None 
created: (<_ProactorDatagramTransport fd=288>, <__main__.Prot object at 
0x028739A09580>)
ERROR:root:error_received
Traceback (most recent call last):
  File "...\Python\Python39\lib\asyncio\proactor_events.py", line 548, in 
_loop_reading
res = fut.result()
  File "...\Python\Python39\lib\asyncio\windows_events.py", line 808, in _poll
value = callback(transferred, key, ov)
  File "...\Python\Python39\lib\asyncio\windows_events.py", line 496, in 
finish_recv
return ov.getresult()
OSError: [WinError 87] The parameter is incorrect


The same code works without issues on python 3.7 or when using 
WindowsSelectorEventLoopPolicy.

--
components: asyncio
files: udp_ipv6_server.py
messages: 364794
nosy: asvetlov, kbr, yselivanov
priority: normal
severity: normal
status: open
title: ProactorEventLoop fails on recvfrom with IPv6 sockets
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48995/udp_ipv6_server.py

___
Python tracker 

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



[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2020-03-22 Thread C.A.M. Gerlach


C.A.M. Gerlach  added the comment:

Hey, any update on this? As I mentioned, I'm willing to implement everything I 
mention here in one or more PRs, but I wanted to wait for a go-ahead in case 
some of the changes were not desired. Let me know and I'll go ahead. Thanks!

--

___
Python tracker 

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



[issue40014] os.getgrouplist() can fail on macOS

2020-03-22 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



[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-22 Thread Saaheer Purav


Saaheer Purav  added the comment:

I use Windows 10. I had a similar issue with python 3.8.0, which is why I 
uninstalled it and installed Python 3.8.2. The issue had been cleared, but then 
after a few weeks it happened again.

--

___
Python tracker 

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



[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2020-03-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

posix_putenv_garbage no longer used on Windows.

--
resolution:  -> fixed
stage: patch review -> resolved
status: pending -> closed

___
Python tracker 

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



[issue39538] SystemError when set Element.attrib to non-dict

2020-03-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Fixed by issue39822. e.attrib = 1 now raises a TypeError.

--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed
versions:  -Python 2.7, 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



[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Kubilay Kocak


Change by Kubilay Kocak :


--
nosy: +koobs

___
Python tracker 

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



[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-03-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +18469
pull_request: https://github.com/python/cpython/pull/19108

___
Python tracker 

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



[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I am not sure if this was done but CPython has a page on reporting security 
issues that you can use for future reports so that they can be triaged before 
being public.

https://www.python.org/dev/security/

--
nosy: +vstinner

___
Python tracker 

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



[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. Is this a case of the warning below?

https://docs.python.org/3.8/library/multiprocessing.html#multiprocessing.connection.Connection.recv

> Warning The Connection.recv() method automatically unpickles the data it 
> receives, which can be a security risk unless you can trust the process which 
> sent the message.

> Therefore, unless the connection object was produced using Pipe() you should 
> only use the recv() and send() methods after performing some sort of 
> authentication. See Authentication keys.

--
nosy: +xtreak

___
Python tracker 

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



[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-22 Thread SilentGhost


Change by SilentGhost :


--
nosy: +davin, pitrou

___
Python tracker 

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



[issue26527] CGI library - Using unicode in header fields

2020-03-22 Thread Martin Panter

Martin Panter  added the comment:

I’m not an expert on the topic, but it sounds like this might be a duplicate of 
Issue 23434, which has more discussion.

--
nosy: +martin.panter
resolution:  -> duplicate
status: open -> pending
superseder:  -> support encoded filename in Content-Disposition for HTTP in 
cgi.FieldStorage

___
Python tracker 

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