[issue28595] shlex.shlex should not augment wordchars

2017-06-10 Thread Evan Andrews

Evan Andrews added the comment:

Thanks, Vinay. I understand you're busy, and I'm in no particular rush to have 
this looked at, so feel free to come back to it when you have more time. I've 
submitted the changes as a PR.

I also have an additional concern - even with this change, there is no way to 
tell whether a token should be considered special or text:

>>> import shlex
>>> def split(line):
... s = shlex.shlex(line, posix=True, punctuation_chars=True)
... s.whitespace_split = True
... return list(s)
...
>>> split('a&&b')
['a', '&&', 'b']
>>> split('a "&&" b')
['a', '&&', 'b']

I feel this can be addressed after this as a separate issue but wanted to 
mention it now so you're aware.

--

___
Python tracker 

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



[issue28994] Misc fixes and cleanups in error handling C code

2017-06-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm trying to split the patch on smaller parts.

--

___
Python tracker 

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



[issue19180] some RFC references could be updated

2017-06-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2137

___
Python tracker 

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



[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-10 Thread Richard S. Gordon

Richard S. Gordon added the comment:

> On Jun 9, 2017, at 4:59 PM, Richard S. Gordon  wrote:
> 
> 
> Richard S. Gordon added the comment:
> 
>> On Jun 9, 2017, at 4:41 PM, STINNER Victor  wrote:
>> 
>> 
>> STINNER Victor added the comment:
>> 
>> Cygwin is not currently supported by CPython, so I suggest to close this
>> issue. I mean: please report the issue to Cygwin, not CPython.
>> 
>> --
>> 
>> ___
>> Python tracker 
>> 
>> ___
> 
> Before you close this issue, answer how do you explain my success in running 
> my wxPython emulation on all Cygwin releases since 2007 (Python 2.6.8) to 
> 2017 (2.7.13 and Python 3.0-3.5.2 and 3.6.0-3.6.2)?
> 
> Richard S. Gordon
> 
> --
> 
> ___
> Python tracker 
> 
> ___

FYI:

My current test platform is a 27” iMAC (with 3.5 GHz Intel Core i7, 16 GB 1600 
MHz DDR3) running Mac OS 10.12.5 (Sierra). It includes support for Python 
3.6.0. It uses the Parallels Desktop 12 for Mac (a hypervisor) to run the 
following guest operating system:
Android 4,
Linux (CentOS 7.2 & 7.3, Debian 8.7 & 8.8, Fedora 24 &25, OpenSUSE 13.2, 
Scientific 7.2 & 7.3, Ubuntu 16.04 & 17.04)
Solaris (OpenIndians Hipster 1610)
Unix (PCDBSD 10.3 & TrueOS 12.0)
Windows (10 32-bit, 10 64-bit) (NOTE: previously ran 32-bit XP, 7 and 8.1)
Only Windows 10, with Cygwin, includes support for Python 3.6.1 and support for 
xterm, xterm-16color and xterm-256olor. The other Guest Operating Systems 
typically support 3.4.x or 3.5.x with xterm (8-color).

Richard S. Gordon

--

___
Python tracker 

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



[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Yury Selivanov added the comment:
> I don't think we need to. Isn't 3.5 is in security/important bug fix mode? I 
> don't view this change as an important one (it's just a nice thing to have).

Not yet, it still accept bug fixes:
https://docs.python.org/devguide/#status-of-python-branches

--

___
Python tracker 

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



[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Oh ok, fine. Hopefully, 3.6.2 is coming in next days ;-)

--

___
Python tracker 

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



[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2138

___
Python tracker 

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



[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Ned Deily and Yury Selivanov are in favor of a backport, thank you for looking 
at this one guys. So I created the PR 2075. I will merge it once the CI pass.

--

___
Python tracker 

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



[issue30547] [Windows] SubinterpreterTest.test_callbacks_leak() of test_atexit leaks references

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Eric Snow: "Thanks for taking care of this, Victor, Stéphane & Louie!"

You're welcome. FYI I'm trying to look more closely at the new Refleaks 
buildbot, so now it should become easier to catch regressions.

By the way, I like the work you did with Nick. Even if I don't understand 
everything, I know that we have to do it :-)

--

___
Python tracker 

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



[issue29905] TypeErrors not formatting values correctly

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

It seems like the bug has been fixed in all branches, so I close the issue.

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



[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Thanks for taking care of our CI, Zach ;-) Buildbots, Travis CI job and 
AppVeyor are now fixed if I understood correctly, so I close the issue.


Serhiy Storchaka: "And disable the "tzdata" resource for skipping generated 
tests for all timezones in test_datetime. Or make them requiring not only 
"tzdata", but "cpu"."

Hum, I have no real opinion on this issue. I think that the first main issue 
was test_tools, and disabling cpu on our CI has fixed the issue. I'm not sure 
that we should go deeper. *If* you consider thta that test_datetime is too 
slow, yeah, maybe add also a requirement on the "cpu" resource. But I don't 
recall to have seen "test_datetime" in the final "top 10 slowest tests" (even 
if I didn't look recently).


Brett Cannon: "One thing to note is if we want to speed up things like the 
coverage run on Travis we may want to make this optionally more deterministic 
rather than fully random for the 10 selected files, (...)"

Using a fixed list of filenames would benefit to everyone, not only to the CI. 
But someone has to select these files :-)

Brett: "Maybe having a ``-u deterministic`` resource to take out the randomness 
for coverage runs but leave the randomness for buildbots?"

We may start by using a fixed random seed for our coverage tests? And make sure 
that each test file starts with the same seed? IMHO coverage is a different 
issue, so I suggest to open a new issue if you consider that it's worth it to 
enhance the coverage CI job ;-)

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



[issue30621] import json before using json module in tutorial Input and Output

2017-06-10 Thread Masaki Suketa

New submission from Masaki Suketa:

In Input and Output tutorial, use json module without `import json`.

--
assignee: docs@python
components: Documentation
messages: 295626
nosy: docs@python, suketa
priority: normal
pull_requests: 2139
severity: normal
status: open
title: import json before using json module in tutorial Input and Output
type: resource usage
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



[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 0b7629cd846e3e160ac07cafc4e97644024f11b8 by Victor Stinner in 
branch '3.6':
bpo-30038: fix race condition in signal delivery + wakeup fd (#1082) (#2075)
https://github.com/python/cpython/commit/0b7629cd846e3e160ac07cafc4e97644024f11b8


--

___
Python tracker 

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



[issue22898] segfault during shutdown attempting to log ResourceWarning

2017-06-10 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Antoine asked in PR 1981:
> Did you verify the removed code here wasn't needed anymore?

Just checked that crasher infinite_rec_2.py (removed by 1e534b5) does not crash 
with PR 1981. The other crashers listed at 1e534b5 are not valid Python 3.7 
code.  Does anyone know how to translate them into Python 3.7 ?

With PR 1981 infinite recursion does not occur in PyErr_NormalizeException() 
when the tstate->overflowed flag is false upon entering this function and:
* either (obviously) the normalizing of this exception does not fail
* or the normalizing of this exception fails with an exception whose 
normalization won't fail (for example a RecursionError).

Removing the PyExc_RecursionErrorInst singleton decreases the cases covered by 
the recursion checks because the test made upon using PyExc_RecursionErrorInst 
(in the 'finally' label of PyErr_NormalizeException()) has the side effect of 
adding another recursion check to the normal recursion machinery of 
_Py_CheckRecursiveCall().  Those are corner cases though, such as for example 
the following case that will abort instead now with PR 1981 [1]:
* tstate->overflowed has been set to true outside 
PyErr_NormalizeException() and the corresponding RecursionError has been 
discarded
* PyErr_NormalizeException() attempts normalizing a python exception that 
raises a python exception that raises ... (and so on indefinitely)
IMO it is ok to abort in such cases. As Brett wrote 9 years ago in 
https://mail.python.org/pipermail/python-dev/2008-August/082107.html:
"I have always viewed the check as a bonus sanity check, but not something 
to heavily rely upon."
One can also note that this other recursion check added with the use of 
PyExc_RecursionErrorInst does not respect the tstate->overflowed flag so that 
it adds another level of complexity to the recursion machinery.

[1] But with PR 1981, a RecursionError is raised when replacing MyException in 
test_recursion_normalizing_exception() at Lib/test/test_exceptions.py with:

  class MyException(Exception):
  def __init__(self):
  raise MyException

--

___
Python tracker 

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



[issue22898] segfault during shutdown attempting to log ResourceWarning

2017-06-10 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue28556] typing.py upgrades

2017-06-10 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi :


--
pull_requests: +2140

___
Python tracker 

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



[issue19180] some RFC references could be updated

2017-06-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 5f31d5cf6efa8c304d352e34f9f2a1ed0074298e by Serhiy Storchaka in 
branch 'master':
Regenerate Argument Clinic code for bpo-19180. (#2073)
https://github.com/python/cpython/commit/5f31d5cf6efa8c304d352e34f9f2a1ed0074298e


--

___
Python tracker 

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



[issue19180] some RFC references could be updated

2017-06-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2141

___
Python tracker 

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



[issue19180] some RFC references could be updated

2017-06-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 911068e250ee2b0847ca78d9ff527e0d6bf94551 by Serhiy Storchaka in 
branch '3.6':
[3.6] Regenerate Argument Clinic code for bpo-19180. (GH-2073). (#2077)
https://github.com/python/cpython/commit/911068e250ee2b0847ca78d9ff527e0d6bf94551


--

___
Python tracker 

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



[issue19180] some RFC references could be updated

2017-06-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> closed

___
Python tracker 

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



[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 1b7863c3b6519c6e134c28cab8b8af0dea43e375 by Victor Stinner in 
branch 'master':
bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027)
https://github.com/python/cpython/commit/1b7863c3b6519c6e134c28cab8b8af0dea43e375


--

___
Python tracker 

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



[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Thanks Grzegorz Grzywacz! I commited your idea of fix. Let's if it fixes the 
issue. It will be hard to check since it seems like the bug was random.

Later, I will backport the fix to other branches.

--

___
Python tracker 

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



[issue13312] test_time fails: strftime('%Y', y) for negative year

2017-06-10 Thread Jakub Wilk

Changes by Jakub Wilk :


--
nosy: +jwilk

___
Python tracker 

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



[issue30595] test_queue_feeder_donot_stop_onexc() of test_multiprocessing_spawn fails randomly on x86 Windows7 3.x

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Let's *see* if it fixes the issue. It will be hard to check since it seems
like the bug was random.

--

___
Python tracker 

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



[issue30614] [EASY][2.7] testInitNonExistentFile() of test_bz2 leaks references

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 28288bebaf61269d1e26bb0795c2de6b481e1cf0 by Victor Stinner 
(Stéphane Wirtel) in branch '2.7':
bpo-30614: testInitNonExistentFile() of test_bz2 leaks references (#2033)
https://github.com/python/cpython/commit/28288bebaf61269d1e26bb0795c2de6b481e1cf0


--

___
Python tracker 

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



[issue30576] http.server should support HTTP compression (gzip)

2017-06-10 Thread Pierre Quentel

Pierre Quentel added the comment:

The compression is done on the fly : if compression criteria are satisfied, the 
original content is gzipped, either in memory or on a temporary file on disk, 
depending on the file size.

The gzipped content is not cached, but since the server now supports browser 
cache, on the next requests for the same file a 304 response will be sent.

--

___
Python tracker 

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



[issue30576] http.server should support HTTP compression (gzip)

2017-06-10 Thread Pierre Quentel

Changes by Pierre Quentel :


--
pull_requests: +2142

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Yury Selivanov

Yury Selivanov added the comment:


New changeset 6e14fd2a14cef6ea0709ad234ab41198c2195591 by Yury Selivanov in 
branch '3.6':
[3.6] bpo-29406: asyncio SSL contexts leak sockets after calling close with 
certain servers (GH-409) (#2062)
https://github.com/python/cpython/commit/6e14fd2a14cef6ea0709ad234ab41198c2195591


--

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Yury Selivanov

Yury Selivanov added the comment:


New changeset 1395c58ef7b98f087d1d5d50962fe7a8c032f34d by Yury Selivanov in 
branch '3.5':
[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with 
certain servers (GH-409) (#2063)
https://github.com/python/cpython/commit/1395c58ef7b98f087d1d5d50962fe7a8c032f34d


--

___
Python tracker 

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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 76eabd3a21dc578de6093d45dd8d69a5ec4b9afe by Mariatta in branch 
'3.6':
bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (GH-2065)
https://github.com/python/cpython/commit/76eabd3a21dc578de6093d45dd8d69a5ec4b9afe


--

___
Python tracker 

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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 656f232131e7a49800662119c7f9b8078729e697 by Mariatta in branch 
'3.5':
bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (GH-2066)
https://github.com/python/cpython/commit/656f232131e7a49800662119c7f9b8078729e697


--

___
Python tracker 

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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 9660a7e4bbc3932846fcde0e31856b5b3908b834 by Mariatta in branch 
'2.7':
bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (GH-2067)
https://github.com/python/cpython/commit/9660a7e4bbc3932846fcde0e31856b5b3908b834


--

___
Python tracker 

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



[issue25409] fnmatch.fnmatch normalizes slashes/backslashes on Windows

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

This has been fixed, and backported to 2.7, 3.5, and 3.6.

Thanks :)

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



[issue30062] datetime in Python 3.6+ no longer respects 'TZ' environment variable

2017-06-10 Thread Jakub Wilk

Jakub Wilk added the comment:

This is a side-effect of fixing issue #28067.

--
nosy: +jwilk

___
Python tracker 

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



[issue30621] import json before using json module in tutorial Input and Output

2017-06-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review
type: resource usage -> 
versions: +Python 2.7, Python 3.5, Python 3.7

___
Python tracker 

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



[issue28206] signal.Signals not documented

2017-06-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review

___
Python tracker 

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



[issue30622] Fix NPN guard for OpenSSL 1.1

2017-06-10 Thread Melvyn Sopacua

New submission from Melvyn Sopacua:

Starting OpenSSL 1.1, the variable OPENSSL_NPN_NEGOTIATED is always defined. 
This makes the NPN detection fail.

Related info: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217703

--
assignee: christian.heimes
components: SSL
messages: 295643
nosy: christian.heimes, msopacua
priority: normal
pull_requests: 2144
severity: normal
status: open
title: Fix NPN guard for OpenSSL 1.1
versions: Python 2.7, Python 3.3, Python 3.4, 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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Arek Bulski

New submission from Arek Bulski:

About few days ago python-nightly started failing on TravisCI for no reason, 
and I dont think its due to my code. In fact it fails on importing numpy but 
fails to get into catch ImportError. This is a recent BUG. 

Build log:
https://travis-ci.org/construct/construct/jobs/241153020

--
messages: 295644
nosy: Arek Bulski
priority: normal
severity: normal
status: open
title: python-nightly import numpy fails since recently
type: crash
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



[issue30312] Small correction in set code sample

2017-06-10 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2145

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +njs

___
Python tracker 

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



[issue30599] os.register_at_fork(): allow to unregister callbacks -- test_threaded_import leaks references

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:


New changeset c5179f6e2dfcc01cf0b977b184f5b8f8ac98fab1 by Victor Stinner in 
branch 'master':
bpo-30599: Fix test_threaded_import reference leak (#2029)
https://github.com/python/cpython/commit/c5179f6e2dfcc01cf0b977b184f5b8f8ac98fab1


--

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Jelle Zijlstra

Jelle Zijlstra added the comment:

The error is 
/home/travis/virtualenv/python3.7-dev/lib/python3.7/site-packages/numpy/core/multiarray.cpython-37m-x86_64-linux-gnu.so:
 undefined symbol: PyTraceMalloc_Untrack. On a quick look I couldn't find any 
recent changes in CPython related to tracemalloc.

--
nosy: +Jelle Zijlstra

___
Python tracker 

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



[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

As Nick noted, this change needs to be properly documented for 3.6.2 and other 
maintenance releases.

--
nosy: +benjamin.peterson, larry
priority: critical -> release blocker

___
Python tracker 

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



[issue30624] selectors should use bare except clauses

2017-06-10 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola':

Right now it uses "except Exception: ...; raise" which does not take 
KeyboardInterrupt and SystemExit into account, leaving the fd in a bad state 
(it's not unregister()ed).

--
components: asyncio
messages: 295648
nosy: berker.peksag, giampaolo.rodola, gvanrossum, haypo, neologix, 
serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: selectors should use bare except clauses
versions: Python 3.4, 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



[issue30624] selectors should use bare except clauses

2017-06-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
pull_requests: +2146

___
Python tracker 

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



[issue30625] Documentation is unclear how "y*" and "y#" formit units vary

2017-06-10 Thread Gregory Szorc

New submission from Gregory Szorc:

https://github.com/indygreg/python-zstandard/issues/26 is a bug report against 
python-zstandard that a C API using the "y#" format unit is unable to accept a 
memoryview instance constructed from a bytes literal. It fails with "TypeError: 
argument 1 must be read-only bytes-like object, not memoryview".

I understand why the "y*" format unit and the buffer protocol are a superior 
API. In hindsight, I should have used the buffer protocol from the beginning in 
python-zstandard. However, this decision was primarily influenced because the 
docs aren't clear about the apparent limitations of "y#" compared to "y*" and I 
believed "y#" would get me what I wanted (pointer to read-only memory) without 
having to be burdened by the complexity of the buffer protocol in my C code.

So, docs issue #1 is that the limitations of "y#" compared to "y*" aren't 
immediately obvious when reading their respective sections in 
https://docs.python.org/3/c-api/arg.html#strings-and-buffers. To their credit, 
the docs for "y*" do have a bold recommendation to use it. But what's missing 
is the critical "why." There is also a paragraph above the format unit list 
explaining "bytes-like object" but this is detached from the definitions for 
"y#" and "y*" so it is easy to pass over.

Issue #2 (which may be an implementation bug) is why "y#" isn't accepting a 
memoryview constructed from bytes. The docs for "y#" say it accepts a 
"read-only bytes-like object," which is defined at 
https://docs.python.org/3/glossary.html#term-bytes-like-object. And the 
paragraphs there explicitly state that a memoryview of an immutable bytes is in 
fact a "read-only bytes-like object." So I have no clue why "y#" is refusing 
such an object.

I'll gladly author a documentation fix. However, I'm not sure what to say 
because I don't understand why "y#" isn't working in this memoryview(bytes) 
case and whether that issue applies to other types.

--
assignee: docs@python
components: Documentation
messages: 295649
nosy: Gregory.Szorc, docs@python
priority: normal
severity: normal
status: open
title: Documentation is unclear how "y*" and "y#" formit units vary
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue29550] Mac build-installer touch step fails after github conversion

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

The changes for Issue23404 removed "make touch" including from the installer 
build.

--
priority: release blocker -> 
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> 'make touch' does not work with git clones of the source 
repository

___
Python tracker 

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



[issue30625] Documentation is unclear how "y*" and "y#" formit units vary

2017-06-10 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage:  -> needs patch
type: enhancement -> behavior
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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Nathaniel Smith

Nathaniel Smith added the comment:

It's because Julian thinks _PyTraceMalloc_Untrack is going to lose its 
underscore in 3.7, so he made numpy assume that. Numpy issue, I'll see what we 
can do.

--

___
Python tracker 

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



[issue30626] "SystemError: SystemError: returned NULL without setting an error

2017-06-10 Thread ppperry

Changes by ppperry :


--
nosy: ppperry
priority: normal
severity: normal
status: open
title: "SystemError: SystemError:  returned NULL 
without setting an error

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

Can we close this issue then?

--
nosy: +ned.deily

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Arek Bulski

Arek Bulski added the comment:

Negative, this bug causes TravisCI to fail on every commit regardless of
code. Please treat this tickes as highest priority.

sob., 10 cze 2017 o 20:54 użytkownik Ned Deily 
napisał:

>
> Ned Deily added the comment:
>
> Can we close this issue then?
>
> --
> nosy: +ned.deily
>
> ___
> Python tracker 
> 
> ___
>
-- 
~ Arkadiusz Bulski
~ tel 503 357 111 lub WhatsApp/Telegram

--

___
Python tracker 

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



[issue30626] "SystemError: SystemError: returned NULL without setting an error" from open function

2017-06-10 Thread ppperry

New submission from ppperry:

This code (reduced from an example I had of trying to debug code including the 
module-level code of already imported modules), raises a SystemError:
import builtins
from importlib.machinery import PathFinder
from importlib.util import find_spec
import importlib
import sys
import _imp
dct={}
def copy_module(module):
new = type(sys)(module.__name__)
new.__dict__.update(module.__dict__)
return new

dct["__builtins__"] = b = copy_module(builtins)

spec = PathFinder.find_spec("_bootstrap",importlib.__path__)
source_bootstrap = type(sys)("_bootstrap");
spec.loader.exec_module(source_bootstrap);
source_bootstrap.__name__ = "importlib._bootstrap";
new_sys = copy_module(sys)

new_sys.path_hooks = []
new_sys.meta_path = []
new_sys.modules = {
"importlib._bootstrap":source_bootstrap,
"importlib._bootstrap_external":importlib._bootstrap_external,
}
b.__import__ = source_bootstrap.__import__
source_bootstrap._install(new_sys,_imp)
dct["__file__"]=__file__
exec("open(__file__)",dct)

The actual file passed to the open function doesn't matter, as long as it would 
work

--
components: +IO, Interpreter Core, Library (Lib)
title: "SystemError: SystemError:  returned NULL 
without setting an error -> "SystemError: SystemError:  returned NULL without setting an error"  from open function

___
Python tracker 

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



[issue29504] blake2: compile error with -march=bdver2

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

What's the status of this issue?  If it's not going to be fixed prior to 
3.6.2rc1, I'm going to downgrade it from "release blocker" as we've already 
released 3.6.1 without it.

--

___
Python tracker 

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



[issue30626] "SystemError: SystemError: returned NULL without setting an error" from open function

2017-06-10 Thread ppperry

Changes by ppperry :


--
nosy: +benjamin.peterson, brett.cannon, eric.snow, ncoghlan, stutzbach

___
Python tracker 

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



[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-10 Thread ppperry

Changes by ppperry :


--
title: "SystemError: SystemError:  returned NULL 
without setting an error"  from open function -> "SystemError:  returned NULL without setting an error"  from open function

___
Python tracker 

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



[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-10 Thread ppperry

Changes by ppperry :


--
type:  -> behavior

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Jelle Zijlstra

Jelle Zijlstra added the comment:

Sounds like the issue is with numpy, not CPython, so there's little reason to 
keep this CPython bug open.

--

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Arek Bulski

Arek Bulski added the comment:

Oh good point, but when I submitted this on TravisCI issues they pointed me
to here.
And this is a highest priority bug.

sob., 10 cze 2017 o 21:02 użytkownik Jelle Zijlstra 
napisał:

>
> Jelle Zijlstra added the comment:
>
> Sounds like the issue is with numpy, not CPython, so there's little reason
> to keep this CPython bug open.
>
> --
>
> ___
> Python tracker 
> 
> ___
>
-- 
~ Arkadiusz Bulski
~ tel 503 357 111 lub WhatsApp/Telegram

--

___
Python tracker 

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



[issue30312] Small correction in set code sample

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset ca816153445cba3baec15f7e890c71abfe495340 by Mariatta 
(KatherineMichel) in branch 'master':
bpo-30312: Small correction in datastructures set code sample (GH-2081)
https://github.com/python/cpython/commit/ca816153445cba3baec15f7e890c71abfe495340


--

___
Python tracker 

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



[issue30312] Small correction in set code sample

2017-06-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> backport needed

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

While testing current 3.6 top of trunk, I noticed spurious error messages being 
reported that were not causing the tests to fail.  Investigating further, I 
found the culprit to be this issue's 6e14fd2a14cef6ea0709ad234ab41198c2195591.  
Curiously, the errors aren't showing up on buildbots although I can reproduce 
100% on both platforms I've tried: Debian Linux and macOS 10.12.  For some 
reason that needs to be explored, using -W on regrtest causes the messages to 
be suppressed and the buildbots use -w by default.

$ ./python
Python 3.6.1+ (remotes/upstream/3.6:76eabd3a21, Jun 10 2017, 15:20:44)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

# without -w or -W
$ ./python -m test test_asyncio
Run tests sequentially
0:00:00 [1/1] test_asyncio
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
1 test OK.

Total duration: 13 sec
Tests result: SUCCESS

# with -w
$ ./python -m test -w test_asyncio
Run tests sequentially
0:00:00 [1/1] test_asyncio
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
Fatal error on SSL transport
protocol: 
transport: None
Traceback (most recent call last):
  File "/py/3x/unix/source/Lib/asyncio/sslproto.py", line 660, in 
_process_write_backlog
self._transport.write(chunk)
AttributeError: 'NoneType' object has no attribute 'write'
1 test OK.

Total duration: 13 sec
Tests result: SUCCESS

# with -W -> no messages
$ ./python -m test -W test_asyncio
Run tests sequentially
0:00:00 [1/1] test_asyncio
1 test OK.

Total duration: 13 sec
Tests result: SUCCESS

--
nosy: +ned.deily
priority: normal -> critical

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

Er, "For some reason that needs to be explored, using -W on regrtest causes the 
messages to be suppressed and the buildbots use -w by default."

That should be "use -W by default".

--

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Ned Deily

Ned Deily added the comment:

FTR, same behavior with master (3.7) top of trunk.

--
nosy: +haypo

___
Python tracker 

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



[issue28556] typing.py upgrades

2017-06-10 Thread Guido van Rossum

Guido van Rossum added the comment:


New changeset 29fda8db16e0edab92841277fa223f844f5a92cc by Guido van Rossum 
(Ivan Levkivskyi) in branch 'master':
bpo-28556: Updates to typing module (#2076)
https://github.com/python/cpython/commit/29fda8db16e0edab92841277fa223f844f5a92cc


--

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Zachary Ware added the comment:


New changeset 6b6e68776663c0dda04b6a36609297728da2ae9e by Zachary Ware in 
branch 'master':
bpo-27425: Be more explicit in .gitattributes (GH-840)
https://github.com/python/cpython/commit/6b6e68776663c0dda04b6a36609297728da2ae9e


--

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Changes by Zachary Ware :


--
pull_requests: +2147

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Changes by Zachary Ware :


--
pull_requests: +2148

___
Python tracker 

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



[issue30312] Small correction in set code sample

2017-06-10 Thread Katherine Michel

Changes by Katherine Michel :


--
pull_requests: +2149

___
Python tracker 

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



[issue30312] Small correction in set code sample

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 865ed9ea67cf0d8a8dead91f3eac527553d92284 by Mariatta 
(KatherineMichel) in branch '3.6':
bpo-30312: Small correction in datastructures set code sample (GH-2081) 
(GH-2085)
https://github.com/python/cpython/commit/865ed9ea67cf0d8a8dead91f3eac527553d92284


--

___
Python tracker 

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



[issue30312] Small correction in set code sample

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Documentation has been updated, and backported to 3.6.
Thanks :)

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Changes by Zachary Ware :


--
pull_requests: +2150

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Zachary Ware added the comment:


New changeset 964c261dc9a6a901f50d5596d88248bfc4251a55 by Zachary Ware in 
branch '3.6':
[3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083)
https://github.com/python/cpython/commit/964c261dc9a6a901f50d5596d88248bfc4251a55


--

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Zachary Ware added the comment:


New changeset afa6a389606402779c5048a7211edbf2678cecff by Zachary Ware in 
branch '3.5':
[3.5] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2084)
https://github.com/python/cpython/commit/afa6a389606402779c5048a7211edbf2678cecff


--

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Nathaniel Smith

Nathaniel Smith added the comment:

@Arek: It's great that you're testing your code against the latest 3.7 
pre-release, because that helps give early warning of issues in CPython as its 
developed, which helps everyone. BUT, you really cannot expect to use 
in-development versions and expect everything to be perfectly supported and 
work well together all the time -- we need time and space to work things out 
and coordinate. If you can't tolerate failures in your 3.7-prerelease builds, 
then you should remove them from you CI entirely and wait for the final release 
(or at least sometime in the beta/rc period).

Anyway-

Numpy bug here: https://github.com/numpy/numpy/issues/9227

This CPython PR is also relevant: https://github.com/python/cpython/pull/1236

Basically the bug is that numpy just made a release (1.13.0) which assumed that 
if it's running on some version of 3.7, then that PR is surely merged. But it 
turns out that that PR is not yet merged.

We'll probably need to make the usual emergency x.x.1 release in a few days 
anyway, and the simplest fix would be to switch back to the underscore-prefixed 
versions then. But... this needs a bit of coordination, because if we do that 
then the same thing will happen again at some point when that PR is merged; the 
problem here is that numpy was trying to avoid that breakage and thus created 
different breakage :-).

My suggestion would be that NumPy go ahead with releasing a fixed version ASAP, 
and *also* that CPython PR 1236 add back-compat for the underscore-prefixed 
versions. And maybe that it be merged soon if it's easy and going to happen 
anyway, since that will retroactively unbreak 1.13.0.

Bigger picture: I guess there's some irony that I warned that testing against 
prereleases can get complicated at the language summit based on numpy's 
experience, and now it's numpy's fault that cpython is getting grumpy users 
filing bugs at it... sorry about that. It's a useful data point though that we 
should keep in mind, that if we're encouraging people to test prereleases, then 
what used to be a temporary breakage that no-one would notice can actually 
cause more problems now – again, if numpy hadn't broken this now, PR 1236 would 
have at some point, and with the same results. (In the past it's been common 
that numpy just doesn't support a new python release until a month or two after 
it comes out! Apparently those days have passed...)

--
nosy: +brett.cannon, haypo

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2151

___
Python tracker 

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



[issue30623] python-nightly import numpy fails since recently

2017-06-10 Thread Arek Bulski

Arek Bulski added the comment:

Thank you, I will temporarily remove the numpy unit test from the 3.7 until
I get notification that it was fixed.

sob., 10 cze 2017 o 22:48 użytkownik STINNER Victor 
napisał:

>
> Changes by STINNER Victor :
>
>
> --
> pull_requests: +2151
>
> ___
> Python tracker 
> 
> ___
>
-- 
~ Arkadiusz Bulski
~ tel 503 357 111 lub WhatsApp/Telegram

--

___
Python tracker 

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



[issue28556] typing.py upgrades

2017-06-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2152

___
Python tracker 

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



[issue28556] typing.py upgrades

2017-06-10 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2153

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Yury Selivanov

Yury Selivanov added the comment:

Nikolay, can you please take a look?

--

___
Python tracker 

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



[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-10 Thread Nikolay Kim

Nikolay Kim added the comment:

yes, i am on it

--

___
Python tracker 

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



[issue28556] typing.py upgrades

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset ea8b34868c3a765ac9a5eed7321af8f4548a9654 by Mariatta in branch 
'3.5':
bpo-28556: Updates to typing module (GH-2076) (GH-2088)
https://github.com/python/cpython/commit/ea8b34868c3a765ac9a5eed7321af8f4548a9654


--

___
Python tracker 

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



[issue28556] typing.py upgrades

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 8d15b19be667e30f8d36aefb680859bdf23866cf by Mariatta in branch 
'3.6':
bpo-28556: Updates to typing module (GH-2076) (GH-2087)
https://github.com/python/cpython/commit/8d15b19be667e30f8d36aefb680859bdf23866cf


--

___
Python tracker 

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



[issue30614] [EASY][2.7] testInitNonExistentFile() of test_bz2 leaks references

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

The bug should now be fixed.

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread STINNER Victor

STINNER Victor added the comment:

Zach, do you want to update Python 2.7 for your latest change as well?

--

___
Python tracker 

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



[issue30627] Incorrect error message for a few functions called with keywod argument

2017-06-10 Thread SylvainDe

New submission from SylvainDe:

Follow-up for http://bugs.python.org/issue30600 which is itself a follow-up for 
http://bugs.python.org/issue30534 . Not quite sure what the process is in that 
situation : creating a new ticket or updating the old one ?


After working on http://bugs.python.org/issue30600 , I thought that maybe other 
functions not generated by the clinic would have the same issue. "git grep 
_PyArg_NoStackKeywords | grep -v clinic" gave me some place to look for and 
indeed:

Modules/_struct.c:if (!_PyArg_NoStackKeywords("pack", kwnames)) {
Modules/_struct.c:if (!_PyArg_NoStackKeywords("pack_into", kwnames)) {
Python/bltinmodule.c:if (!_PyArg_NoStackKeywords("getattr", kwnames)) {
Python/bltinmodule.c:if (!_PyArg_NoStackKeywords("next", kwnames)) {

These four functions have a not-so-good error message when called with keyword 
arguments (and this is a regression compared to other Python versions)

I have a fix ready to be suggested but:

 - I want to be sure that I had to create a new ticket

 - I suspect functions defined via the GEN_CONSTRUCTOR macro in  
Modules/_hashopenssl.c have the same issue but I do not know how to test it. 
Any help is welcome.

--
components: Interpreter Core
messages: 295676
nosy: SylvainDe
priority: normal
severity: normal
status: open
title: Incorrect error message for a few functions called with keywod argument
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



[issue30627] Incorrect error message for a few functions called with keywod argument

2017-06-10 Thread SylvainDe

SylvainDe added the comment:

(Also, I suspect introspection could be used to know if the same bug is still 
lying somewhere: get all objects (using gc?), keep callables with no __code__ 
member only, call with keyword argument, check error.)

--

___
Python tracker 

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



[issue30628] why venv install old pip?

2017-06-10 Thread Curtis Doty

New submission from Curtis Doty:

I've already updated system setuptools 36.0.1 with `pip3 install --upgrade pip 
setuptools wheel` but when I create a new enviro with `python3 -m venv foo` it 
will have an old/outdated setuptools 28.8.0 from embedded ensurepip.

Why? I think it should install the already-updated one!

--
components: Library (Lib)
messages: 295678
nosy: GreenKey
priority: normal
severity: normal
status: open
title: why venv install old pip?
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



[issue30628] why venv install old pip?

2017-06-10 Thread Curtis Doty

Curtis Doty added the comment:

$ pip3.6 list
pip (9.0.1)
setuptools (32.2.0)
wheel (0.29.0)

$ pip3.6 install --upgrade pip setuptools wheel
$ pip3.6 list
pip (9.0.1)
setuptools (36.0.1)
wheel (0.29.0)

$ python3 -m venv foo
$ source foo/bin/activate
(foo) $ pip list
pip (9.0.1)
setuptools (28.8.0)

--

___
Python tracker 

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



[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-10 Thread Nick Coghlan

Nick Coghlan added the comment:

I couldn't reproduce this on 3.7, but I can confirm that 3.6 gives a 
SystemError with the above code:

$ ./python _issue30626.py
Traceback (most recent call last):
  File "_issue30626.py", line 30, in 
exec("open(__file__)",dct)
  File "", line 1, in 
SystemError:  returned NULL without setting an error

It's plausible this was fixed as part of the interpreter startup refactoring, 
so I doubt we're going to able to easily isolate the specific change that fixed 
it :(

--
stage:  -> needs patch
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



[issue30626] "SystemError: returned NULL without setting an error" from open function

2017-06-10 Thread Nick Coghlan

Nick Coghlan added the comment:

That said: given that we know it *is* fixed somewhere in 3.7, it would likely 
be useful to check the assumption that the startup refactoring fixed it by 
going to the last commit before that landed and seeing if the error still 
occurs.

--

___
Python tracker 

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



[issue30624] selectors should use bare except clauses

2017-06-10 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

I removed 3.4 from versions, since this is not a security fix.

Does this need backport to 3.5 too? 
Or only 3.6?

--
nosy: +Mariatta
stage:  -> backport needed
versions:  -Python 3.4

___
Python tracker 

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



[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-06-10 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset 6ea4186de32d65b1f1dc1533b6312b798d300466 by Nick Coghlan in 
branch 'master':
bpo-28180: Implementation for PEP 538 (#659)
https://github.com/python/cpython/commit/6ea4186de32d65b1f1dc1533b6312b798d300466


--

___
Python tracker 

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



[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-10 Thread Zachary Ware

Zachary Ware added the comment:

> Zach, do you want to update Python 2.7 for your latest change as well?

PR 2086 is in for that, but it's a huge diff due to line endings changing.  As 
noted on the PR, I want Benjamin to give his OK before I merge it.

--

___
Python tracker 

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



[issue30624] selectors should use bare except clauses

2017-06-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Look also at KqueueSelector.modify(). And the mentioning of SystemError in 
Misc/NEWS is wrong, it is a subclass of Exception.

--

___
Python tracker 

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



[issue30627] Incorrect error message for a few functions called with keywod argument

2017-06-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Good catch SylvainDe!

You already opened a new ticked and old tickets are closed, so that let fix 
remaining issues here.

This issue is related to _PyArg_NoKeywords() and _PyArg_NoStackKeywords(), so 
it is enough to just check all usages of these functions. Most of them are in 
generated code and already fixed.

Tests for all these functions are not required.

--
components: +Extension Modules
nosy: +serhiy.storchaka
stage:  -> needs patch
type:  -> behavior

___
Python tracker 

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



[issue30625] Documentation is unclear how "y*" and "y#" format units vary

2017-06-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
title: Documentation is unclear how "y*" and "y#" formit units vary -> 
Documentation is unclear how "y*" and "y#" format units vary

___
Python tracker 

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



[issue30166] Import command-line parsing modules only when needed

2017-06-10 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2154

___
Python tracker 

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



[issue30166] Import command-line parsing modules only when needed

2017-06-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset c0ef607c52e58e94693fbedb27f2813bc3fed8fa by terryjreedy in branch 
'3.6':
[3.6] bpo-30166: backport pyshell changes (GH 1293) (#2098)
https://github.com/python/cpython/commit/c0ef607c52e58e94693fbedb27f2813bc3fed8fa


--

___
Python tracker 

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



[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-06-10 Thread Nick Coghlan

Nick Coghlan added the comment:

And merged!

Thanks to all involved in the process of getting this change through to 
implementation :)

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



  1   2   >