[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2018-02-18 Thread Rudolph Froger

Rudolph Froger  added the comment:

I've tried your quick tests a few times but couldn't reproduce it immediately. 
The problem is a bit hard to reproduce anyway because launching Python 
processes can go well for a long time (many days; launching many processes 
every minute) until suddenly all NEW processes get aborted. It seems as if 
somehow something in the relation to the parent process goes wrong somehow. 
I've seen it happening with Python as the parent process but also with a plain 
shell process as the parent.
Just starting Python (python -c "x = 1") can be enough to trigger this so it's 
not something which can be blamed on some library.

--

___
Python tracker 

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



[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2018-02-18 Thread Éric Araujo

Change by Éric Araujo :


--
pull_requests:  -5529

___
Python tracker 

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



[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5530

___
Python tracker 

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



[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-02-18 Thread Éric Araujo

Éric Araujo  added the comment:

Fixed in all branches.  I messed up the ticket reference so some links are 
missing here.

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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset b0fd935360e81b6bb4733deed69f51516c771f7a by Miss Islington (bot) 
in branch '3.6':
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)
https://github.com/python/cpython/commit/b0fd935360e81b6bb4733deed69f51516c771f7a


--

___
Python tracker 

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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread pmpp

Change by pmpp :


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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset 0cd35817e8278588f04dc574f6eca53273799f25 by Miss Islington (bot) 
in branch '3.7':
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)
https://github.com/python/cpython/commit/0cd35817e8278588f04dc574f6eca53273799f25


--
nosy: +miss-islington

___
Python tracker 

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



[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-02-18 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset eeb33651bfadcceea68bd27bb4c4d8de2e690656 by Mariatta (Éric 
Araujo) in branch '2.7':
[2.7] bpo-21060 Improve error message for "setup.py upload" without dist files 
(GH-5726).
https://github.com/python/cpython/commit/eeb33651bfadcceea68bd27bb4c4d8de2e690656


--
nosy: +Mariatta

___
Python tracker 

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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread Zachary Ware

Change by Zachary Ware :


--
stage: patch review -> commit review
versions: +Python 3.6, Python 3.8

___
Python tracker 

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



[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5529

___
Python tracker 

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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5528

___
Python tracker 

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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5527

___
Python tracker 

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



[issue32682] test_zlib improve version parsing

2018-02-18 Thread Zachary Ware

Zachary Ware  added the comment:


New changeset 4c7108a77144493d0aa6fc0105b67d3797e143f5 by Zachary Ware (pmp-p) 
in branch 'master':
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)
https://github.com/python/cpython/commit/4c7108a77144493d0aa6fc0105b67d3797e143f5


--
nosy: +zach.ware

___
Python tracker 

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



[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5526

___
Python tracker 

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



[issue21060] Better error message for setup.py upload command without sdist/bdist

2018-02-18 Thread Éric Araujo

Change by Éric Araujo :


--
pull_requests: +5525

___
Python tracker 

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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the patch!

--

___
Python tracker 

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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread Éric Araujo

Change by Éric Araujo :


--
assignee: docs@python -> eric.araujo
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset 19b7f6694af56a1c9fdc0f1f9fc09ae48439ab4c by Miss Islington (bot) 
in branch '3.7':
bpo-31972: Improve docstrings for pathlib classes (GH-5310)
https://github.com/python/cpython/commit/19b7f6694af56a1c9fdc0f1f9fc09ae48439ab4c


--

___
Python tracker 

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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset 5c81ed49412e41a671283cdb4c297dab52f5b7c5 by Miss Islington (bot) 
in branch '3.6':
bpo-31972: Improve docstrings for pathlib classes (GH-5310)
https://github.com/python/cpython/commit/5c81ed49412e41a671283cdb4c297dab52f5b7c5


--
nosy: +miss-islington

___
Python tracker 

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



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2018-02-18 Thread Stefan Behnel

Stefan Behnel  added the comment:

> The check may miss infinite recursions if the hrefs happen to be written in 
> non-matching but equivalent forms. Ex: relative versus absolute paths.

I thought about that, too, but it's not a real problem. There are only a few 
different ways to spell the same file path, and once they are through, the 
recursion would still be detected and never become infinite.

Admittedly, the current implementation might lower the overhead for attacks a 
little, but then, if an attacker can control the input anyway, then there is 
not really much to win by including the same file multiple times rather than 
including different files.

Maybe we should add a "max_depth" parameter to limit the maximum recursion 
depth, defaulting to e.g. 5, that users would have to pass in order to say "I 
know what I'm doing".

I agree with the comment about the overly restrictive global set, though. 
Included file paths should be collected only along an inclusion path and not 
across independent subtrees.

--

___
Python tracker 

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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5524

___
Python tracker 

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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5523

___
Python tracker 

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



[issue31972] Inherited docstrings for pathlib classes are confusing

2018-02-18 Thread Éric Araujo

Éric Araujo  added the comment:


New changeset dfa015cf77a148d229ddc0a5b063562c9f9664f2 by Éric Araujo (chason) 
in branch 'master':
bpo-31972: Improve docstrings for pathlib classes (#5310)
https://github.com/python/cpython/commit/dfa015cf77a148d229ddc0a5b063562c9f9664f2


--

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset 034a945fa723bf68ca4127bb43bfa5c5be899f17 by Miss Islington (bot) 
in branch '3.7':
bpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
https://github.com/python/cpython/commit/034a945fa723bf68ca4127bb43bfa5c5be899f17


--
nosy: +miss-islington

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you for your PR Alexey.

--

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread Alexey Izbyshev

Change by Alexey Izbyshev :


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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5522

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:


New changeset 3fb813d2c67fe28cc98ae51e53a6890294b6e423 by Ivan Levkivskyi 
(Terry Jan Reedy) in branch 'master':
bpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
https://github.com/python/cpython/commit/3fb813d2c67fe28cc98ae51e53a6890294b6e423


--

___
Python tracker 

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



[issue32871] Interrupt .communicate() on SIGTERM/INT

2018-02-18 Thread Victor Porton

New submission from Victor Porton :

At https://docs.python.org/3/library/subprocess.html there is said nothing 
about what happens if our Python program terminates (by SIGTERM or SIGINT) 
while waiting for .communicate().

I assume to do something in this situation is just forgotten.

Usually terminate of our program should also terminate the invoked script. It 
can be made by re-delivery SIGTERM/SIGINT or (on non-POSIX) by .terminate() 
method. Probably, it should be done by .terminate() method even on POSIX 
systems, to handle SIGTERM and SIGINT in the same way.

--
components: Library (Lib)
messages: 312328
nosy: porton
priority: normal
severity: normal
status: open
title: Interrupt .communicate() on SIGTERM/INT
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

PR fixes typo in What's new: rewrittent

--
nosy: +terry.reedy

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests: +5521

___
Python tracker 

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



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2018-02-18 Thread James Bailey

James Bailey  added the comment:

Agreed with ruffsl's concerns about the overly aggressive detection of infinite 
recursion.

I also wonder if the hrefs should be normalized or canonized for the check? The 
check may miss infinite recursions if the hrefs happen to be written in 
non-matching but equivalent forms. Ex: relative versus absolute paths.

--

___
Python tracker 

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



[issue20928] xml.etree.ElementInclude does not include nested xincludes

2018-02-18 Thread ruffsl

ruffsl  added the comment:

Hello @scoder,

Thanks for looking into this.

In addition to what I mentioned with lxml's use of the parent xml file's 
respect dirname when attempting to open the include element's href, do you 
think it would be possible to (optionally or by default) have the include 
processor provide the necessary xml:base attributes for compliance with the 
specification [1][2][3].
I know lxml partially does this, but not for recursive includes beyond a depth 
of one. Without this, it makes it impossible to track down the subsequent 
source for deep include paths, i.e. when you'd like to trace from what sequence 
of includes contributed the element in question.

>From looking at the "fixed2", although the added lines 137-143 in 
>ElementInclude.py appear to prevent infinite recursive includes, but I think 
>it also prevents valid merging of include trajectories when expanding the tree 
>of include paths. E.g. what happens if I state the inclusion of the same 
>source multiple times elsewhere in the same file, or elsewhere in the include 
>tree that is no way a sub-child of the current parent file.
Isn't `already_included` unnecessarily global in scope, when it just need to be 
relative to the trajectory in the sequence of current branches; only checking a 
node is not simultaneously a parent and child along a single include trajectory?


[1] https://stackoverflow.com/a/22791471/2577586
[2] https://www.w3.org/TR/xmlbase/
[3] http://xerces.apache.org/xerces2-j/faq-xinclude.html#faq-3

--

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset 65a13c19e86488119cc9bc192f5a0b846d90940f by Miss Islington (bot) 
in branch '3.6':
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (GH-5739)
https://github.com/python/cpython/commit/65a13c19e86488119cc9bc192f5a0b846d90940f


--

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Guido van Rossum

Guido van Rossum  added the comment:

Congratulations all on this milestone! And thanks reviewers for your thorough 
work.

--

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread miss-islington

miss-islington  added the comment:


New changeset ca82e3c0ec4d0d5ce4e1ffec98cc341cb5913446 by Miss Islington (bot) 
in branch '3.7':
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (GH-5739)
https://github.com/python/cpython/commit/ca82e3c0ec4d0d5ce4e1ffec98cc341cb5913446


--
nosy: +miss-islington

___
Python tracker 

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



[issue25988] collections.abc.Indexable

2018-02-18 Thread Ned Deily

Ned Deily  added the comment:


New changeset 2e84e47626c6eafacc9f011cd9fccc8bf1c8508e by Ned Deily in branch 
'3.7':
bpo-25988: add NEWS entry for 3.7.0b2 (#5743)
https://github.com/python/cpython/commit/2e84e47626c6eafacc9f011cd9fccc8bf1c8508e


--

___
Python tracker 

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



[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-18 Thread Andrew Scheller

Change by Andrew Scheller :


--
type:  -> enhancement

___
Python tracker 

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



[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-18 Thread Andrew Scheller

Andrew Scheller  added the comment:

Looks like https://bugs.python.org/issue24269 is where this got fixed for the 
3.x documentation ;-)

--

___
Python tracker 

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




[issue25988] collections.abc.Indexable

2018-02-18 Thread Ned Deily

Change by Ned Deily :


--
pull_requests: +5520

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5519

___
Python tracker 

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



[issue32870] Documentation typo (2.x only) for deque.remove

2018-02-18 Thread Andrew Scheller

New submission from Andrew Scheller :

https://docs.python.org/2/library/collections.html#collections.deque.remove 
says "Removed the first occurrence of value."
I believe the "Removed" should be changed to just "Remove" ?

(this has already been fixed in the 3.x documentation 
https://docs.python.org/3/library/collections.html#collections.deque.remove )

--
assignee: docs@python
components: Documentation
messages: 312319
nosy: docs@python, lurchman
priority: normal
severity: normal
status: open
title: Documentation typo (2.x only) for deque.remove
versions: Python 2.7

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5518

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset b3b4a9d3001f1fc7df8efcccdce081de54fa5eab by Serhiy Storchaka 
(Alexey Izbyshev) in branch 'master':
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)
https://github.com/python/cpython/commit/b3b4a9d3001f1fc7df8efcccdce081de54fa5eab


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue25988] collections.abc.Indexable

2018-02-18 Thread Ned Deily

Ned Deily  added the comment:

Thanks, Tim, for noticing that and thanks, Ivan, for taking care of it.  I 
should have cherrypicked this into 3.7.0b1.

--

___
Python tracker 

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



[issue25988] collections.abc.Indexable

2018-02-18 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:


New changeset 0442de5ad7835814d60f46c22a22942abb101aef by Ivan Levkivskyi in 
branch '3.7':
bpo-25988: Emit a warning when use or import ABCs from 'collections'. (GH-5734)
https://github.com/python/cpython/commit/0442de5ad7835814d60f46c22a22942abb101aef


--

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:


New changeset 38928992885d8a04b7188abdba3b04f350bde32d by Ivan Levkivskyi in 
branch '3.7':
bpo-31333: Re-implement ABCMeta in C (GH-5733)
https://github.com/python/cpython/commit/38928992885d8a04b7188abdba3b04f350bde32d


--

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread Alexey Izbyshev

Change by Alexey Izbyshev :


--
keywords: +patch
pull_requests: +5517
stage:  -> patch review

___
Python tracker 

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



[issue32869] Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj

2018-02-18 Thread Alexey Izbyshev

New submission from Alexey Izbyshev :

MultiByteToWideChar expects the destination buffer size to be given in wide 
characters, not bytes.

This is currently not a real issue since _Py_fopen_obj is only used internally 
with mode being a short constant string in all call sites I've found.

--
components: IO, Windows
messages: 312314
nosy: izbyshev, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: Incorrect dst buffer size for MultiByteToWideChar in _Py_fopen_obj
type: enhancement
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue32540] venv docs - doesn't match behavior

2018-02-18 Thread TROUVERIE Joachim

Change by TROUVERIE Joachim :


--
keywords: +patch
pull_requests: +5516
stage: needs patch -> patch review

___
Python tracker 

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



[issue32868] python 3 docs' iterator example has python 2 code

2018-02-18 Thread robotwizard

robotwizard  added the comment:

I'm so sorry... I tried doing it.next() instead of next(it). I'm sincerely 
sorry. I promise not to be so frivolous about opening an issue on the bug 
tracker next time.

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



[issue32868] python 3 docs' iterator example has python 2 code

2018-02-18 Thread robotwizard

New submission from robotwizard :

Please note this is my first issue.

The documentation at https://docs.python.org/3/tutorial/classes.html#iterators 
on the second code block gives the example of iterating a string by creating an 
iterator out of it. However I tried it with python 3.5 and 3.6 and both give me 
a "str_iterator" which has no "next()" method. When I tried the code with 
python 2.7, it works.

--
assignee: docs@python
components: Documentation
messages: 312312
nosy: docs@python, robotwizard, willingc
priority: normal
severity: normal
status: open
title: python 3 docs' iterator example has python 2 code
versions: Python 3.6

___
Python tracker 

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



[issue32540] venv docs - doesn't match behavior

2018-02-18 Thread Jason R. Coombs via Python-bugs-list

Jason R. Coombs  added the comment:

@jtrouverie: Yes, please do. Thanks!

--

___
Python tracker 

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



[issue32540] venv docs - doesn't match behavior

2018-02-18 Thread Joachim Trouverie

Joachim Trouverie  added the comment:

Is there anybody working on this issue or can I make a PR ?

--
nosy: +jtrouverie

___
Python tracker 

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



[issue25988] collections.abc.Indexable

2018-02-18 Thread Ivan Levkivskyi

Change by Ivan Levkivskyi :


--
pull_requests: +5515

___
Python tracker 

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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Ivan Levkivskyi

Change by Ivan Levkivskyi :


--
pull_requests: +5514

___
Python tracker 

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



[issue32162] typing.Generic breaks __init_subclass__

2018-02-18 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

FWIW, this is fixed in 3.7 by PEP 560, providing a separate fix for 3.6 is not 
easy, and you have a good workaround, so I propose to close this issue.

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2018-02-18 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

FWIW, this is fixed in 3.7 by PEP 560. I don't think we will be able to get rid 
of `sys._getframe` workaround on 3.6, so I propose to just close this.

--
dependencies:  -Provide a way to check for *real* typing.Union instances
resolution:  -> fixed
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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Ivan Levkivskyi

Change by Ivan Levkivskyi :


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



[issue31333] Implement ABCMeta in C

2018-02-18 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:


New changeset 03e3c340a0156891a036d6dbdb9e348108826255 by Ivan Levkivskyi in 
branch 'master':
bpo-31333: Re-implement ABCMeta in C (#5273)
https://github.com/python/cpython/commit/03e3c340a0156891a036d6dbdb9e348108826255


--

___
Python tracker 

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



[issue28956] return list of modes for a multimodal distribution instead of raising a StatisticsError

2018-02-18 Thread Srikanth Anantharam

Srikanth Anantharam  added the comment:

Please review the new PR with tests.
I'll update the documentation if the PR is acceptable.

--
title: return minimum of modes for a multimodal distribution instead of raising 
a StatisticsError -> return list of modes for a multimodal distribution instead 
of raising a StatisticsError

___
Python tracker 

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



[issue28956] return minimum of modes for a multimodal distribution instead of raising a StatisticsError

2018-02-18 Thread Steven D'Aprano

Steven D'Aprano  added the comment:

What makes the minimum mode better than the maximum?

--

___
Python tracker 

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



[issue28956] return minimum of modes for a multimodal distribution instead of raising a StatisticsError

2018-02-18 Thread Srikanth Anantharam

Change by Srikanth Anantharam :


--
keywords: +patch
pull_requests: +5512
stage:  -> patch review

___
Python tracker 

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



[issue32863] Missing support for Emojis in tkinter

2018-02-18 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

AFAIK, the build with more than 16-bit characters is not well tested and not 
officially supported and may need patching other code. Supporting the fork of 
Tcl/Tk is out of the competency of the Python core development team. If you 
have successful experience with building and using Tcl/Tk with full Unicode 
support I suggest you to achieve the official status of this build and promote 
its distribution.

--
resolution:  -> third party
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



[issue32864] Visual glitches when animating ScrolledText instances using place geometry manager

2018-02-18 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Tkinter is just a wrapper around Tcl/Tk. It is not responsible for 
visualization. Please report your issue on the Tk bug tracker 
https://core.tcl.tk/tk/reportlist.

--
resolution:  -> third party
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