[issue28134] socket.socket(fileno=fd) does not work as documented

2018-01-29 Thread Christian Heimes

Christian Heimes  added the comment:


New changeset 2e0ecde8d74f5fc0e3e3e39216975cc70efc4796 by Christian Heimes in 
branch 'master':
bpo-28134: Ignore proto in unknown socket test (GH-5435)
https://github.com/python/cpython/commit/2e0ecde8d74f5fc0e3e3e39216975cc70efc4796


--

___
Python tracker 

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



[issue32705] Current Android does not have posix_spawn

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

likely.  i don't have an android build, please reopen if there are still 
android posix_spawn related build issues.

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



[issue20104] expose posix_spawn(p)

2018-01-29 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith

___
Python tracker 

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



[issue20104] expose posix_spawn(p)

2018-01-29 Thread Gregory P. Smith

Change by Gregory P. Smith :


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

___
Python tracker 

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



[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

Thanks for the PR!  I accepted it as this makes sense as a feature.

 pathlib all the things! 

I think the code be polished up a bit to not rely on catching TypeError but 
this gets the feature in before the 3.7 feature freeze (just).  If further 
changes are needed or bugs are found, they can be addressed during the 3.7 
betas. :)

--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue32705] Current Android does not have posix_spawn

2018-01-29 Thread Chih-Hsuan Yen

Chih-Hsuan Yen  added the comment:

With https://github.com/python/cpython/pull/5418 merged, I guess this issue can 
be closed?

--

___
Python tracker 

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



[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-01-29 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith
versions:  -Python 3.6, Python 3.8

___
Python tracker 

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



[issue32723] codecs.open silently ignores argument errors

2018-01-29 Thread Josh Rosenberg

Josh Rosenberg  added the comment:

On both Py2 and Py3, calling codecs.open without passing an encoding argument 
is equivalent to adding 'b' to the mode string and calling the built-in open 
function directly; it returns a plain binary mode file object. The errors 
parameter is meaningless because no decoding is being performed (there will 
never be any errors to handle).

--
nosy: +josh.r

___
Python tracker 

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



[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset dd42cb71f2cb02f3a32f016137b12a146bc0d0e2 by Gregory P. Smith 
(Anders Lorentsen) in branch 'master':
bpo-31961: subprocess now accepts path-like args (GH-4329)
https://github.com/python/cpython/commit/dd42cb71f2cb02f3a32f016137b12a146bc0d0e2


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue32441] os.dup2 should return the new fd

2018-01-29 Thread Benjamin Peterson

Change by Benjamin Peterson :


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



[issue30117] test_lib2to3.test_parser.test_all_project_files() fails

2018-01-29 Thread Benjamin Peterson

Change by Benjamin Peterson :


--
pull_requests: +5275

___
Python tracker 

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



[issue30117] test_lib2to3.test_parser.test_all_project_files() fails

2018-01-29 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset 14e976e00e65bf343ba0fca016c3c9132a843daf by Benjamin Peterson 
(Eric Appelt) in branch 'master':
closes bpo-30117: fix lib2to3 ParserIdempotency test (GH-1242)
https://github.com/python/cpython/commit/14e976e00e65bf343ba0fca016c3c9132a843daf


--
nosy: +benjamin.peterson
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



[issue32721] test_hashlib fails if _md5 is not built

2018-01-29 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset 6b2bbcc4cca414f35f67caa4674f59f41ff638ea by Benjamin Peterson 
(Miss Islington (bot)) in branch '3.6':
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441) 
(GH-5442)
https://github.com/python/cpython/commit/6b2bbcc4cca414f35f67caa4674f59f41ff638ea


--

___
Python tracker 

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



[issue21417] Compression level for zipfile

2018-01-29 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

Thanks Bo.  I agree with Nick, this is a readability win for a common annoying 
to type otherwise case.

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

___
Python tracker 

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



[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset ce0f33d04528fcafc673a8707871f8430d8f7ce8 by Gregory P. Smith (Bo 
Bayles) in branch 'master':
bpo-32102 Add "capture_output=True" to subprocess.run (GH-5149)
https://github.com/python/cpython/commit/ce0f33d04528fcafc673a8707871f8430d8f7ce8


--

___
Python tracker 

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



[issue28914] selectmodule build fails

2018-01-29 Thread Chih-Hsuan Yen

Chih-Hsuan Yen  added the comment:

As a side note, EPOLL_CLOEXEC is also missing on Android if *both* of the 
following conditions hold:

1. The build target is Android API < 21 (issue 32654)
2. Android NDK r15 or newer is used

The second condition is related to a workaround in NDK [1]. For now it's 
proposed to use NDK r14 to build CPython [2], so this issue can be left to the 
future. I've also asked if the relevant workaround in NDK can be reverted [3].

[1] https://android-review.googlesource.com/c/platform/bionic/+/401372
[2] https://github.com/python/cpython/pull/1629
[3] https://github.com/android-ndk/ndk/issues/302#issuecomment-361488327

--
components: +Build, Cross-Build
nosy: +Alex.Willmer, yan12125

___
Python tracker 

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



[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-29 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith

___
Python tracker 

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



[issue32721] test_hashlib fails if _md5 is not built

2018-01-29 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5274

___
Python tracker 

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



[issue32721] test_hashlib fails if _md5 is not built

2018-01-29 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset 95441809ef77a8df5e14601ade6c054ef7114c02 by Benjamin Peterson in 
branch 'master':
closes bpo-32721: do not fail test_hashlib if _md5 isn't available (GH-5441)
https://github.com/python/cpython/commit/95441809ef77a8df5e14601ade6c054ef7114c02


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



[issue32723] codecs.open silently ignores argument errors

2018-01-29 Thread Xiang Zhang

Change by Xiang Zhang :


--
title: codecs.open -> codecs.open silently ignores argument errors
type:  -> behavior

___
Python tracker 

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



[issue32723] codecs.open

2018-01-29 Thread Xiang Zhang

New submission from Xiang Zhang :

>>> import codecs
>>> f = codecs.open('/tmp/a', 'w', errors='replace')
>>> f.errors
'strict'

Passing errors to codecs.open without encoding doesn't work. Can't get this 
from doc and I don't think it should silently ignore the passing argument.

--
components: Library (Lib)
messages: 311240
nosy: lemburg, vstinner, xiang.zhang
priority: normal
severity: normal
status: open
title: codecs.open
versions: Python 2.7, 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



[issue32681] Fix uninitialized variable in os_dup2_impl

2018-01-29 Thread Gregory P. Smith

Change by Gregory P. Smith :


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



[issue32441] os.dup2 should return the new fd

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

https://github.com/python/cpython/pull/5346 (merged) should fix that warning.

--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue32681] Fix uninitialized variable in os_dup2_impl

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset 3d86e484de6334fe16cbab512744597bd0de4e80 by Gregory P. Smith 
(Stéphane Wirtel) in branch 'master':
bpo-32681: Fix an uninitialized variable in the C implementation of os.dup2 
(GH-5346)
https://github.com/python/cpython/commit/3d86e484de6334fe16cbab512744597bd0de4e80


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue21417] Compression level for zipfile

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset ce237c7d58ba207575cdfb0195a58a6407fbf717 by Gregory P. Smith (Bo 
Bayles) in branch 'master':
bpo-21417: Add compresslevel= to the zipfile module (GH-5385)
https://github.com/python/cpython/commit/ce237c7d58ba207575cdfb0195a58a6407fbf717


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue32722] Classes

2018-01-29 Thread Soothsayer

Soothsayer  added the comment:

Correction: it's a dictionary comprehension, and it did indeed used to be a 
call to dict() in the 2.7 documentation.

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



[issue32722] Classes

2018-01-29 Thread Soothsayer

Change by Soothsayer :


--
versions: +Python 3.5, Python 3.6 -Python 3.7, Python 3.8

___
Python tracker 

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



[issue32722] Classes

2018-01-29 Thread Soothsayer

New submission from Soothsayer :

In the Python tutorial, in "9. Classes", in "9.10 Generator expression", a list 
of sample generator expressions used as arguments to functions is given. 
However, one of the examples isn't a generator expression, it's a set 
comprehension.

sine_table = {x: sin(x*pi/180) for x in range(0, 91)}

Perhaps this used to be a call to set() and was mistakenly converted?

--
assignee: docs@python
components: Documentation
messages: 311235
nosy: Soothsayer, docs@python
priority: normal
severity: normal
status: open
title: Classes
type: enhancement
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue32721] test_hashlib fails if _md5 is not built

2018-01-29 Thread Benjamin Peterson

Change by Benjamin Peterson :


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

___
Python tracker 

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



[issue25942] Do not immediately SIGKILL subprocess child processes upon ^C

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

I went with my change to give the child process a small amount of time to 
cleanup by default.  Not perfect, but this should be more similar to the Python 
<=3.2 behavior.  Lets see if any issues crop up during the 3.7 betas.

--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed
title: Add a new optional cleanup_timeout parameter to subprocess.call() -> Do 
not immediately SIGKILL subprocess child processes upon ^C

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Nick Coghlan

Nick Coghlan  added the comment:

OK, this is back the way it was on the 3.6 branch now, while keeping the change 
on the 3.7 branch.

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



[issue32721] test_hashlib fails if _md5 is not built

2018-01-29 Thread Benjamin Peterson

New submission from Benjamin Peterson :

$ make
$ rm build/lib.linux-x86_64-3.7/_md5.cpython-37m-x86_64-linux-gnu.so 
$ ./python -m test test_hashlib
Run tests sequentially
0:00:00 load avg: 1.11 [1/1] test_hashlib
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/home/benjamin/dev/python/cpython/Lib/hashlib.py", line 243, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/benjamin/dev/python/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
/home/benjamin/dev/python/cpython/Lib/test/test_hashlib.py:90: UserWarning: Did 
a C extension fail to compile? No module named '_md5'
  warnings.warn('Did a C extension fail to compile? %s' % error)
Warning -- logging._handlerList was modified by test_hashlib
  Before: (139817255081928, [, ], [])
  After:  (139817255081928, [, ], [, ]) 
test test_hashlib failed -- Traceback (most recent call last):
  File "/home/benjamin/dev/python/cpython/Lib/test/test_hashlib.py", line 209, 
in test_get_builtin_constructor
constructor = get_builtin_constructor('md5')
  File "/home/benjamin/dev/python/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5

test_hashlib failed

1 test failed:
test_hashlib

Total duration: 397 ms
Tests result: FAILURE

--
components: Build
messages: 311233
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: test_hashlib fails if _md5 is not built
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



[issue25942] Add a new optional cleanup_timeout parameter to subprocess.call()

2018-01-29 Thread Gregory P. Smith

Gregory P. Smith  added the comment:


New changeset f4d644f36ffb6cb11b34bfcf533c14cfaebf709a by Gregory P. Smith in 
branch 'master':
bpo-25942: make subprocess more graceful on ^C (GH-5026)
https://github.com/python/cpython/commit/f4d644f36ffb6cb11b34bfcf533c14cfaebf709a


--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Nick Coghlan

Nick Coghlan  added the comment:


New changeset 05f91a42cd9575ef338a67bd04855b44f6ac20c2 by Nick Coghlan in 
branch '3.6':
[3.6] Revert "bpo-32690: Preserve order of locals() (GH-5379) (#5390)"
https://github.com/python/cpython/commit/05f91a42cd9575ef338a67bd04855b44f6ac20c2


--

___
Python tracker 

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



[issue32720] Format mini-language integer definition is incorrect

2018-01-29 Thread Nick Coghlan

New submission from Nick Coghlan :

I just noticed that https://docs.python.org/3/library/string.html#formatspec 
links to the "integer" definition in the main Python grammar for the permitted 
format of numeric fields.

This isn't accurate:

```
>>> format(10e4, ",.2f")
'100,000.00'
>>> format(10e4, ",.0x2f")
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Invalid format specifier
>>> format(10e4, ",.2_2f")
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Invalid format specifier
```

Instead, the `width` and `precision` subfields should be defined as "digit+"

--
assignee: docs@python
components: Documentation
messages: 311229
nosy: docs@python, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Format mini-language integer definition is incorrect
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-29 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Nick Coghlan

Nick Coghlan  added the comment:

Noting the git-fu required for non-master reverts:

- check out the branch of interest and ensure it's up to date
- `git checkout -b bpo-32690-revert-3.6-backport`
- `git revert 9105879bfd7133ecbac67f3e9c0bacf6e477de5a`
- edit commit message as appropriate
- create a PR targeting the branch of interest: 
https://github.com/python/cpython/pull/5439

Devguide issue here: https://github.com/python/devguide/issues/319

--

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-29 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset 04f99ba9d7186278eaf072e9a62c03aa63a8a6bb by Mariatta (Miss 
Islington (bot)) in branch '3.6':
bpo-32701: Clarify the quotetabs flag in quopri documentation (GH-5401) 
(GH-5438)
https://github.com/python/cpython/commit/04f99ba9d7186278eaf072e9a62c03aa63a8a6bb


--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Nick Coghlan

Change by Nick Coghlan :


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

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Ned Deily

Ned Deily  added the comment:

I'll make sure it's taken care of prior to 3.6.5rc1.

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:

The buildbots should be happier now.  I'll keep an eye on them.

--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Ned, can you do the reversion?  I'm a little git/github challenged on how to 
revert this one.

--
assignee: ncoghlan -> ned.deily

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:


New changeset 83e64c8a544028ae677af2a0bc268dbe1c11cc3a by Eric Snow in branch 
'master':
bpo-32604: NULL-terminate kwlist in channel_drop_interpreter(). (gh-5437)
https://github.com/python/cpython/commit/83e64c8a544028ae677af2a0bc268dbe1c11cc3a


--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Raymond Hettinger

Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-29 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5271

___
Python tracker 

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



[issue32701] Typo in quopri documentation

2018-01-29 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset 9424dcbb3e20a26dfdd81659303b989f7d3da044 by Mariatta (Julien 
Palard) in branch 'master':
bpo-32701: Clarify the quotetabs flag in quopri documentation (GH-5401)
https://github.com/python/cpython/commit/9424dcbb3e20a26dfdd81659303b989f7d3da044


--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:

I just put up a PR that should fix the 4 buildbots.

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Change by Eric Snow :


--
pull_requests: +5270

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:

On the PPC64 AIX 3.x buildbot:

==
FAIL: test_repr (test.test__xxsubinterpreters.ChannelIDTests)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test__xxsubinterpreters.py",
 line 784, in test_repr
self.assertEqual(repr(cid), 'ChannelID(10)')
AssertionError: 'ChannelID(0)' != 'ChannelID(10)'
- ChannelID(0)
+ ChannelID(10)
?   +

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:

On 4 of the buildbots:


==
ERROR: test_drop_multiple_times (test.test__xxsubinterpreters.ChannelTests)
--
Traceback (most recent call last):
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test__xxsubinterpreters.py",
 line 890, in test_drop_multiple_times
interpreters.channel_drop_interpreter(cid, send=True, recv=True)
SystemError: More keyword list entries (7) than format specifiers (3)
==
ERROR: test_drop_single_user (test.test__xxsubinterpreters.ChannelTests)
--
Traceback (most recent call last):
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test__xxsubinterpreters.py",
 line 848, in test_drop_single_user
interpreters.channel_drop_interpreter(cid, send=True, recv=True)
SystemError: More keyword list entries (7) than format specifiers (3)
==
ERROR: test_drop_used_multiple_times_by_single_user 
(test.test__xxsubinterpreters.ChannelTests)
--
Traceback (most recent call last):
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test__xxsubinterpreters.py",
 line 957, in test_drop_used_multiple_times_by_single_user
interpreters.channel_drop_interpreter(cid, send=True, recv=True)
SystemError: More keyword list entries (7) than format specifiers (3)
==
ERROR: test_drop_with_unused_items (test.test__xxsubinterpreters.ChannelTests)
--
Traceback (most recent call last):
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test__xxsubinterpreters.py",
 line 899, in test_drop_with_unused_items
interpreters.channel_drop_interpreter(cid, send=True, recv=True)
SystemError: More keyword list entries (7) than format specifiers (3)

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:

Yeah, I'm looking into it.  Also, I noticed some refleaks that I'll be sorting 
out.

--

___
Python tracker 

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



[issue32719] fatal error raised when Ctrl-C print loop

2018-01-29 Thread Xiang Zhang

Xiang Zhang  added the comment:

It's 3.6 and 3.7. The dir name in traceback doesn't matter.

--

___
Python tracker 

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



[issue32719] fatal error raised when Ctrl-C print loop

2018-01-29 Thread Xiang Zhang

New submission from Xiang Zhang :

A simple snippet:

import threading

def func():
while True:
print(1,2,3,4,5,6,7,8,9,10) 

t1 = threading.Thread(target=func)
t2 = threading.Thread(target=func)
t1.start()
t2.start()

Running this snippet and Ctrl-C raises FatalError:

^CException ignored in: 
Traceback (most recent call last):
1 2 3 4 5 6 7 8 9 10
  File "/root/Python-2.8.1/Lib/threading.py", line 1294, in _shutdown
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
t.join()
  File "/root/Python-2.8.1/Lib/threading.py", line 1056, in join
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
self._wait_for_tstate_lock()
  File "/root/Python-2.8.1/Lib/threading.py", line 1072, in 
_wait_for_tstate_lock
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
elif lock.acquire(block, timeout):
KeyboardInterrupt
Fatal Python error: could not acquire lock for <_io.BufferedWriter 
name=''> at interpreter shutdown, possibly due to daemon threads

Thread 0x7f7f6b22e700 (most recent call first):
  File "/tmp/test.py", line 5 in func
  File "/root/Python-2.8.1/Lib/threading.py", line 864 in run
  File "/root/Python-2.8.1/Lib/threading.py", line 916 in _bootstrap_inner
  File "/root/Python-2.8.1/Lib/threading.py", line 884 in _bootstrap

Thread 0x7f7f6ba2f700 (most recent call first):
  File "/tmp/test.py", line 5 in func
  File "/root/Python-2.8.1/Lib/threading.py", line 864 in run
  File "/root/Python-2.8.1/Lib/threading.py", line 916 in _bootstrap_inner
  File "/root/Python-2.8.1/Lib/threading.py", line 884 in _bootstrap

Current thread 0x7f7f73761740 (most recent call first):
已放弃(吐核) /* segfault(core dump) */

--
components: IO
messages: 311215
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: fatal error raised when Ctrl-C print loop
type: 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



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

Change by Jay Yin :


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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

> Can someone please revert the 3.6 change, as asked by Guido?

You have commit rights, so if you're impatient, go ahead.  Otherwise, I still 
need to figure-out out the github-foo needed to revert on something other than 
the master branch.  This isn't even my issue. I was trying to help out and 
didn't expect the Spanish Inquisition.

--

___
Python tracker 

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



[issue32694] Can no longer specify OpenSLL locations with CPPFLAGS / LDFLAGS ?

2018-01-29 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Can we also cover Brew?

Here's the dumb little configure wrapper I use:

```
#!/bin/sh

export CPPFLAGS="-I$(brew --prefix sqlite3)/include -I$(brew --prefix 
zlib)/include"
export LDFLAGS="-L$(brew --prefix sqlite3)/lib -L$(brew --prefix zlib)/lib"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

./configure
```

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Ned Deily

Ned Deily  added the comment:

Eric, looks like some buildbots are unhappy, for instance:

http://buildbot.python.org/all/#builders/13/builds/648

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:

I've merged the patch without Windows support, which shouldn't be a problem 
given the purpose of the extension module.  I've also added a PR for get the 
module building under Windows.  I'd like to get that resolved ASAP.

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Change by Eric Snow :


--
pull_requests: +5269

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-29 Thread Eric Snow

Eric Snow  added the comment:


New changeset 7f8bfc9b9a8381ddb768421b5dd5cbd970266190 by Eric Snow in branch 
'master':
bpo-32604: Expose the subinterpreters C-API in a "private" stdlib module. 
(gh-1748)
https://github.com/python/cpython/commit/7f8bfc9b9a8381ddb768421b5dd5cbd970266190


--

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Guido van Rossum

Guido van Rossum  added the comment:

W00t!

--

___
Python tracker 

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



[issue32690] Return function locals() in order of creation?

2018-01-29 Thread STINNER Victor

STINNER Victor  added the comment:

Can someone please revert the 3.6 change, as asked by Guido?

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

___
Python tracker 

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



[issue27931] Email parse IndexError <""@wiarcom.com>

2018-01-29 Thread Xiang Zhang

Change by Xiang Zhang :


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



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

Jay Yin  added the comment:

Alright I see, so I guess I'll set this as "postponed" and close it?

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



[issue32718] Install PowerShell activation scripts for venv for all platforms

2018-01-29 Thread Brett Cannon

New submission from Brett Cannon :

Thanks to https://github.com/PowerShell/PowerShell, PowerShell Core is 
cross-platform. That suggests that the Activate.ps1 file for venv should be 
moved to the common/ directory instead of existing only in the nt/ directory.

--
components: Library (Lib)
messages: 311206
nosy: brett.cannon, vinay.sajip
priority: low
severity: normal
status: open
title: Install PowerShell activation scripts for venv for all platforms
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Raymond Hettinger

Change by Raymond Hettinger :


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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Raymond Hettinger

Raymond Hettinger  added the comment:


New changeset 332cd5ee4ff42c9904c56e68a1028f383f7fc9a8 by Raymond Hettinger 
(Mark Shannon) in branch 'master':
bpo-32550. Remove the STORE_ANNOTATION bytecode. (GH-5181)
https://github.com/python/cpython/commit/332cd5ee4ff42c9904c56e68a1028f383f7fc9a8


--

___
Python tracker 

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



[issue32218] add __iter__ to enum.Flag members

2018-01-29 Thread Ethan Furman

Ethan Furman  added the comment:

This functionality is now in the third-party aenum* library.

Are there any strong use-cases for this behavior such that it should be in the 
stdlib?


* as of version 2.0.10, available on PyPI, and I am its author

--
nosy: +barry, eli.bendersky, rhettinger
stage: needs patch -> 
versions: +Python 3.8

___
Python tracker 

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



[issue22374] Replace contextmanager example and improve explanation

2018-01-29 Thread cowlinator

cowlinator  added the comment:

I would like to second the improved explanation of contextlib.contextmanager, 
and additionally point out another problem:  
A very important piece of information is missing from the documentation:  how 
to return data from the contextmanager-wrapped function.  

I had to go look up the source code, which had a wonderful explanation in the 
comments: https://gist.github.com/enuomi/1385336#file-contextlib-py-L56 

In particular, note that 

@contextmanager
def some_generator():
  yield 

can be used to return  to the caller, via

with some_generator() as :
  print(return_data)

This information is wholly and completely missing from the 
contextlib.contextmanager documentation.

--
nosy: +cowlinator
versions: +Python 2.7, Python 3.4, Python 3.7

___
Python tracker 

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



[issue31851] test_subprocess hangs randomly on Windows with Python 3.x

2018-01-29 Thread Steve Dower

Steve Dower  added the comment:

It's an assert, so it only affects debug builds - releases are not impacted.

I'm guessing there's a test that spawns a subprocess and doesn't initialize it 
properly for tests (specifically the part where we disable assertions on 
Windows).

--

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Mark Shannon

Mark Shannon  added the comment:

Rebased, pushed and CI is green.

--

___
Python tracker 

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



[issue32717] Document PEP 560

2018-01-29 Thread Ivan Levkivskyi

New submission from Ivan Levkivskyi :

This should include:
* Short documentation PR for `__mro_entry__` and `__base_subclass__` methods.
* The `__class_getitem__` C API calling convention (with motivation, many 
classes are implemented in C but are generic in nature, like numpy.ndarray) in 
PEP 560.

--
assignee: levkivskyi
components: Documentation
messages: 311200
nosy: gvanrossum, levkivskyi, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Document PEP 560
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



[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-29 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

OK, I will close this issue, and open separate issues for documentation, Union, 
etc.

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



[issue32715] Make create_unix_server for SOCK_DGRAM work

2018-01-29 Thread Yury Selivanov

Yury Selivanov  added the comment:

Hm, maybe I'm mistaken here, but I have no time right now to confirm.

I'll reopen the issue so that we can consider this (and especially SEQPACKET) 
for 3.8.  Sorry for insta-reject :)

--
resolution: rejected -> 
stage: resolved -> 
status: closed -> open
type: behavior -> enhancement

___
Python tracker 

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



[issue32394] socket lib beahavior change in 3.6.4

2018-01-29 Thread Steve Dower

Steve Dower  added the comment:

I like Kamil's suggestion.

--

___
Python tracker 

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



[issue32715] Make create_unix_server for SOCK_DGRAM work

2018-01-29 Thread holger

holger  added the comment:

Could you please tell me which exact posix document and paragraph says that?

In Linux sending can fail but once sendmsg worked the message is enqueued on 
the other socket 
(https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/unix/af_unix.c?id=110af3acb8cfd79dcb5676a01e07cb2b6afa4c04#n1626).

In FreeBSD 
(http://fxr.watson.org/fxr/source/kern/uipc_usrreq.c?v=FREEBSD10#L911) it looks 
similar. If the mbuf can't be put into the recvq of the remote socket.. an 
error will be returned.

What about SEQPACKET support?

--

___
Python tracker 

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



[issue32716] setup.py register --repository is broken

2018-01-29 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA :

Although document 
https://docs.python.org/3.6/distutils/packageindex.html#package-cmdoptions says 
"The --repository or -r option lets you specify a PyPI server different from 
the default", if there is no URL specified in ``.pypirc`` it will display 
"ValueError:  not found in .pypirc".


::

  $ python3 setup.py register -r https://test.pypi.org/legacy/
  running register
  running egg_info
  writing dependency_links to test.egg-info/dependency_links.txt
  writing top-level names to test.egg-info/top_level.txt
  writing test.egg-info/PKG-INFO
  reading manifest file 'test.egg-info/SOURCES.txt'
  writing manifest file 'test.egg-info/SOURCES.txt'
  Traceback (most recent call last):
File "setup.py", line 4, in 
  setup(name='test')
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
  dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
  self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
  cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/register.py", line 
10, in run
  orig.register.run(self)
File "/usr/lib/python3.5/distutils/command/register.py", line 45, in run
  self._set_config()
File "/usr/lib/python3.5/distutils/command/register.py", line 80, in 
_set_config
  raise ValueError('%s not found in .pypirc' % self.repository)
  ValueError: https://test.pypi.org/legacy/ not found in .pypirc

  $ python3 -V
  Python 3.5.2

  $ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:Ubuntu 16.04.3 LTS
  Release:16.04
  Codename:   xenial

This behavior could be confirmed on Windows.

I think there are two correction methods.
One is to fix it so that we can specify any URL regardless of the setting of 
.pypirc.
The other is to write in the document that "-r option can specify server name 
or URL in .pypirc".

--
components: Distutils
messages: 311195
nosy: dstufft, eric.araujo, shimizukawa
priority: normal
severity: normal
status: open
title: setup.py register --repository is broken
versions: Python 2.7, 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



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

We can't remove the code because it might still be used by third parties.  
Deprecation generally means we inform users that they shouldn't use the code 
any more (possibly with a DeprecationWarning, although we decided not to do 
that in this case).  We definitely won't remove the code in 3.7.  We can think 
about it for 3.8

--
nosy: +barry, brett.cannon
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



[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2018-01-29 Thread Brett Cannon

Brett Cannon  added the comment:

No opinion from me on how critical this is.

--

___
Python tracker 

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



[issue32715] Make create_unix_server for SOCK_DGRAM work

2018-01-29 Thread Yury Selivanov

Yury Selivanov  added the comment:

SOCK_DGRAM is never reliable, even for AF_UNIX.  It might appear reliable to 
your test code, but there's no guarantee for that under any OS in Posix 
standard AFAIK.

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Guido van Rossum

Guido van Rossum  added the comment:

Awesome!

--

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Ned Deily

Ned Deily  added the comment:

Mark, at the moment, you have at least another 14 hours until the announced 
code freeze deadline :)

--
nosy: +ned.deily

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Mark Shannon

Mark Shannon  added the comment:

If it can wait another hour, I will be at home and can do the rebase then.

--

___
Python tracker 

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



[issue32715] Make create_unix_server for SOCK_DGRAM work

2018-01-29 Thread holger

New submission from holger :

The current implementation verifies that the sock passed is a stream socket. 
This limitation appears to be arbitrary and is limiting.

* An AF_UNIX SOCK_DGRAM server socket becomes readable when one can accept(2) 
it. Just like SOCK_STREAM.
* One could provide a different factory to create a reader/writer to use a 
SOCK_DGRAM socket (but most likely nothing special is needed)
* A connected AF_UNIX SOCK_DGRAM socket will work with normal read/write 
messages just like SOCK_STREAM.

AF_UNIX, SOCK_DGRAM is interesting because it provides a reliable transport for 
messages. This avoids having to write message segmentation or packing messages 
in any kind of envelope.

--
components: asyncio
messages: 311188
nosy: asvetlov, holger+lp, yselivanov
priority: normal
severity: normal
status: open
title: Make create_unix_server for SOCK_DGRAM work
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue27931] Email parse IndexError <""@wiarcom.com>

2018-01-29 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset 6ea75b174da0cf824e2acc5db6b53798f5f4e4f9 by Mariatta (Miss 
Islington (bot)) in branch '3.6':
bpo-27931: Fix email address header parsing error (GH-5329) (GH-5431)
https://github.com/python/cpython/commit/6ea75b174da0cf824e2acc5db6b53798f5f4e4f9


--
nosy: +Mariatta

___
Python tracker 

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



[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2018-01-29 Thread Yury Selivanov

Yury Selivanov  added the comment:

> Unless there's a burning issue, let's revisit this after beta 1.

There're no burning issues currently, last fixes to asyncio made the buildbot 
happy.  I'm totally fine to revisit this later.

--

___
Python tracker 

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



[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2018-01-29 Thread Ned Deily

Ned Deily  added the comment:

Yury, is there a current problem with running on 10.4?  Yes, it's very old but 
it's been very stable and very good at finding compatibility issues with 
non-mainstream operating systems.  Unless there's a burning issue, let's 
revisit this after beta 1.

--

___
Python tracker 

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



[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2018-01-29 Thread STINNER Victor

STINNER Victor  added the comment:

This issue is now closed, it should be reopened if you want to reopen the 
discussion. The question for Tiger is how to debug bugs, since Apple forces 
macOS upgrades, so most users only run the latest macOS version...

--

___
Python tracker 

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



[issue32550] STORE_ANNOTATION bytecode is unnecessary and can be removed.

2018-01-29 Thread Guido van Rossum

Guido van Rossum  added the comment:

I expect that Mark only checks his mail occasionally. Sometimes GitHub lets you 
edit a PR and then you can also resolve the conflict yourself. If that's not 
the case feel free to fork the PR and submit it yourself.

--

___
Python tracker 

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



[issue1818] Add named tuple reader to CSV module

2018-01-29 Thread Skip Montanaro

Skip Montanaro  added the comment:

FWIW, I relinquished my check-in privileges quite awhile ago. This should
almost certainly no longer be assigned to me.

S

--

___
Python tracker 

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



[issue28134] socket.socket(fileno=fd) does not work as documented

2018-01-29 Thread Christian Heimes

Change by Christian Heimes :


--
pull_requests: +5268

___
Python tracker 

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



[issue29915] Drop Mac OS X Tiger support in Python 3.7?

2018-01-29 Thread Yury Selivanov

Yury Selivanov  added the comment:

Duplicating my message to issue 28099 here:

TBH I don't think we need to care about OS X Tiger.  I mean Apple itself 
doesn't care about it anymore, the last release was 10 years ago.  How about we 
drop its buildbot?

I don't see any point in fixing asyncio for Tiger.

--
nosy: +yselivanov

___
Python tracker 

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



[issue28134] socket.socket(fileno=fd) does not work as documented

2018-01-29 Thread Christian Heimes

Christian Heimes  added the comment:

The test for proto isn't super critical. It's mostly ignored any way. I'll 
submit a band-aid.

--

___
Python tracker 

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



[issue28099] Drop Mac OS X Tiger support in Python 3.6

2018-01-29 Thread Yury Selivanov

Yury Selivanov  added the comment:

TBH I don't think we need to care about OS X Tiger.  I mean Apple itself 
doesn't care about it anymore, the last release was 10 years ago.  How about we 
drop its buildbot?

--
nosy: +yselivanov

___
Python tracker 

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



[issue28134] socket.socket(fileno=fd) does not work as documented

2018-01-29 Thread STINNER Victor

STINNER Victor  added the comment:

x86-64 Sierra 3.x is grumpy:

http://buildbot.python.org/all/#/builders/14/builds/659

==
FAIL: test_uknown_socket_family_repr (test.test_socket.GeneralModuleTests)
--
Traceback (most recent call last):
  File 
"/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_socket.py",
 line 1645, in test_uknown_socket_family_repr
self.assertEqual(s.proto, 23)
AssertionError: 0 != 23

--

___
Python tracker 

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



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

New submission from Jay Yin :

I recently discovered in the documentation within the code and recent 
discussions with Barry, that ResourceLoader is deprecated and was wondering if 
we wanted to remove the code exclusively pertaining to ResourceLoader for 
clarity and to remove unused code. (PS if this is will be done I'll gladly 
contribute to doing so)

--
messages: 311177
nosy: jayyin11043
priority: normal
severity: normal
status: open
title: remove resourceLoader related code since it's deprecated
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue32714] remove resourceLoader related code since it's deprecated

2018-01-29 Thread Jay Yin

Change by Jay Yin :


--
components: +Library (Lib)

___
Python tracker 

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



[issue32713] tarfile.itn breaks if n is a negative float

2018-01-29 Thread Joffrey F

Change by Joffrey F :


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

___
Python tracker 

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



[issue28134] socket.socket(fileno=fd) does not work as documented

2018-01-29 Thread Christian Heimes

Christian Heimes  added the comment:

I'm leaving the ticket open to remind me that I have to add a whatsnew entry 
and maybe consider a backport.

--

___
Python tracker 

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




  1   2   3   >