[issue34996] Add name to process and thread pool

2018-10-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for clarifying the use case. I think it's a good idea with multiple 
thread pools and below outputs for the program with the PR is more easier to 
debug than the current code. 

# ../backups/bpo34720.py

from multiprocessing.pool import ThreadPool

def f(x):
from threading import current_thread
print(current_thread().name)
return x*x

if __name__ == '__main__':
p1 = ThreadPool(5, name="process-1")
p1.map_async(f, [1, 2, 3])
p1.close()

p2 = ThreadPool(5, name="process-2")
p2.map_async(f, [1, 2, 3])
p2.close()

p1.join()
p2.join()

# With patch

$ ./python.exe ../backups/bpo34720.py
process-1-Worker-0
process-1-Worker-1
process-1-Worker-0
process-2-Worker-0
process-2-Worker-1
process-2-Worker-0

# Without patch and removing name parameter

$ python3.7 ../backups/bpo34720.py
Thread-1
Thread-1
Thread-1
Thread-9
Thread-9
Thread-9

--

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel

New submission from Stéphane Wirtel :

In the doc, we write PEP XYZ but there is a sphinx role for that, just replace 
PEP XYZ by :pep:`XYZ` and convert the :PEP: by :pep:

--
assignee: docs@python
components: Documentation
messages: 328240
nosy: docs@python, matrixise
priority: normal
severity: normal
status: open
title: Use the role :pep: for the PEP \d+
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-22 Thread STINNER Victor


STINNER Victor  added the comment:

"http.server is meant for demo purposes and does not implement the stringent 
security checks needed of a real HTTP server. We do not recommend using this 
module directly in production."

I'm not sure about "demo" and "real" in this warning. I propose:

"http.server is not recommended for production: it only implements basic 
security checks."

--

___
Python tracker 

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



[issue34971] add support for tls/ssl sessions in asyncio

2018-10-22 Thread Rémi Cardona

Rémi Cardona  added the comment:

Hi Andrew,

How should I proceed? What's the best avenue to get in touch with Yuri?

Thanks

--

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


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

___
Python tracker 

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



[issue34971] add support for tls/ssl sessions in asyncio

2018-10-22 Thread Christian Heimes


Christian Heimes  added the comment:

Don't use the existing session feature, yet. It only works for TLS 1.2 
connections. TLS 1.3 behaves differently. There are multiple session tickets 
(usually two) and tickets are sent after handshake. Further more, Python lacks 
clear shutdown of a connection, which causes further problems with session 
handling. See https://www.openssl.org/docs/manmaster/man3/SSL_get_session.html

--
nosy: +christian.heimes
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



[issue28960] Small typo in Thread.join docs

2018-10-22 Thread beautifuljose


beautifuljose  added the comment:

I think both dash and comma should be removed
Found a similar problem here: 
https://www.paperhelp.org/essay/buy-argumentative-essay.html

--
nosy: +beautifuljose

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
 added the comment:

This gives us the hyperlink everywhere a PEP is referenced?

--
nosy: +thatiparthy

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

sure, it's the default behavior of this role, I have a PR with the fix, but 
Github has a big issue with the PRs :/

--

___
Python tracker 

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



[issue35043] functools.reduce doesn't work properly with itertools.chain

2018-10-22 Thread Vasantha Ganesh Kanniappan


New submission from Vasantha Ganesh Kanniappan :

I'm facing this issue in python 3.6.5

How to reproduce:

my_list = [[1, 2], [3, 4]]
a = reduce(itertools.chain, my_list)

The output of `a' is [1, 2, 3, 4] as expected, but now 
my_list is [[1, 2, 3, 4], [3, 4]]

--
components: Library (Lib)
messages: 328248
nosy: Vasantha Ganesh Kanniappan
priority: normal
severity: normal
status: open
title: functools.reduce doesn't work properly with itertools.chain
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



[issue35044] Use the :exc: role for the exceptions in the doc

2018-10-22 Thread Stéphane Wirtel

New submission from Stéphane Wirtel :

In the doc, there is some locations where we do not use the :exc: role for the 
exceptions, I try to fix that with this PR.

--
assignee: docs@python
components: Documentation
messages: 328249
nosy: docs@python, matrixise
priority: normal
severity: normal
status: open
title: Use the :exc: role for the exceptions in the doc
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue35039] remove unused vars in Lib/turtledemo module

2018-10-22 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

New submission from Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
:

This PR removes the variables which are no longer used.

--

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What is wrong with the current code? Why replace :PEP: with :pep:?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

in fact, in the doc of Sphinx, it's just :pep: and not :PEP:

see 
http://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html?highlight=%3Apep%3A#role-pep

in this case, I think it's better to use the "reference" and use pep in 
lowercase.

--

___
Python tracker 

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



[issue35027] distutils.core.setup does not raise TypeError when if classifiers, keywords and platforms fields are not specified as a list

2018-10-22 Thread Berker Peksag


Change by Berker Peksag :


--
nosy: +berker.peksag

___
Python tracker 

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



[issue32890] os: Some functions may report bogus errors on Windows

2018-10-22 Thread STINNER Victor


Change by STINNER Victor :


--
versions: +Python 2.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



[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread STINNER Victor


STINNER Victor  added the comment:

> Should this be back-ported to 3.7 and 3.6? 2.7?

IMHO it's a bad idea to introduce a *new* exception in stable version. I 
suggest to only modify the master branch.

--
nosy: +vstinner
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This change is big enough now. I think it is better to not backport it.

--

___
Python tracker 

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



[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2018-10-22 Thread Charalampos Stratakis


New submission from Charalampos Stratakis :

There is an Python test that checks the minimum TLS version - 
test_min_max_version (test.test_ssl.ContextTests).

Fedora 29+ sets TLSv1 as explicit minimum version. Python's test suite assumes 
that the minimum protocol version is set to a magic marker.


FAIL: test_min_max_version (test.test_ssl.ContextTests)
--
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_ssl.py", line 1084, in 
test_min_max_version
ctx.minimum_version, ssl.TLSVersion.MINIMUM_SUPPORTED
AssertionError:  != 


We currently workaround the problem by setting:

export OPENSSL_CONF=/non-existing-file

--
assignee: christian.heimes
components: SSL
messages: 328255
nosy: christian.heimes, cstratak
priority: normal
severity: normal
status: open
title: test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ 
and openssl 1.1.1
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి

Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) 
 added the comment:

I am -0 on this. I want to hear a more compelling argument than wanting to 
leverage an existing feature.

IMHO, when i am reading the documentation i never bothered to go into the PEP 
docs - most of the times. I explicitly visited a PEP when i want to understand 
the rationale of a feature.

My 2 cents.

--

___
Python tracker 

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



[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2018-10-22 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

@thatiparthy

When you start to contribute to Python, and you see there is a PEP in the doc.

1. What's a PEP?
2. Where can I find the PEP XYZ?
3. Am I on the right website for the PEP?

if you don't know the concept of the PEPs, you will check with your favorite 
search engine because you are a developer. This is not the case for everybody.

For a newcomer/beginner, read the right information just with a click, it's 
just the founding principles of the Web.

create a link is not a real problem for a computer and for the end-user will be 
happy.

--

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Julien Palard


Julien Palard  added the comment:

When mentionning a PEP I see no reason not to point to it, and as it's easy to 
do with the pep role, I'm +1 on this.

--
nosy: +mdk

___
Python tracker 

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



[issue34980] KillPython target doesn't detect 64-bit processes

2018-10-22 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

It seems my buildbot has a stuck process again.

The "sticking" occurred in this case due to test_concurrent_futures being hung 
(for over 38hrs! which is a different issue) and a DSL link reset at the same 
time.

So now, all builds on the master branch fail because the compile step fails due 
to process in use error.

I've submitted a PR implementing Eryk Sun's idea.

--

___
Python tracker 

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



[issue34980] KillPython target doesn't detect 64-bit processes

2018-10-22 Thread Steve Dower


Steve Dower  added the comment:

Sorry for missing the PR. One little tweak for consistency, but otherwise it 
looks fine.

--

___
Python tracker 

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



[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread Tal Einat


Tal Einat  added the comment:

Thanks for all of your work on this Oren!

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



[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread STINNER Victor


STINNER Victor  added the comment:

( https://github.com/python/cpython/pull/10029 has been merged, but GitHub 
webhooks are paused and so no notification has been sent to this bug yet. )

--

___
Python tracker 

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



[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-10-22 Thread Łukasz Langa

Change by Łukasz Langa :


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



[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread STINNER Victor


STINNER Victor  added the comment:

I reopen the issue since there are still 2 open PRs: PR 8878 and PR 8959.

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

___
Python tracker 

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



[issue35043] functools.reduce doesn't work properly with itertools.chain

2018-10-22 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Your example code doesn't behave the way you claim. my_list isn't changed, and 
`a` is a chain generator, not a list (without a further list wrapping).

In any event, there is no reason to involve reduce here. chain already handles 
varargs what you're trying to do without involving reduce at all:

a = list(itertools.chain(*my_list))

or if you prefer to avoid unnecessary unpacking:

a = list(itertools.chain.from_iterable(*my_list))

Either way, a will be [1, 2, 3, 4], and my_list will be unchanged, with no 
wasteful use of reduce.

--
nosy: +josh.r

___
Python tracker 

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



[issue32890] os: Some functions may report bogus errors on Windows

2018-10-22 Thread Alexey Izbyshev


Alexey Izbyshev  added the comment:

Python 2.7 doesn't have the same issue.

In os.execve(), posix_error() is used, but it is based on errno, which is 
correct. (A funny bit is that os.execve('', ['a'], {}) crashes in 2.7, probably 
because of some checks in CRT).

And os.truncate() is not implemented in 2.7 at all.

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



[issue35043] functools.reduce doesn't work properly with itertools.chain

2018-10-22 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue35042] Use the role :pep: for the PEP \d+

2018-10-22 Thread Karthikeyan Singaravelan

Karthikeyan Singaravelan  added the comment:

If I am understanding this correctly the :pep: role is already present and only 
that PEP references that don't have this role are being updated now?

➜  cpython git:(master) rg ':pep:`\d+`' | grep 'rst' | grep -Ev 'NEWS|whatsnew' 
| wc
 3242686   27228

References that don't have the role are being updated along with :PEP: changed 
to :pep: in the PR? (Around 30 entries) 

➜  cpython git:(master) rg 'PEP \d+' | grep 'rst' | grep -Ev 'NEWS|whatsnew' | 
wc
  21 2281891
➜  cpython git:(master) rg ':PEP:`\d+`' | grep 'rst' | grep -Ev 'NEWS|whatsnew' 
| wc
   6  51 517

I think older NEWS entries can be left behind like the PR changes whatsnew for 
Python 2.0, 2.1, 2.5 and they won't be back ported I personally feel little 
value in changing them though doc changes have been done on those files in 2016 
and up to the reviewer.

Thanks

--
nosy: +xtreak

___
Python tracker 

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



[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2018-10-22 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

@Serhiy: I would like to proceed with this. Do you have further comments? Do 
you prefer to bring this up on python-dev for further discussion?

--

___
Python tracker 

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



[issue35004] Odd behavior when using datetime.timedelta under cProfile

2018-10-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks Anthony for the details. This was fixed in master and back ported to 
3.7. The fix is also released with 3.7.1 [0] which I have verified locally. So 
I propose closing this issue since upgrading to the latest maintenance release 
fixes this.

[0] https://www.python.org/downloads/release/python-371/

Thanks

--
nosy: +xtreak

___
Python tracker 

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



[issue35044] Use the :exc: role for the exceptions in the doc

2018-10-22 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


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

___
Python tracker 

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



[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Josh Snyder


New submission from Josh Snyder :

logging.StreamHandler contains the following code:

stream.write(msg)
stream.write(self.terminator)
stream.flush()

When sys.stderr (or whatever other stream) is unbuffered, this results in two 
system calls and allows log records from different processes to concatenate on 
the same line in the output stream (followed by multiple newlines). This issue 
is new in Python 3.7, as stdout and stderr became "truly unbuffered" (cf. 
#30404).

As a simple solution, I believe the following would fix the issue and also be 
backward compatible:

stream.write(msg + self.terminator)
stream.flush()

--
messages: 328269
nosy: josnyder
priority: normal
severity: normal
status: open
title: logging.StreamHandler performs two syscalls when one would do
type: behavior
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



[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +vinay.sajip, xtreak

___
Python tracker 

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



[issue35004] Odd behavior when using datetime.timedelta under cProfile

2018-10-22 Thread Paul Ganssle


Change by Paul Ganssle :


--
nosy: +p-ganssle

___
Python tracker 

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



[issue29843] errors raised by ctypes.Array for invalid _length_ attribute

2018-10-22 Thread Tal Einat


Tal Einat  added the comment:


New changeset 2447773573e74819e163f8963ab107bc5db123e5 by Tal Einat in branch 
'master':
bpo-29843: raise AttributeError if given negative _length_ (GH-10029)
https://github.com/python/cpython/commit/2447773573e74819e163f8963ab107bc5db123e5


--

___
Python tracker 

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



[issue34856] Make the repr of lambda contain signature and body expression.

2018-10-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

My understanding of the current code is that in the example above, f.__name__ 
would be "".

1. I believe this would make the representation
 < at 0x>
unless functions gain a custom __repr__ method that strips the brackets off the 
name when present.  I don't really like the alternative of leaving the brackets 
off the name.

2. My proposal is to limit the length of the .__name__ attribute.  This not 
only limits the repr but also the function name part of traceback lines.  I 
consider the latter more important as I personally see function names in 
tracebacks far more often than in representations. Long function names wrapped 
to several lines would in my opinion negatively affect tracebacks.  Large 
collections do not affect tracebacks.

--

___
Python tracker 

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



[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3df85404d4bf420db3362eeae1345f2cad948a71 by Victor Stinner (Paul 
Ganssle) in branch 'master':
bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959)
https://github.com/python/cpython/commit/3df85404d4bf420db3362eeae1345f2cad948a71


--

___
Python tracker 

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



[issue35021] Assertion failures in datetimemodule.c.

2018-10-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9376

___
Python tracker 

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



[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9377

___
Python tracker 

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



[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9379

___
Python tracker 

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



[issue35021] Assertion failures in datetimemodule.c.

2018-10-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9378

___
Python tracker 

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



[issue28960] Small typo in Thread.join docs

2018-10-22 Thread Martin Panter


Change by Martin Panter :


--
Removed message: https://bugs.python.org/msg328245

___
Python tracker 

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



[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9380
stage: resolved -> patch review

___
Python tracker 

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



[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Josh Snyder


Change by Josh Snyder :


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

___
Python tracker 

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



[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Vinay Sajip


Change by Vinay Sajip :


--
pull_requests: +9382

___
Python tracker 

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



[issue34912] Update overflow checks in resize_buffer

2018-10-22 Thread STINNER Victor


STINNER Victor  added the comment:

The current code LGTM.

--
nosy: +vstinner
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



[issue35039] remove unused vars in Lib/turtledemo module

2018-10-22 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +9383

___
Python tracker 

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



[issue35040] [functools] provide an async-compatible version of functools.lru_cache

2018-10-22 Thread Brett Cannon


Brett Cannon  added the comment:

Making this a feature request.

--
nosy: +brett.cannon
title: functools.lru_cache does not work with coroutines -> [functools] provide 
an async-compatible version of functools.lru_cache
type:  -> enhancement
versions:  -Python 3.5, 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



[issue35033] Column or row spanning cells are not implemented.

2018-10-22 Thread Julien Palard


Julien Palard  added the comment:

POC is now a PR: https://github.com/sphinx-doc/sphinx/pull/5559

--

___
Python tracker 

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



[issue34901] Missing isolated (-I) flag in sys.flags table

2018-10-22 Thread Ned Deily


Ned Deily  added the comment:


New changeset da7d7d0ccc2e7cab62080e146cab027f2aa6fd03 by Ned Deily 
(danishprakash) in branch '3.6':
[3.6] bpo-34901: add -I flag to sys.flags (GH-9755)
https://github.com/python/cpython/commit/da7d7d0ccc2e7cab62080e146cab027f2aa6fd03


--
nosy: +ned.deily

___
Python tracker 

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



[issue34901] Missing isolated (-I) flag in sys.flags table

2018-10-22 Thread Ned Deily


Ned Deily  added the comment:

Thanks, Danish and everyone else!

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



[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-10-22 Thread miss-islington


miss-islington  added the comment:


New changeset 18450be94d74b5c7e05a08f4aaa4792749ecda18 by Miss Islington (bot) 
in branch '3.7':
bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959)
https://github.com/python/cpython/commit/18450be94d74b5c7e05a08f4aaa4792749ecda18


--

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset 83a07652e0033f0d9994ae7634b91d6581c56b00 by Xiang Zhang (Andrei 
Petre) in branch 'master':
bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
https://github.com/python/cpython/commit/83a07652e0033f0d9994ae7634b91d6581c56b00


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9384

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9385

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington


miss-islington  added the comment:


New changeset fc62c7223ed1ecd422e870cf7bfc2306050a by Miss Islington (bot) 
in branch '3.7':
bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
https://github.com/python/cpython/commit/fc62c7223ed1ecd422e870cf7bfc2306050a


--
nosy: +miss-islington

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread miss-islington


miss-islington  added the comment:


New changeset 42892a2a38bb97c41e7b1b154e2b5b6f13d27b57 by Miss Islington (bot) 
in branch '3.6':
bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
https://github.com/python/cpython/commit/42892a2a38bb97c41e7b1b154e2b5b6f13d27b57


--

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang


Change by Xiang Zhang :


--
pull_requests: +9386

___
Python tracker 

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



[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-10-22 Thread Tal Einat


Tal Einat  added the comment:


New changeset 3b0047d8e982b10b34ab05fd207b7d513cc1188a by Tal Einat (Alexey 
Izbyshev) in branch 'master':
bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings 
(GH-8878)
https://github.com/python/cpython/commit/3b0047d8e982b10b34ab05fd207b7d513cc1188a


--

___
Python tracker 

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



[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-10-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9387

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-10-22 Thread Tal Einat


Tal Einat  added the comment:

Ned, should this also be added to the 2.7 What's New? Or perhaps reverted on 
the 2.7 branch?

--

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset 56a4a3aa555b3abc756cf837eddac4c0bf545db7 by Xiang Zhang in branch 
'2.7':
[2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. 
(GH-9809)
https://github.com/python/cpython/commit/56a4a3aa555b3abc756cf837eddac4c0bf545db7


--

___
Python tracker 

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



[issue34748] Incorrect HTML link in functools.partial

2018-10-22 Thread Xiang Zhang


Xiang Zhang  added the comment:

Thanks all. :-)

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



[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset b7d62050e7d5fc208ae7673613da4f1f2bc565c4 by Vinay Sajip (Josh 
Snyder) in branch 'master':
bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042)
https://github.com/python/cpython/commit/b7d62050e7d5fc208ae7673613da4f1f2bc565c4


--

___
Python tracker 

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



[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9388

___
Python tracker 

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