[issue38052] Include sspipe Module with Core Python

2019-09-14 Thread Juan Telleria


Juan Telleria  added the comment:

And based on previous example, a more "pythonic" syntax would:

MyObj = Class \
   .method1() \
   .f_function1() \
   .method2() \
   .f_function2(param1 = "A", param2 = .)

So that any function preceded by a dot "." becomes a forward-pipe function 
(Object reference is passed forward).

--

___
Python tracker 

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



[issue38122] AsyncMock force always creating an AsyncMock for child mocks

2019-09-14 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
pull_requests: +15747
pull_request: https://github.com/python/cpython/pull/16137

___
Python tracker 

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



[issue37953] Fix ForwardRef equality checks

2019-09-14 Thread miss-islington


miss-islington  added the comment:


New changeset d057b896f97e6d7447b9bf9246770c41cf205299 by Miss Islington (bot) 
(Zackery Spytz) in branch 'master':
bpo-37953: Fix deprecation warnings in test_typing (GH-16133)
https://github.com/python/cpython/commit/d057b896f97e6d7447b9bf9246770c41cf205299


--

___
Python tracker 

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



[issue38169] Increase Code Coverage for SharedMemory and ShareableListe

2019-09-14 Thread Vinay Sharma


New submission from Vinay Sharma :

Add Tests for SharedMemory and ShareableList. I have also added a check to 
prevent users from creating shared memory of size 0, because after creating 
mmap will throw error while memory mapping she of size 0.

--
components: Tests
messages: 352420
nosy: vinay0410
priority: normal
severity: normal
status: open
title: Increase Code Coverage for SharedMemory and ShareableListe
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



[issue37953] Fix ForwardRef equality checks

2019-09-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15748
pull_request: https://github.com/python/cpython/pull/16138

___
Python tracker 

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



[issue38169] Increase Code Coverage for SharedMemory and ShareableListe

2019-09-14 Thread Vinay Sharma


Change by Vinay Sharma :


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

___
Python tracker 

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



[issue37953] Fix ForwardRef equality checks

2019-09-14 Thread miss-islington


miss-islington  added the comment:


New changeset 66da347ef0034ad9bddc7fad112025c886249f0d by Miss Islington (bot) 
in branch '3.8':
bpo-37953: Fix deprecation warnings in test_typing (GH-16133)
https://github.com/python/cpython/commit/66da347ef0034ad9bddc7fad112025c886249f0d


--

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-14 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +15750
pull_request: https://github.com/python/cpython/pull/16140

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-14 Thread Christian Heimes


Change by Christian Heimes :


--
nosy: +gregory.p.smith
versions: +Python 2.7, 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



[issue21705] cgi.py: Multipart with more than one file is misparsed

2019-09-14 Thread Dong-hee Na


Change by Dong-hee Na :


--
resolution:  -> fixed
stage: test needed -> 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



[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-09-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 279f44678c8b84a183f9eeb85e0b086228154497 by Serhiy Storchaka in 
branch 'master':
bpo-37206: Unrepresentable default values no longer represented as None. 
(GH-13933)
https://github.com/python/cpython/commit/279f44678c8b84a183f9eeb85e0b086228154497


--

___
Python tracker 

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



[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-09-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +15751
pull_request: https://github.com/python/cpython/pull/16141

___
Python tracker 

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



[issue26360] Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10

2019-09-14 Thread Mark Dickinson


Mark Dickinson  added the comment:

> Maybe issue38106 related.

That looks plausible, but unfortunately I'm still able to reproduce the hang 
with your PR (commit 9b135c02aa1edab4c99c915c43cd62d988f1f9c1, macOS 10.14.6).

--

___
Python tracker 

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



[issue26360] Deadlock in thread.join on Python 2.7/macOS

2019-09-14 Thread Mark Dickinson


Change by Mark Dickinson :


--
title: Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10 -> Deadlock 
in thread.join on Python 2.7/macOS

___
Python tracker 

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



[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-09-14 Thread Steven D'Aprano


Change by Steven D'Aprano :


--
nosy: +steven.daprano

___
Python tracker 

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



[issue33282] Subprocess Popen communicate hung if stdin not given to Popen, even though script not expecting any input

2019-09-14 Thread Dong-hee Na


Dong-hee Na  added the comment:

I would like to recommend this kind of question should be discussed at 
comp.lang.python mailing list.
If cpython bug is detected from this issue.
Please reopen this issue.

Thanks!

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



[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-09-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset d322abbb83eb751045246a70f39d040d13a6108b by Serhiy Storchaka in 
branch '3.8':
[3.8] bpo-37206: Unrepresentable default values no longer represented as None. 
(GH-13933) (GH-16141)
https://github.com/python/cpython/commit/d322abbb83eb751045246a70f39d040d13a6108b


--

___
Python tracker 

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



[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-14 Thread Tahia K


Change by Tahia K :


--
keywords: +patch
pull_requests: +15752
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/16142

___
Python tracker 

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



[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-14 Thread Tahia K


Tahia K  added the comment:

Awesome - just posted the PR.

--

___
Python tracker 

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



[issue35379] IDLE's close fails io is set to None on Mac

2019-09-14 Thread Tal Einat


Tal Einat  added the comment:

I've also seen these occasionally, but I haven't yet found a way to reproduce 
consistently.

Regardless, IMO the shutdown close() and _close() should be the places handling 
shutdown-related exceptions if possible.  In all of the tracebacks posted here, 
as well as those in #35263 and #17822, one such method is in the call chain, 
and it could simply catch and handle the raised exception.

I also think these are clear improvements that are safe to include, even 
without understanding the full details of the sequences of events leading to 
the errors.

--

___
Python tracker 

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



[issue38170] imghdr: Support detecting heif

2019-09-14 Thread Dong-hee Na


New submission from Dong-hee Na :

I've found that imghdr does not detect HEIF type yet.
I'd like to propose adding to detect HEIF type.

There's already real-life usage within HEIF
(https://help.dropbox.com/en-es/installs-integrations/mobile/ios-formats)

And also we can find a bunch of HEIF related programming issue such as Stack 
Overflow.
IMHO, supporting the detecting HEIF type is not a bad idea.

I want to hear core developers' opinion about this issue.


reference: 
https://github.com/strukturag/libheif/issues/83#issuecomment-421427091

--
messages: 352428
nosy: corona10, rhettinger
priority: low
severity: normal
status: open
title: imghdr: Support detecting heif
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



[issue38171] super() is passing wrong parameters while handling diamond inheritance

2019-09-14 Thread Patrick Monnerat


New submission from Patrick Monnerat :

Running the attached program outputs:

top.__init__(<__main__.top object at 0x7fc1dea24048>,) called
i1.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from top') called
i2.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from i1') called
base.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from i2') called
base.__init__ returns None
i2.__init__ returns None
i1.__init__ returns None
top.__init__ returns None


i2.__init__() argument is wrong: since it is is not a parent class of i1, it 
should be "arg from top".

I can understand i2.__init__() is called after i1.__init__() and before 
base.__init__() but arguments given to super(i1, self).__init__() should not be 
substituted for calling i2.__init__().

--
files: super.py
messages: 352429
nosy: monnerat
priority: normal
severity: normal
status: open
title: super() is passing wrong parameters while handling diamond inheritance
type: behavior
Added file: https://bugs.python.org/file48608/super.py

___
Python tracker 

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



[issue38140] Py_tp_dictoffset / Py_tp_finalize are unsettable in stable API

2019-09-14 Thread Dino Viehland


Change by Dino Viehland :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue38170] imghdr: Support detecting heif

2019-09-14 Thread Dong-hee Na


Dong-hee Na  added the comment:

https://mpeg.chiariglione.org/standards/mpeg-h/image-file-format

--

___
Python tracker 

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



[issue38171] super() is passing wrong parameters while handling diamond inheritance

2019-09-14 Thread Steven D'Aprano


Change by Steven D'Aprano :


--
nosy: +steven.daprano

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-14 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +15753
pull_request: https://github.com/python/cpython/pull/16143

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-14 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +15754
pull_request: https://github.com/python/cpython/pull/16144

___
Python tracker 

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



[issue38116] Make select module PEP-384 compatible

2019-09-14 Thread Dino Viehland


Dino Viehland  added the comment:


New changeset f919054e539a5c1afde1b31c9fd7a8f5b2313311 by Dino Viehland in 
branch 'master':
bpo-38116: Convert select module to PEP-384 (#15971)
https://github.com/python/cpython/commit/f919054e539a5c1afde1b31c9fd7a8f5b2313311


--

___
Python tracker 

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



[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-14 Thread Cooper Lees


New submission from Cooper Lees :

Haven't done research but bandersnatch's (https://github.com/pypa/bandersnatch) 
Unit tests pass in 3.7 and cause Python to Segmentation Fault in Python 
3.8.0b4+.

```
py38 run-test: commands[0] | coverage run -m pytest
= test session starts ==
platform linux -- Python 3.8.0b4+, pytest-5.1.2, py-1.8.0, pluggy-0.13.0
cachedir: .tox/py38/.pytest_cache
rootdir: /home/travis/build/pypa/bandersnatch, inifile: pytest.ini
plugins: timeout-1.3.3
Fatal Python error: Segmentation fault
```

Full failure on Travis CI: 
https://travis-ci.org/pypa/bandersnatch/jobs/584973434

--
messages: 352432
nosy: cooperlees
priority: normal
severity: normal
status: open
title: Python 3.8 Segfult with Bandersnatch pytest Suite
type: crash
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



[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-14 Thread Cooper Lees


Cooper Lees  added the comment:

Seems to be with coverage actually.

```
ERROR: InvocationError for command 
/home/travis/build/pypa/bandersnatch/.tox/py38/bin/coverage run -m pytest 
(exited with code -11)
```

--

___
Python tracker 

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



[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-09-14 Thread Cooper Lees


Cooper Lees  added the comment:

Adding in Nightly Passed: https://travis-ci.org/pypa/bandersnatch/jobs/584977510

Current 3.8 beta still failing: 
https://travis-ci.org/pypa/bandersnatch/builds/584977503

So please just close if the bug was known etc. and I'll just live with the 
failing test until the next 3.8 comes out.

--

___
Python tracker 

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



[issue38170] imghdr: Support detecting heif

2019-09-14 Thread Dong-hee Na


Dong-hee Na  added the comment:

Oh.. but PEP 594 is planning to remove imghdr.
(https://www.python.org/dev/peps/pep-0594)
It looks like that adding a new feature is not proper.
I close this issue because of PEP 594

--
resolution:  -> wont fix
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



[issue38153] Normalize hashing algorithm names

2019-09-14 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset eb2b0c694aef6122fdf95015abb24e0d095b6401 by Christian Heimes in 
branch 'master':
bpo-38153: detect shake independently from sha3 (GH-16143)
https://github.com/python/cpython/commit/eb2b0c694aef6122fdf95015abb24e0d095b6401


--

___
Python tracker 

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



[issue38171] super() is passing wrong parameters while handling diamond inheritance

2019-09-14 Thread Mark Dickinson


Mark Dickinson  added the comment:

This isn't a bug: super is behaving as designed and as intended here, and 
indeed with a diamond inheritance structure you'll see super calling "across" 
from one class to its sibling. That's part of how it works.

There's lots of thoughtful writing out there about super; try the following for 
starters.

- https://fuhm.net/super-harmful/
- https://rhettinger.wordpress.com/2011/05/26/super-considered-super/
- https://www.artima.com/weblogs/viewpost.jsp?thread=236275

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue38173] [EASY] tkinter.filedialog.askopenfilenames should follow PEP8

2019-09-14 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +newcomer friendly

___
Python tracker 

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



[issue38173] [EASY] tkinter.filedialog.askopenfilenames should follow PEP8

2019-09-14 Thread Dong-hee Na


New submission from Dong-hee Na :

https://github.com/python/cpython/blob/39d87b54715197ca9dcb6902bb43461c0ed701a2/Lib/tkinter/filedialog.py#L397

This should be
options["multiple"]=1 -> options["multiple"] = 1

--
components: Tkinter
messages: 352438
nosy: corona10, taleinat
priority: low
severity: normal
status: open
title: [EASY] tkinter.filedialog.askopenfilenames should follow PEP8
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



[issue38171] super() is passing wrong parameters while handling diamond inheritance

2019-09-14 Thread Mark Dickinson


Change by Mark Dickinson :


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



[issue38173] [EASY] tkinter.filedialog.askopenfilenames should follow PEP8

2019-09-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

We usually do not accept pure cosmetic changes.

>From PEP 8:

Some other good reasons to ignore a particular guideline:

3. Because the code in question predates the introduction of the guideline and 
there is no other reason to be modifying that code.

--
nosy: +serhiy.storchaka
resolution:  -> rejected
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



[issue26360] Deadlock in thread.join on Python 2.7/macOS

2019-09-14 Thread Mark Dickinson


Mark Dickinson  added the comment:

FWIW, I've confirmed again that the exact same script on the same machine seems 
fine under Python 3.x. Given the imminent demise of Python 2, perhaps this 
issue is just destined to be an unsolved historical oddity.

--

___
Python tracker 

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



[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-14 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +15755
pull_request: https://github.com/python/cpython/pull/16145

___
Python tracker 

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



[issue38152] AST change introduced tons of reference leaks

2019-09-14 Thread Eddie Elizondo


Eddie Elizondo  added the comment:

The PR has been merged so the issue can be closed now

--

___
Python tracker 

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



[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset f37a9831027ecfe948697cdb5e35b417805d94e5 by Serhiy Storchaka in 
branch '3.8':
[3.8] bpo-38005: Fixed comparing and creating of InterpreterID and ChannelID. 
(GH-15652) (GH-16145)
https://github.com/python/cpython/commit/f37a9831027ecfe948697cdb5e35b417805d94e5


--

___
Python tracker 

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



[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I would remove also converting a string to InterpreterID. The code would be 
simpler without it. I left it because there was explicit tests for it, but what 
is a use case for InterpreterID(string)?

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



[issue38152] AST change introduced tons of reference leaks

2019-09-14 Thread Ammar Askar


Change by Ammar Askar :


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



[issue34155] [CVE-2019-16056] email.utils.parseaddr mistakenly parse an email

2019-09-14 Thread miss-islington

miss-islington  added the comment:


New changeset 4cbcd2f8c4e12b912e4d21fd892eedf7a3813d8e by Miss Islington (bot) 
(Roberto C. Sánchez) in branch '2.7':
[2.7] bpo-34155: Dont parse domains containing @ (GH-13079) (GH-16006)
https://github.com/python/cpython/commit/4cbcd2f8c4e12b912e4d21fd892eedf7a3813d8e


--

___
Python tracker 

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



[issue35696] remove unnecessary operation in long_compare()

2019-09-14 Thread hongweipeng


Change by hongweipeng :


--
pull_requests: +15756
pull_request: https://github.com/python/cpython/pull/16146

___
Python tracker 

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



[issue34155] [CVE-2019-16056] email.utils.parseaddr mistakenly parse an email

2019-09-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

Merged in 2.7, closing this one finally! 

Thanks to everyone who helped with this :)

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread Kyle Stanley


Change by Kyle Stanley :


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

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread Kyle Stanley


Kyle Stanley  added the comment:

Created GH-16147 for replacing the *from_what* argument with *whence* in the IO 
tutorial. 

I would like to consider following up on this with another PR that adds the IO 
constants `SEEK_SET`, `SEEK_CUR`, and `SEEK_END` to the tutorial. Those 
constants would be particularly useful for new users of the language, and would 
likely make the tutorial easier to understand for those who don't have prior 
experience with using `seek()`.

However, I figured that replacing *from_what* with *whence* would be 
significantly less controversial and easier to review, which is why they will 
be in separate PRs.

--

___
Python tracker 

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



[issue38164] polishing asyncio Streams API

2019-09-14 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +15758
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/16148

___
Python tracker 

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



[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-09-14 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +15759
pull_request: https://github.com/python/cpython/pull/16149

___
Python tracker 

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



[issue29353] Incorrect handling of HTTP response with "Content-Type: message/rfc822" header

2019-09-14 Thread Christian Schmidbauer


Change by Christian Schmidbauer :


--
pull_requests: +15760
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/12214

___
Python tracker 

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



[issue12178] csv writer doesn't escape escapechar

2019-09-14 Thread Tal Einat


Tal Einat  added the comment:

FWIW, though this is arguably fixing a bug, IMO this shouldn't be back-ported 
to 2.7 or 3.7, but only be in 3.8+, to avoid breaking backwards-compatibility.

That being said, it would be great to get this into 3.8.0!

--
nosy: +taleinat

___
Python tracker 

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



[issue24363] httplib fails to handle semivalid HTTP headers

2019-09-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

Martin: Can you please create a PR for the added patch? If you are busy, I can 
do that for you, just wanted to ask before I do :)

I am going to remove "easy" label from this issue, which IMO it clearly isn't 
given 4 years of history to catch up on and a few other related bugs.

Since some time has passed since the patch was posted, I am going to target 
this to 3.8 and 3.7 since others are in security fix mode only.

--
keywords:  -easy, patch
nosy: +maxking
versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-14 Thread Uche Ogbuji

New submission from Uche Ogbuji :

cpython bundles expat in Modules/expat/ and needs to be updated to expat-2.2.8 
to security vulnerability CVE-2019-15903.

>From Sebastian Pipping on XML-DEV ML:

Expat 2.2.8 [1] has been released yesterday.  This release fixes a
security issue — a heap buffer over-read known as CVE-2019-15903 [2]
reported by Joonun Jang resulting in Denial of Service —, starts using
the rand_s function on Windows and MinGW (ending the previous
LoadLibrary hack), includes non-security bugfixes, many build system
fixes and improvements, improvements to xmlwf usability, and more.

For more details regarding the latest release, please check out the
changelog [3].

If you maintain Expat packaging or a bundled copy of Expat or a pinned
version of Expat somewhere, please update to 2.2.8.  Thank you!

[1] https://github.com/libexpat/libexpat/releases/tag/R_2_2_8
[2] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-15903
[3] https://github.com/libexpat/libexpat/blob/R_2_2_8/expat/Changes

--
components: XML
messages: 352449
nosy: Uche Ogbuji
priority: normal
severity: normal
status: open
title: Security vulnerability in bundled expat CVE-2019-15903 (fix available in 
expat 2.2.8)
type: security
versions: Python 2.7, Python 3.5, 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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15761
pull_request: https://github.com/python/cpython/pull/16150

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15762
pull_request: https://github.com/python/cpython/pull/16151

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread miss-islington


miss-islington  added the comment:


New changeset ff603f6c3d3dc0e9ea8c1c51ce907c4821f42c54 by Miss Islington (bot) 
(Kyle Stanley) in branch 'master':
bpo-37635: Update arg name for seek() in IO tutorial (GH-16147)
https://github.com/python/cpython/commit/ff603f6c3d3dc0e9ea8c1c51ce907c4821f42c54


--
nosy: +miss-islington

___
Python tracker 

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



[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-09-14 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

This change caused a regression or two captured in issue36274. Essentially, by 
blocking invalid requests, it's now not possible for a system intentionally to 
generate invalid requests for testing purposes. As these point releases of 
Python start making it into the wild, the impact of this change will likely 
increase.

I think this patch was applied at too low a level. That is, instead of 
protecting the user inputs, the change protects the programmer's inputs.

I mention this here so those interested can follow the mitigation work 
happening in issue36274.

--
nosy: +jaraco

___
Python tracker 

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



[issue36274] http.client cannot send non-ASCII request lines

2019-09-14 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

As I considered a patch for this, I realized there are actually two issues, the 
one in the title "http.client cannot send non-ASCII request lines" but also 
"the protection for invalid requests prevents usage to generate invalid 
requests". The former issue was new with Python 3 while the latter was 
introduced with issue30458. I can't decide if we should handle these two issues 
separately, or address them together in this ticket.

--

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread miss-islington


miss-islington  added the comment:


New changeset b9f932f9e2a170a8d39b3c17f5fabb0967839d85 by Miss Islington (bot) 
in branch '3.7':
bpo-37635: Update arg name for seek() in IO tutorial (GH-16147)
https://github.com/python/cpython/commit/b9f932f9e2a170a8d39b3c17f5fabb0967839d85


--

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread miss-islington


miss-islington  added the comment:


New changeset 4a71df88cdba77c409ee70146dd6445b19267df4 by Miss Islington (bot) 
in branch '3.8':
bpo-37635: Update arg name for seek() in IO tutorial (GH-16147)
https://github.com/python/cpython/commit/4a71df88cdba77c409ee70146dd6445b19267df4


--

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Thanks you Kyle!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +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



[issue37635] Using constant for whence arg in seek()

2019-09-14 Thread Kyle Stanley


Kyle Stanley  added the comment:

> Thanks you Kyle!

No problem, thanks for merging it Antoine!

What do you think of the followup PR to make use of the SEEK_* constants listed 
in the documentation? I think it would be useful to at least mention them in 
the tutorial, or even make use of them directly in the examples.

--

___
Python tracker 

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



[issue36274] http.client cannot send non-ASCII request lines

2019-09-14 Thread Sviatoslav Sydorenko


Change by Sviatoslav Sydorenko :


--
nosy: +webknjaz

___
Python tracker 

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



[issue38174] Security vulnerability in bundled expat CVE-2019-15903 (fix available in expat 2.2.8)

2019-09-14 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vstinner

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-14 Thread Nick Coghlan


Nick Coghlan  added the comment:

It's also not unique to with statements - it applies to all finally clauses. 
The longstanding workaround when deterministic cleanup is absolutely critical 
has been to run the "real" application in a subthread, and devote the main 
thread to gracefully terminating the subthread when requested.

When cleanup is critical, but doing it in a deterministic order is less so, 
__del__ methods are often used to fill the gap (although they too can be 
interrupted by a subsequent Ctrl-C).

I also realized that allowing infinite loops in cleanup code to ignore Ctrl-C 
may actually be a tolerable outcome: in the worst case, users can still 
escalate to Ctrl-Break/kill -9/Force stop/etc and pull the entire OS process 
out from under the interpreter. It's not good, but may be worth it in order to 
better handle users pressing Ctrl-C multiple times.

--

___
Python tracker 

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



[issue38155] Add __all__ to the datetime module

2019-09-14 Thread Tahia K


Tahia K  added the comment:

I'll definitely add that test @Paul. 

Speaking of, what do you guys think of this test:

 def test_c_all(self):
 """Test that __all__ symbols between the c datetime module and
 the python datetime library are equivalent."""

 c_datetime = import_fresh_module('datetime', fresh=['_datetime'])
 py_datetime = import_fresh_module('datetime', blocked=['_datetime'])
 self.assertEqual(c_datetime.__all__, py_datetime.__all__)


I found the import_fresh_module here: 
https://docs.python.org/3/library/test.html#test.support.import_fresh_module - 
super handy! The test currently passes for me locally, but I wanted to check if 
my usage was correct before submitting a PR.

--

___
Python tracker 

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



[issue10108] ExpatError not property wrapped

2019-09-14 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue26360] Deadlock in thread.join on Python 2.7/macOS

2019-09-14 Thread Kyle Stanley


Kyle Stanley  added the comment:

> FWIW, I've confirmed again that the exact same script on the same machine 
> seems fine under Python 3.x. Given the imminent demise of Python 2, perhaps 
> this issue is just destined to be an unsolved historical oddity.

Since it doesn't seem to be occurring across every macOS platform, is specific 
to 2.7, and isn't proving to be an easy fix, it's probably not worthwhile to 
invest a significant amount of further time into the issue. Thanks for working 
on it though, at least we tried. (:

--
nosy: +aeros167

___
Python tracker 

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



[issue19692] Rename Py_SAFE_DOWNCAST

2019-09-14 Thread hai shi


hai shi  added the comment:

Looks we have a fast version rhythm. IMHO, If user would be affected and 
reported, reversing the PR is ok.

--

___
Python tracker 

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



[issue21023] PyTypeObject tp_name is char* instead of const char*

2019-09-14 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

This is nolonger an issue. All references to tp_name are as below.


const char *tp_name;

--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15763
pull_request: https://github.com/python/cpython/pull/16153

___
Python tracker 

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



[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15764
pull_request: https://github.com/python/cpython/pull/16154

___
Python tracker 

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