[issue30674] IDLE: add docstrings to grep.py

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 39e501a2913eff047f7a644e2b20eb4278f97d50 by terryjreedy in branch 
'3.6':
[3.6] bpo-30674: IDLE: add docstrings to grep.py (GH-2213) (#2434)
https://github.com/python/cpython/commit/39e501a2913eff047f7a644e2b20eb4278f97d50


--

___
Python tracker 

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



[issue30674] IDLE: add docstrings to grep.py

2017-06-27 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue30785] ast.c duplicates STR(CHILD)

2017-06-27 Thread Christopher Aycock

New submission from Christopher Aycock:

The function alias_for_import_name() duplicates logic starting at 
Python/ast.c:3237

char *sch = STR(CHILD(n, i));
strcpy(s, STR(CHILD(n, i)));
s += strlen(sch);
*s++ = '.';

I assume the strcpy() is supposed to use the sch value from the line above. 
There shouldn't be any consequence to the code as it currently is; I just 
noticed it while reading through the source.

--
components: Interpreter Core
messages: 297018
nosy: Christopher Aycock
priority: normal
severity: normal
status: open
title: ast.c duplicates STR(CHILD)
type: enhancement
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



[issue17960] Clarify the required behaviour of locals()

2017-06-27 Thread Nick Coghlan

Nick Coghlan added the comment:

Guido: perhaps I should run this update through the PEP process?

Even though the actual proposed change is only to a pretty obscure edge case 
(having multiple concurrent live references to the result of locals() for a 
function namespace), the extra visibility should help developers of alternative 
implementations be clear on what is happening.

--

___
Python tracker 

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



[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2017-06-27 Thread Radek Smejkal

New submission from Radek Smejkal:

Modules/getaddrinfo.c should support AI_NUMERICSERV.

Moreover, not supporting AI_NUMERICSERV may cause troubles on platforms where 
the getaddrinfo function is available but it's buggy (see configure.ac and 
Modules/socketmodule.c), because Modules/addrinfo.h does not #undef 
AI_NUMERICSERV and Modules/socketmodule.c exports AI_NUMERICSERV defined in a 
system header that may collide with another flag defined in Modules/addrinfo.h 
and confuse the user.

./configure --with-pydebug
Comment out HAVE_GETADDRINFO in pyconfig.h
Comment out ENABLE_IPV6 in pyconfig.h on platforms where getipnodebyname and 
friends are not available
make -j
./python
Python 3.7.0a0 (default, Jun 27 2017, 11:59:50) 
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.AI_NUMERICSERV

>>> socket.getaddrinfo(None, "http", flags=socket.AI_NUMERICSERV)
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/radek/src/github/cpython/Lib/socket.py", line 743, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 3] invalid value for ai_flags.
>>>

--
components: Extension Modules
messages: 297020
nosy: smejkar
priority: normal
severity: normal
status: open
title: getaddrinfo emulation does not support AI_NUMERICSERV
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



[issue30711] getaddrinfo invalid port number

2017-06-27 Thread Radek Smejkal

Radek Smejkal added the comment:

See also issue30786.

--

___
Python tracker 

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



[issue30710] getaddrinfo raises OverflowError

2017-06-27 Thread Radek Smejkal

Changes by Radek Smejkal :


--
pull_requests: +2483

___
Python tracker 

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



[issue30711] getaddrinfo invalid port number

2017-06-27 Thread Radek Smejkal

Changes by Radek Smejkal :


--
pull_requests: +2484

___
Python tracker 

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



[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2017-06-27 Thread Radek Smejkal

Changes by Radek Smejkal :


--
pull_requests: +2485

___
Python tracker 

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



[issue30773] async generator receives wrong value when shared between coroutines

2017-06-27 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Note that the example can be further simplified by replacing user() with:

async def send_hello(g):
print("sending: hello")
await g.asend("hello")

Then the output is:

sending: hello
received hello
sending: hello
sending: hello
received None
received None

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-27 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Is this the re-arrangement?  

A. What the patch does not do is switch from buttons to blue-underlined links, 
as I have discussed elsewhere, nor do other rearrangements and changes.  I want 
to move What's New to the top, move the Python license and copyright to the 
bottom, and remove Python credits.  The idle-dev email must be replaced with a 
link to the idle-dev subscription page, as spam (which continues) prompted a 
switch to subscription required.  This will be a separate issue.

Sounds like you want to make the change, but let me know if you'd ike me to 
take a shot at it.

--

___
Python tracker 

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



[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2486

___
Python tracker 

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



[issue30383] [3.5] Backport regrtest features from master to Python 3.5

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2487

___
Python tracker 

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



[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests:  -2486

___
Python tracker 

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



[issue30283] [2.7] Backport test_regrtest (partially) on Python 2.7

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I backported almost all regrtest features from master to 2.7. It should ease 
the development on Python 2.7 ;-)

I added a NEWS entry, thanks Serhiy for the reminder. Hopefully, with NEWS.d/ 
and blurb, we will get much less conflicts on NEWS entries now ;-)

I'm aware of a last bug: "./python -m test -R 3:3 test_regrtest" hangs on 
Windows, but I'm quite sure that it comes test_crashed() which opens a popup 
and I'm working on a fix. Anyway, I already opened a specific issue for that: 
bpo-30705.

It was a long journey (2 months), but I'm now quite happy to get a much 
features-full regrtest on Python 2.7!

Spoiler: You can also expect my bisect tool in next weeks in Python 2.7 as well 
;-)

--

___
Python tracker 

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



[issue30383] [3.5] Backport regrtest features from master to Python 3.5

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

PR 2438 adds the NEWS entry.

--

___
Python tracker 

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



[issue30383] [3.5] Backport regrtest features from master to Python 3.5

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset eef254d6c6b13db2f3d6a2f219bc76e84416f59c by Victor Stinner in 
branch '3.5':
bpo-30383: Add NEWS entry for backported regrtest (#2438)
https://github.com/python/cpython/commit/eef254d6c6b13db2f3d6a2f219bc76e84416f59c


--

___
Python tracker 

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



[issue30383] [3.5] Backport regrtest features from master to Python 3.5

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I backported almost all regrtest features from master to 3.5. You should now 
get almost the same tool, even if the implementation is much older (regrtest 
was deeply reworked in master, a new test.libregrtest package was created).

I added the NEWS entry.

I now close the issue.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 95a91df0363f88722ea2860d9d42a0b04b3f8be2 by Victor Stinner in 
branch '2.7':
bpo-30764: Windows support.SuppressCrashReport (#2423)
https://github.com/python/cpython/commit/95a91df0363f88722ea2860d9d42a0b04b3f8be2


--

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

I've added the following tests to remove the 0 attributes from the repr:

self.assertEqual(repr(self.theclass(days=1, seconds=0)),
 "%s(days=1)" % name)
self.assertEqual(repr(self.theclass(seconds=60)),
 "%s(seconds=60)" % name)
self.assertEqual(repr(self.theclass()),
 "%s(seconds=0)" % name)
self.assertEqual(repr(self.theclass(microseconds=100)),
 "%s(microseconds=100)" % name)
self.assertEqual(repr(self.theclass(days=1, microseconds=100)),
 "%s(days=1, microseconds=100)" % name)
self.assertEqual(repr(self.theclass(seconds=1, microseconds=100)),
 "%s(seconds=1, microseconds=100)" % name)

I am still ambivalent about factoring the minus sign outside, though.

I've also fixed a bug in test_datetime.py which prevented execution of the 
Python implementation in Lib/datetime.py.


TODO:

  - Decide about factoring the minus sign.
  - Drop description of timedelta.__repr__ from the documentation.

~
ut

--

___
Python tracker 

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



[issue30705] python2.7 -m test -R 3:3 hangs on Refleaks 2.7 buildbots

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2488

___
Python tracker 

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



[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-06-27 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2489

___
Python tracker 

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



[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-06-27 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I've made a PR for the docstrings and comments.  I didn't change any of the 
comments separating the sections in the create* functions as I wasn't sure how 
you wanted those changed.  When reading the code, I found the comments helpful 
in that they separated each section, but whitespace might be just as helpful, 
visually.

Thanks!

--

___
Python tracker 

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



[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset e613e6add5f07ff6aad5802924596b631b707d2a by Serhiy Storchaka in 
branch 'master':
bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285)
https://github.com/python/cpython/commit/e613e6add5f07ff6aad5802924596b631b707d2a


--

___
Python tracker 

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



[issue1754] WindowsError messages are not properly encoded

2017-06-27 Thread alberfontan1

Changes by alberfontan1 :


--
pull_requests: +2490

___
Python tracker 

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



[issue30705] python2.7 -m test -R 3:3 hangs on Refleaks 2.7 buildbots

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 2d775589d98959abb9833121bd9d417003de56c0 by Victor Stinner in 
branch '2.7':
bpo-30705: Fix test_regrtest.test_crashed() (#2439)
https://github.com/python/cpython/commit/2d775589d98959abb9833121bd9d417003de56c0


--

___
Python tracker 

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



[issue30705] python2.7 -m test -R 3:3 hangs on Refleaks 2.7 buildbots

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It seems like "x86 Gentoo Refleaks 2.7" was fixed, I don't know how, but I 
don't care as soon as it works :-)

My commit 2d775589d98959abb9833121bd9d417003de56c0 fixed "./python -m test -R 
3:3 test_regrtest" on Windows. I tested manually.

I consider that the bugs are now fixed. (If the bug is not really fixed, I will 
just reopen the bug.)

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



[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2491

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2493

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2492

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 35d2ca2b94a6ff29e763ddb7727166f0592edfa2 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441)
https://github.com/python/cpython/commit/35d2ca2b94a6ff29e763ddb7727166f0592edfa2


--

___
Python tracker 

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



[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 35d2ca2b94a6ff29e763ddb7727166f0592edfa2 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441)
https://github.com/python/cpython/commit/35d2ca2b94a6ff29e763ddb7727166f0592edfa2


--

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 35d2ca2b94a6ff29e763ddb7727166f0592edfa2 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441)
https://github.com/python/cpython/commit/35d2ca2b94a6ff29e763ddb7727166f0592edfa2


--

___
Python tracker 

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



[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2494

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2495

___
Python tracker 

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



[issue30328] test_ssl.test_connect_with_context(): ConnectionResetError on AMD64 FreeBSD 9.x 3.6

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.6/builds/137/steps/test/logs/stdio

==
ERROR: test_connect_with_context (test.test_ssl.SimpleBackgroundTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/test/test_ssl.py", line 
1541, in test_connect_with_context
s.connect(self.server_addr)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1093, in connect
self._real_connect(addr, False)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1084, in _real_connect
self.do_handshake()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
1061, in do_handshake
self._sslobj.do_handshake()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd9/build/Lib/ssl.py", line 
683, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 54] Connection reset by peer

--

___
Python tracker 

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



[issue30351] [2.7] regrtest hangs on Python 2.7 (test_threading?)

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/140/steps/test/logs/stdio

0:06:09 [401/404] test_runpy passed
0:06:09 [402/404] test_htmlparser passed
0:06:10 [403/404] test_smtpnet passed

command timed out: 1200 seconds without output, attempting to kill
program finished with exit code 1
elapsedTime=1571.765000

--

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2496

___
Python tracker 

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



[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-27 Thread tom kronmiller

New submission from tom kronmiller:

It is difficult to learn what decorators there are because there is no single 
index which lists all of them (at least, I have been unable to find one).  
Instead, one must stumble across them while reading library module 
documentation.  An index listing the decorators with a short description would 
be really helpful (to me, at least).

Thanks.

--
assignee: docs@python
components: Documentation
messages: 297039
nosy: docs@python, tom kronmiller
priority: normal
severity: normal
status: open
title: Please add a comprehensive index of decorators to the documentation.
type: enhancement
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread Emily Morehouse

Emily Morehouse added the comment:

I think I need a bit more direction for the 3.5 backport. The original test 
below passes:
./python -m test -R 3:3 -m test_execve_invalid_env test_os

--

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset de1850bb03f8225cbff85f437b6e972bf9b68c2a by Victor Stinner in 
branch '3.5':
[3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442)
https://github.com/python/cpython/commit/de1850bb03f8225cbff85f437b6e972bf9b68c2a


--

___
Python tracker 

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



[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset de1850bb03f8225cbff85f437b6e972bf9b68c2a by Victor Stinner in 
branch '3.5':
[3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442)
https://github.com/python/cpython/commit/de1850bb03f8225cbff85f437b6e972bf9b68c2a


--

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset de1850bb03f8225cbff85f437b6e972bf9b68c2a by Victor Stinner in 
branch '3.5':
[3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442)
https://github.com/python/cpython/commit/de1850bb03f8225cbff85f437b6e972bf9b68c2a


--

___
Python tracker 

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



[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2497

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2499

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2500

___
Python tracker 

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



[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2498

___
Python tracker 

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



[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-27 Thread Steven D'Aprano

Changes by Steven D'Aprano :


--
nosy: +steven.daprano

___
Python tracker 

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



[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fea98bfcff6ccf9142daa97677fe86c1fdf8e63e by Victor Stinner in 
branch '2.7':
[2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444)
https://github.com/python/cpython/commit/fea98bfcff6ccf9142daa97677fe86c1fdf8e63e


--

___
Python tracker 

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



[issue30523] regrtest: add --list-cases option to only display test case identifiers

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fea98bfcff6ccf9142daa97677fe86c1fdf8e63e by Victor Stinner in 
branch '2.7':
[2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444)
https://github.com/python/cpython/commit/fea98bfcff6ccf9142daa97677fe86c1fdf8e63e


--

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fea98bfcff6ccf9142daa97677fe86c1fdf8e63e by Victor Stinner in 
branch '2.7':
[2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444)
https://github.com/python/cpython/commit/fea98bfcff6ccf9142daa97677fe86c1fdf8e63e


--

___
Python tracker 

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



[issue30742] VS2015 support for 2.7 branch

2017-06-27 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2501

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Just read the code. Find the function parse_envlist() in posixmodule.c and find 
similar code checking for '='.

Even if the leak is not detected by the test (but it is detected on Linux, 
maybe you use Windows?) it exists.

os.spawnve() also should be affected by this bug and fixed by the same patch, 
because it uses the same code.

--

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread Emily Morehouse

Changes by Emily Morehouse :


--
pull_requests: +2503

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

> 2. Factor out the negative sign: -timedelta(seconds=60) rather than 
> timedelta(days=-1, seconds=86340).

Please don't do that. repr() is designed for developers, not end users. Don't 
make repr() implementation overcomplicated. Just dump raw data, tha's all.

If you want something more smart, use str() or even write a *new* method?

--
nosy: +haypo

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

What is your favorite repr() for datetime.timedelta(seconds=0)?

Since it's hard to decide which unit is the best, I suggest to not write any 
unit: either "datetime.timedelta(0)" or "datetime.timedelta()" is fine with me.

In fact, "datetime.timedelta(seconds=0)" is also ok, since seconds is the most 
common unit, no?

(Ok, to be honest, I don't really care. But I wanted to have a discussion on 
this issue ;-))

--

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-27 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

@haypo: thanks for the input!

I will find datetime.timedelta() to be rather confusing because it does not 
explicitly tell me that the interval indeed is 0.

Between datetime.timedelta(0) and datetime.timedelta(seconds=0), I am 
ambivalent but I prefer the latter for consistency with the other repr.

--

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset eb3c52a0d273491e745e0cbff2b73900bb96aa45 by Victor Stinner (Emily 
Morehouse) in branch '3.5':
[3.5] bpo-30769: Fix reference leak introduced in 7770394 (GH-2416) (#2447)
https://github.com/python/cpython/commit/eb3c52a0d273491e745e0cbff2b73900bb96aa45


--

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Ooookay, the bug is now fix on all branches. Thanks Eric & Emily for your PR 
and thanks Serhiy for the help ;-)

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



[issue30742] VS2015 support for 2.7 branch

2017-06-27 Thread Steve Dower

Steve Dower added the comment:

There are *many* more fixes required than just these. We're not prepared to 
take the changes into 2.7 at this stage, and we don't want to encourage people 
to think that MSVC 14.0 or later are supported when we know that it's 
incomplete.

I'd suggest creating a fork and making your updates in that. You are welcome to 
promote it as MSVC 14.0-compatible sources for anyone else who wants to build 
2.7 from them, and you may find more contributors to help you that way.

--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Many thanks for you Victor for your wonderful tool.

--

___
Python tracker 

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



[issue30448] test_subprocess creates a core dump on FreeBSD

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It seems like test_child_terminated_in_stopped_state() of test_subprocess on 
Python 2.7 fails on some macOS versions, see:
http://bugs.python.org/issue30764#msg296966

Can someone please try to reproduce the bug? I'm unable to reproduce the bug on 
Darwin 16.5.0 (macOS Sierra?).

--
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread Emily Morehouse

Emily Morehouse added the comment:

Resolving this since the fix and backports have been merged in.

--

___
Python tracker 

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



[issue30763] There is functionality bug in linecache library.

2017-06-27 Thread Guido van Rossum

Changes by Guido van Rossum :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references

2017-06-27 Thread Emily Morehouse

Emily Morehouse added the comment:

And thank you to Serhiy and Victor for the assistance and attention to this 
issue!

--

___
Python tracker 

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



[issue29910] Ctrl-D eats a character on IDLE

2017-06-27 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests: +2504

___
Python tracker 

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



[issue29910] Ctrl-D eats a character on IDLE

2017-06-27 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests:  -2504

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests:  -2366

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The unlinked PR is a closed duplicate.  PR 2306 is the one being updated and 
reviewed.

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



[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Louie, perhaps you would like to review the PR, especially the comment 
revisions responding to your comments.

--

___
Python tracker 

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



[issue29304] dict: simplify lookup functions

2017-06-27 Thread INADA Naoki

INADA Naoki added the comment:

Finally, I removed `freeslot` and all lookdict*() functions are much simpler in 
GH-2407.

Macro bench doesn't show any significant performance change.
I'll try to write micro benchmarks.

--

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have compared current behavior with you explanation and I agree on the 
enhancement.  'parens' seems more useful than 'default'.

'default' is a misnomer for current IDLE since the current default in 
config-extensions.def is 'expression', not 'default', I am inclined to add 
synonym such as 'opener'.  Do you have another suggestion?

On the todo list, the first item is covered by the newish Extensions tab, and 
should be removed.  What the tab lacks is input validation.  Immediately, 
pressing [Help] when on the Extensions tab should display text than included 
the parenmatch styles and the meaning of delay 0.  I will add this.

The second item mentions other Emacs stuff.  Just curious, do you know if 
'parens' is part of this?  The 'below' just mentions the 'highlight when cursor 
returns issue'.

--

___
Python tracker 

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



[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 0edffa3073b551ffeca34952529e7b292f1bd350 by Serhiy Storchaka in 
branch '3.6':
[3.6] bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). 
(GH-2285) (#2443)
https://github.com/python/cpython/commit/0edffa3073b551ffeca34952529e7b292f1bd350


--

___
Python tracker 

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



[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2505

___
Python tracker 

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Charles Wohlganger

Charles Wohlganger added the comment:

'opener' sounds fine to me. I agree it makes much more sense than 'default'.

I don't know much about Emacs, and couldn't find what their parens highlighting 
styles were. I can't think of anything sensible that isn't in this extension 
with this enhancement; apart from highlighting whenever the cursor is beside a 
parens.

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-06-27 Thread Cathy Avery

Cathy Avery added the comment:

I've attached the third version of VSOCK patch addressing the concerns of the 
last rev. I've also included a README file that lists instructions on how to 
setup a test environment.

Thanks

--
Added file: 
http://bugs.python.org/file46977/0001-bpo-27584-New-addition-of-vSockets-to-the-python-soc.patch

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-06-27 Thread Cathy Avery

Cathy Avery added the comment:

Help file.

--
Added file: http://bugs.python.org/file46978/REAME.txt

___
Python tracker 

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



[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 94b169fe48bc7ea76b926823885d1b12c2c381fa by Serhiy Storchaka in 
branch '3.5':
[3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). 
(GH-2285) (GH-2443)  (#2448)
https://github.com/python/cpython/commit/94b169fe48bc7ea76b926823885d1b12c2c381fa


--

___
Python tracker 

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



[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-06-27 Thread Jan-Philip Gehrcke

Changes by Jan-Philip Gehrcke :


--
pull_requests: +2506

___
Python tracker 

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



[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-06-27 Thread Jan-Philip Gehrcke

Jan-Philip Gehrcke added the comment:

Hey Senthil and Christian!

> Could you convert your latest patch into PR against 
> https://github.com/python/cpython

That was fun. There we go: https://github.com/python/cpython/pull/2449

I hope I was not too late with that for the 3.7 development.

--

___
Python tracker 

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



[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Wrong commit message in 3.6. Should be the same as in 3.5.

This functionality was backported as a private function 
_PyUnicode_AsWideCharString().

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



[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am working on revising the patch now, so don't push anything until I do.  I 
will revise the docstring and add 'opener' and help and news file.

--

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-27 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2508

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-27 Thread Mark Roseman

Mark Roseman added the comment:

FYI, just added a trivial pull request to change the tagline in the about 
dialog to 'integrated development and learning environment'. It's showing up as 
from python-dev as I hadn't (yet) added my github name to my bpo prefs. Got to 
start somewhere!

--

___
Python tracker 

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



[issue30788] email.policy.SMTP.fold() issue with long filenames with spaces

2017-06-27 Thread Joel Hillacre

New submission from Joel Hillacre:

Found an issue in email.policy.SMTP.fold on "Content-Disposition" headers for 
long filenames with spaces. Managed to simply the issue to a test case as 
follows:

>>> from email.policy import SMTP; SMTP.fold('Content-Disposition', 
>>> 'attachment; filename="{}"'.format('1234 67890' + '1234567890' * 6))

Below are the tracebacks various python versions produces for this code. I 
think that the difference between python 3.5 - 3.6 and 3.7 are related to the 
fix in bpo-30532.

Python 3.6.1 (default, Apr  7 2017, 09:32:32) & Python 3.5.3 (default, Jan 17 
2017, 14:34:36)
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib64/python3.6/email/policy.py", line 183, in fold
return self._fold(name, value, refold_binary=True)
  File "/usr/lib64/python3.6/email/policy.py", line 213, in _fold
return self.header_factory(name, ''.join(lines)).fold(policy=self)
  File "/usr/lib64/python3.6/email/headerregistry.py", line 255, in fold
return header.fold(policy=policy)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 300, in fold
self._fold(folded)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 1228, in _fold
rest._fold(folded)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 347, in _fold
if folded.append_if_fits(part):
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 149, in 
append_if_fits
token._fold(self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 338, in _fold
if folded.append_if_fits(part, tstr):
... last 4 lines repeated 482 more times ...
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 149, in 
append_if_fits
token._fold(self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 325, in _fold
tstr = str(part)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 196, in 
__str__
return ''.join(str(x) for x in self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 196, in 

return ''.join(str(x) for x in self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 196, in 
__str__
return ''.join(str(x) for x in self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 196, in 

return ''.join(str(x) for x in self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 196, in 
__str__
return ''.join(str(x) for x in self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 196, in 

return ''.join(str(x) for x in self)
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 633, in 
__str__
return quote_string(''.join(str(x) for x in self))
  File "/usr/lib64/python3.6/email/_header_value_parser.py", line 633, in 

return quote_string(''.join(str(x) for x in self))
RecursionError: maximum recursion depth exceeded while getting the str of an 
object

Python 3.7.0a0 (heads/master:e613e6add5, Jun 27 2017, 12:17:18) 
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/joel/PycharmProjects/cpython/Lib/email/policy.py", line 183, in 
fold
return self._fold(name, value, refold_binary=True)
  File "/home/joel/PycharmProjects/cpython/Lib/email/policy.py", line 213, in 
_fold
return self.header_factory(name, ''.join(lines)).fold(policy=self)
  File "/home/joel/PycharmProjects/cpython/Lib/email/headerregistry.py", line 
255, in fold
return header.fold(policy=policy)
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 300, in fold
self._fold(folded)
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 1226, in _fold
rest._fold(folded)
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 345, in _fold
if folded.append_if_fits(part):
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 145, in append_if_fits
ws = token.pop_leading_fws()
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 272, in pop_leading_fws
return self[0].pop_leading_fws()
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 272, in pop_leading_fws
return self[0].pop_leading_fws()
  File "/home/joel/PycharmProjects/cpython/Lib/email/_header_value_parser.py", 
line 270, in pop_leading_fws
if self[0].token_type == 'fws':
IndexError: list index out of range

Note that the following example without a space does not cause a traceback:

Python 3.7.0a0 (heads/master:e613e6add5, Jun 27 2017, 12:17:18) 
>>> from email.policy import SMTP; SMTP.fold('Content-Disposition', 
>>> 'attachment; filename="{}"'.format('1234567890' + '1234567890' * 6))
'Content-Disposition: attachment;\r\n 
filename="1234567890123456789012345678901234567890123456789012345678901234567890"\r\n'

--
components: email
messages: 297072
nosy: barry, jhillacre, r.david.murray
priority: normal
severity: nor

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-06-27 Thread Joel Hillacre

Changes by Joel Hillacre :


--
title: email.policy.SMTP.fold() issue with long filenames with spaces -> 
email.policy.SMTP.fold() issue for long filenames with spaces

___
Python tracker 

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



[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-27 Thread Zachary Ware

Zachary Ware added the comment:

This all seems to be covered in 
https://docs.python.org/3/library/unittest.html#test-discovery

$ cat aaaTest.py 
import unittest


class TestAAA(unittest.TestCase):

def test_something(self):
self.assertTrue(True)


if __name__ == '__main__':
unittest.main()
$ python3 -m unittest discover -v -p "*Test.py"
test_something (aaaTest.TestAAA) ... ok

--
Ran 1 test in 0.000s

OK



As the `--pattern` documentation says, the default pattern is "test*.py" which 
does not match "aaaTest.py".

--

___
Python tracker 

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



[issue30743] unittest discover does not mention module file must be named with "test_" prefix

2017-06-27 Thread Alessandro Piccione

Alessandro Piccione added the comment:

You are right.

As the `--pattern` documentation says, the default pattern is "test*.py" which 
does not match "aaaTest.py".

I had looking for the wrong pattern.

Thanks,

Alex

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue30764] regrtest: Add --fail-env-changed option

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

The initial issue, the "regrtest: Add --fail-env-changed option" feature, has 
been implemented in 2.7, 3.5; 3.6 and master branches. So I close this issue.

Again, this issue got hijacked by the test_subprocess change, bpo-30448, 
because I wrote the wrong bpo number in my commits ;-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

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



[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?à)

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: test_pydoc (regrtest?) hangs on some buildbots -> regrtest hangs 
sometimes on the master branch (test_pydoc? test_subprocess?à)

___
Python tracker 

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



[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?)

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: regrtest hangs sometimes on the master branch (test_pydoc? 
test_subprocess?à) -> regrtest hangs sometimes on the master branch 
(test_pydoc? test_subprocess?)

___
Python tracker 

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



[issue29512] regrtest refleak: implement bisection feature

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2509

___
Python tracker 

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



[issue17942] IDLE Debugger: Improve GUI

2017-06-27 Thread Mark Roseman

Changes by Mark Roseman :


--
pull_requests: +2510

___
Python tracker 

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



[issue30704] test_free_different_thread() of test_code leaks references on Python 3.6

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2511

___
Python tracker 

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



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2512

___
Python tracker 

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



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

_PyCode_SetExtra() uses two memory block for code extras. By changing how 
memory is accessed and allocated, it would be possible to use a single memory 
block. Was it on purpose to use two memory blocks?

See for example PyTupleObject which uses a single memory block vs PyListObject 
which uses two memory blocks.

typedef struct {
PyObject_VAR_HEAD
PyObject *ob_item[1];

/* ob_item contains space for 'ob_size' elements.
 * Items must normally not be NULL, except during construction when
 * the tuple is not yet visible outside the function that builds it.
 */
} PyTupleObject;

--

___
Python tracker 

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



[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-06-27 Thread STINNER Victor

New submission from STINNER Victor:

Currently, _PyCode_SetExtra() uses two memory block for code extras. Using a 
different structure, it would be possible to use a single memory block: less 
memory fragmentation, better CPU cache usage, less indirections, etc.

It matters since the long term plan for co_extras is to implement of kind-of 
JIT compiler insider CPython: see bpo-28158.

--
components: Interpreter Core
messages: 297077
nosy: haypo
priority: normal
severity: normal
status: open
title: Redesign PyCodeObject.co_extras to use a single memory block, instead of 
two
type: performance
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



[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +dino.viehland, yselivanov

___
Python tracker 

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



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

> _PyCode_SetExtra() uses two memory block for code extras. By changing how 
> memory is accessed and allocated, it would be possible to use a single memory 
> block. Was it on purpose to use two memory blocks?

I discussed with Yury who is not opposed to such change in Python 3.7, so I 
created bpo-30789.

--

___
Python tracker 

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



[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 23e7944eba1968bb8432fdc4cc96d4fdd2c1a230 by Victor Stinner in 
branch 'master':
bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455)
https://github.com/python/cpython/commit/23e7944eba1968bb8432fdc4cc96d4fdd2c1a230


--

___
Python tracker 

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



  1   2   >