[issue28432] Fix doc of PyUnicode_EncodeLocale

2016-10-13 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
nosy: +orsenthil

___
Python tracker 

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



[issue28438] Wrong link in pkgutil.get_data doc

2016-10-13 Thread Xiang Zhang

Xiang Zhang added the comment:

Thanks Senthil.

--

___
Python tracker 

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



[issue28438] Wrong link in pkgutil.get_data doc

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7fb90c4ae643 by Senthil Kumaran in branch '3.5':
Issue28438 - Fix the link for pkgutil.get_data doc. Patch contributed by Xiang 
Zhang.
https://hg.python.org/cpython/rev/7fb90c4ae643

New changeset f2110f41012e by Senthil Kumaran in branch '3.6':
[merge from 3.5] Issue28438 - Fix the link for pkgutil.get_data doc.
https://hg.python.org/cpython/rev/f2110f41012e

New changeset 897fe8fa14b5 by Senthil Kumaran in branch 'default':
[merge from 3.6] Issue28438 - Fix the link for pkgutil.get_data doc.
https://hg.python.org/cpython/rev/897fe8fa14b5

--
nosy: +python-dev

___
Python tracker 

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



[issue28438] Wrong link in pkgutil.get_data doc

2016-10-13 Thread Senthil Kumaran

Changes by Senthil Kumaran :


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



[issue28438] Wrong link in pkgutil.get_data doc

2016-10-13 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The patch looks good to me. Thank you, Xiang. I will apply it.

--
nosy: +orsenthil

___
Python tracker 

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



[issue18844] allow weights in random.choice

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d4e715e725ef by Raymond Hettinger in branch '3.6':
Issue #18844:  Add more tests
https://hg.python.org/cpython/rev/d4e715e725ef

--

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread INADA Naoki

INADA Naoki added the comment:

I hit this issue27705, and I have no time to reinstall Visual Studio 2015 
Community today.
I'll try test on Windows later.

--

___
Python tracker 

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



[issue28438] Wrong link in pkgutil.get_data doc

2016-10-13 Thread Xiang Zhang

New submission from Xiang Zhang:

The get_data link in pkgutil.get_data doc refers to itself which does not help 
reading. I think it's better for it to refer to 
importlib.abc.ResourceLoader.get_data.

--
assignee: docs@python
components: Documentation
files: pkgutil.get_data_doc.patch
keywords: patch
messages: 278631
nosy: docs@python, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: Wrong link in pkgutil.get_data doc
versions: Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45087/pkgutil.get_data_doc.patch

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread INADA Naoki

INADA Naoki added the comment:

> Any reason why this module doesn't use argument clinic?

No reason.

But I don't want to do in this issue, since I don't know how to
generate good patch file for file rename + change in file.

I'll do it in future issue.

--

___
Python tracker 

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



[issue28424] pkgutil.get_data() doesn't work with namespace packages

2016-10-13 Thread Xiang Zhang

Xiang Zhang added the comment:

The doc says: "If the package cannot be located or loaded, or it uses a loader 
which does not support get_data(), then None is returned". Namespace package 
gets a ``None`` loader and then does not support get_data.

--
nosy: +brett.cannon, eric.snow, ncoghlan, xiang.zhang

___
Python tracker 

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



[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-13 Thread Xiang Zhang

Xiang Zhang added the comment:

+1 for 2). Patch looks good.

--

___
Python tracker 

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



[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

2016-10-13 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +martin.panter

___
Python tracker 

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



[issue28437] Class definition is not consistent with types.new_class

2016-10-13 Thread Neil Girdhar

Neil Girdhar added the comment:

Oops, I meant:

MyDerived = new_class("MyDerived", (MyClass,), 
dict(metaclass=metaclass_callable))

Nevertheless, the exception line number is totally off because it's tripping in 
the C code rather than in the Python code of the types library.

--

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread Steve Dower

Steve Dower added the comment:

Any reason why this module doesn't use argument clinic?

--

___
Python tracker 

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



[issue28437] Class definition is not consistent with types.new_class

2016-10-13 Thread Neil Girdhar

New submission from Neil Girdhar:

Minimum working example:

class MyMetaclass(type):
pass

class OtherMetaclass(type):
pass

def metaclass_callable(name, bases, namespace):
return OtherMetaclass(name, bases, namespace)

class MyClass(metaclass=MyMetaclass):
pass

try:
class MyDerived(MyClass, metaclass=metaclass_callable):
pass
except:
print("Gotcha!")


from types import new_class
MyDerived = new_class("MyDerived", (), dict(metaclass=metaclass_callable))

print(type(MyDerived))


This is because something happened along the way and 
Objects/typeobject.c:type_new no longer coincides with Lib/types.py:new_class. 
The Python version conditionally calls _calculate_meta whereas the C version 
calls it unconditionally. I consider the C implementation to be the "correct" 
version.

I suggest that
* the Python version be made to coincide with the C version.
* the documentation be made to coincide with the C version.  Specifically, 
section 3.3.3.2 should read:


"The metaclass of a class definition is selected from the explicitly specified 
metaclass (if any) and the metaclasses (i.e. type(cls)) of all specified base 
classes. The selected metaclass is the one which is a subtype of all of these 
candidate metaclasses. If none of the candidate metaclasses meets that 
criterion, then the class definition will fail with TypeError. If provided, the 
explicit metaclass must be a callable accepting the positional arguments (name, 
bases, _dict) as in the three argument form of the built-in type function."

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 278625
nosy: docs@python, neil.g
priority: normal
severity: normal
status: open
title: Class definition is not consistent with types.new_class
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-13 Thread Eryk Sun

Eryk Sun added the comment:

MultibyteToWideChar includes the trailing NUL when it gets the string length, 
so the WriteConsoleW call needs to use (wlen - 1).

--

___
Python tracker 

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



[issue28087] macOS 12 poll syscall returns prematurely

2016-10-13 Thread Ned Deily

Ned Deily added the comment:

(From https://github.com/curl/curl/issues/1057, the curl project has also seen 
this and opened an issue with Apple against macOS 10.12, RADAR 28372390.)

--

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +steve.dower

___
Python tracker 

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



[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-10-13 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +orsenthil

___
Python tracker 

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



[issue28422] multiprocessing Manager mutable type member access failure

2016-10-13 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +davin

___
Python tracker 

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



[issue18789] XML Vunerability Table Unclear

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 760403522d6b by Guido van Rossum in branch '2.7':
Issue #18789: Update XML vulnerability table to use Safe/Vulnerable instead of 
No/Yes. (backport to 2.7)
https://hg.python.org/cpython/rev/760403522d6b

--

___
Python tracker 

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



[issue18789] XML Vunerability Table Unclear

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e05c546062a1 by Guido van Rossum in branch '3.5':
Issue #18789: Update XML vulnerability table to use Safe/Vulnerable instead of 
No/Yes.
https://hg.python.org/cpython/rev/e05c546062a1

New changeset beed43d7dc46 by Guido van Rossum in branch '3.6':
Issue #18789: Update XML vulnerability table to use Safe/Vulnerable instead of 
No/Yes. (3.5->3.6)
https://hg.python.org/cpython/rev/beed43d7dc46

New changeset 9513fac97ddd by Guido van Rossum in branch 'default':
Issue #18789: Update XML vulnerability table to use Safe/Vulnerable instead of 
No/Yes. (3.6->3.7)
https://hg.python.org/cpython/rev/9513fac97ddd

--
nosy: +python-dev

___
Python tracker 

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



[issue18789] XML Vunerability Table Unclear

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks again!

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



[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

2016-10-13 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +orsenthil
stage:  -> patch review

___
Python tracker 

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



[issue26869] unittest longMessage docs

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

Done. Thanks!

--
nosy: +gvanrossum
resolution:  -> fixed
stage: needs patch -> 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



[issue26869] unittest longMessage docs

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7eb4fe57492f by Guido van Rossum in branch '3.5':
Issue #26869: Document unittest.TestCase.longMessage. (Mariatta)
https://hg.python.org/cpython/rev/7eb4fe57492f

New changeset d7279d803d1d by Guido van Rossum in branch '3.6':
Issue #26869: Document unittest.TestCase.longMessage. (Mariatta) (3.5->3.6)
https://hg.python.org/cpython/rev/d7279d803d1d

New changeset c7c428350578 by Guido van Rossum in branch 'default':
Issue #26869: Document unittest.TestCase.longMessage. (Mariatta) (3.6->3.7)
https://hg.python.org/cpython/rev/c7c428350578

--
nosy: +python-dev

___
Python tracker 

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



[issue28393] Update encoding lookup docs wrt #27938

2016-10-13 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Thanks, Ville.

--

___
Python tracker 

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



[issue28436] GzipFile doesn't properly handle short reads and writes on the underlying stream

2016-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +martin.panter

___
Python tracker 

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



[issue28425] Python3 ignores __init__.py that are links to /dev/null

2016-10-13 Thread Douglas Greiman

Douglas Greiman added the comment:

See associated bug filed against Bazel:

https://github.com/bazelbuild/bazel/issues/1458

As for why Bazel does that, it's related to the sandboxing implementation but I 
don't know any details beyond that.

--

___
Python tracker 

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



[issue21443] asyncio logging documentation clarifications

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks! Applied to 3.5, 3.6, 3.7. (We don't change 3.4 any more except for 
security fixes.)

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
type: enhancement -> behavior

___
Python tracker 

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



[issue21443] asyncio logging documentation clarifications

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e68b1b2515e9 by Guido van Rossum in branch '3.5':
Issue #21443: Show how to change log level for asyncio.
https://hg.python.org/cpython/rev/e68b1b2515e9

New changeset 660058d76788 by Guido van Rossum in branch '3.6':
Issue #21443: Show how to change log level for asyncio. (Merge 3.5->3.6)
https://hg.python.org/cpython/rev/660058d76788

New changeset 861d22bd852d by Guido van Rossum in branch 'default':
Issue #21443: Show how to change log level for asyncio. (Merge 3.6->3.7)
https://hg.python.org/cpython/rev/861d22bd852d

--
nosy: +python-dev

___
Python tracker 

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



[issue15013] smtplib: add low-level APIs to doc?

2016-10-13 Thread Maciej Urbański

Maciej Urbański added the comment:

I guess documenting `data` method may still be needed after all. For now I 
followed the suggestions from comments to best of my ability.

Please see attached patch.

--
keywords: +patch
nosy: +rooter
Added file: http://bugs.python.org/file45086/issue15013.patch

___
Python tracker 

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



[issue28393] Update encoding lookup docs wrt #27938

2016-10-13 Thread Ville Skyttä

Ville Skyttä added the comment:

codecs-doc-3 contains a versionadded note about us-ascii. I think that's the 
only end user visible change in the new implementation.

--
Added file: http://bugs.python.org/file45085/codecs-doc-3.patch

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread STINNER Victor

STINNER Victor added the comment:

"Don't want to add too much noise, but this issue also affects the manylinux 
project build compiler (gcc 4.8.2)."

Can you elaborate on these issues? Are you getting the same errors than the 
error described in the initial message with GCC 4.2? If not, you may open a new 
issue to track compilation issues of Python 3.6 on GCC 4.8.

--

___
Python tracker 

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



[issue28436] GzipFile doesn't properly handle short reads and writes on the underlying stream

2016-10-13 Thread Марк Коренберг

Марк Коренберг added the comment:

And also issue26877

--

___
Python tracker 

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



[issue28436] GzipFile doesn't properly handle short reads and writes on the underlying stream

2016-10-13 Thread Марк Коренберг

Марк Коренберг added the comment:

Also see issue16859

--
nosy: +mmarkk

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks everyone! Applied to 2.7, so closing as fixed now.

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



[issue15994] memoryview to freed memory can cause segfault

2016-10-13 Thread Evgeny Kapun

Changes by Evgeny Kapun :


--
nosy: +abacabadabacaba

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bc8a4b121aec by Guido van Rossum in branch '2.7':
Issue #24452: Make webbrowser support Chrome on Mac OS X (backport to 2.7)
https://hg.python.org/cpython/rev/bc8a4b121aec

--

___
Python tracker 

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



[issue28436] GzipFile doesn't properly handle short reads and writes on the underlying stream

2016-10-13 Thread Evgeny Kapun

New submission from Evgeny Kapun:

GzipFile's underlying stream can be a raw stream (such as FileIO), and such 
streams can return short reads and writes at any time (e.g. due to signals). 
The correct behavior in case of short read or write is to retry the call to 
read or write the remaining data.

GzipFile doesn't do this. This program demonstrates the problem with reading:

import io, gzip

class MyFileIO(io.FileIO):
def read(self, n):
# Emulate short read
return super().read(1)

raw = MyFileIO('test.gz', 'rb')
gzf = gzip.open(raw, 'rb')
gzf.read()

Output:

$ gzip -c /dev/null > test.gz
$ python3 test.py
Traceback (most recent call last):
  File "test.py", line 10, in 
gzf.read()
  File "/usr/lib/python3.5/gzip.py", line 274, in read
return self._buffer.read(size)
  File "/usr/lib/python3.5/gzip.py", line 461, in read
if not self._read_gzip_header():
  File "/usr/lib/python3.5/gzip.py", line 409, in _read_gzip_header
raise OSError('Not a gzipped file (%r)' % magic)
OSError: Not a gzipped file (b'\x1f')

And this shows the problem with writing:

import io, gzip

class MyIO(io.RawIOBase):
def write(self, data):
print(data)
# Emulate short write
return 1

raw = MyIO()
gzf = gzip.open(raw, 'wb')
gzf.close()

Output:

$ python3 test.py 
b'\x1f\x8b'
b'\x08'
b'\x00'
b'\xb9\xea\xffW'
b'\x02'
b'\xff'
b'\x03\x00'
b'\x00\x00\x00\x00'
b'\x00\x00\x00\x00'

It can be seen that there is no attempt to write all the data. Indeed, the 
return value of write() method is completely ignored.

I think that either gzip module should be changed to handle short reads and 
writes properly, or its documentation should reflect the fact that it cannot be 
used with raw streams.

--
components: Library (Lib)
messages: 278606
nosy: abacabadabacaba
priority: normal
severity: normal
status: open
title: GzipFile doesn't properly handle short reads and writes on the 
underlying stream
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

OK will do.

--

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread Марк Коренберг

Марк Коренберг added the comment:

Well, I created discussion at 

https://groups.google.com/forum/#!topic/python-ideas/CoRe1gThnd8

--

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread Марк Коренберг

Марк Коренберг added the comment:

https://groups.google.com/forum/#!searchin/python-ideas/sorted|sort:relevance/python-ideas/dy3Thu-PXSM/mTqEduXE4GYJ
 ?

@serhiy.storchaka did not rejected idea.

Anyway, I still can not find message in python-ideas which describe why such 
idea may be rejected.

Well, I will try to get answer at python-ideas...

Maybe someone can say why this idea is broken in that issue ?

--

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread Nathaniel Smith

Nathaniel Smith added the comment:

@rgbecker: Are you able to pull out the config.log generated by running 
python's ./configure script, and post that somewhere?

--

___
Python tracker 

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



[issue26513] platform.win32_ver() broken in 2.7.11

2016-10-13 Thread Scott Leerssen

Scott Leerssen added the comment:

I just assumed it was fixed based on the 2.7.12 release notes.  I missed the 
comment on msg277117 which describes the same problem, so clearly this is a 
known issue and I'll look forward to seeing the fix in 2.7.13.  Thanks.

--

___
Python tracker 

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



[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

2016-10-13 Thread Stefan Prawda

Changes by Stefan Prawda :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

2016-10-13 Thread Stefan Prawda

New submission from Stefan Prawda:

test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env set:
NO_PROXY=localhost,127.0.0.0/8,::1
no_proxy=localhost,127.0.0.0/8,::1

Patch attached.

Run:
./python -m unittest test.test_urllib2_localnet.ProxyAuthTests -v
test_proxy_qop_auth_int_works_or_throws_urlerror 
(test.test_urllib2_localnet.ProxyAuthTests) ... ok
test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests) ... ERROR
test_proxy_with_bad_password_raises_httperror 
(test.test_urllib2_localnet.ProxyAuthTests) ... ERROR
test_proxy_with_no_password_raises_httperror 
(test.test_urllib2_localnet.ProxyAuthTests) ... ERROR

==
ERROR: test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests)
--
Traceback (most recent call last):
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 1318, in 
do_open
encode_chunked=req.has_header('Transfer-encoding'))
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1285, in 
_send_request
self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1234, in 
endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1026, in 
_send_output
self.send(msg)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 964, in send
self.connect()
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
  File "/home/d0han/cpython/cpython/Lib/socket.py", line 722, in 
create_connection
raise err
  File "/home/d0han/cpython/cpython/Lib/socket.py", line 713, in 
create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/d0han/cpython/cpython/Lib/test/test_urllib2_localnet.py", line 
372, in test_proxy_qop_auth_works
result = self.opener.open(self.URL)
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 526, in open
response = self._open(req, data)
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 544, in _open
'_open', req)
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 504, in 
_call_chain
result = func(*args)
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 1346, in 
http_open
return self.do_open(http.client.HTTPConnection, req)
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 1320, in 
do_open
raise URLError(err)
urllib.error.URLError: 

==
ERROR: test_proxy_with_bad_password_raises_httperror 
(test.test_urllib2_localnet.ProxyAuthTests)
--
Traceback (most recent call last):
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 1318, in 
do_open
encode_chunked=req.has_header('Transfer-encoding'))
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1285, in 
_send_request
self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1234, in 
endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 1026, in 
_send_output
self.send(msg)
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 964, in send
self.connect()
  File "/home/d0han/cpython/cpython/Lib/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
  File "/home/d0han/cpython/cpython/Lib/socket.py", line 722, in 
create_connection
raise err
  File "/home/d0han/cpython/cpython/Lib/socket.py", line 713, in 
create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/d0han/cpython/cpython/Lib/test/test_urllib2_localnet.py", line 
360, in test_proxy_with_bad_password_raises_httperror
self.URL)
  File "/home/d0han/cpython/cpython/Lib/unittest/case.py", line 728, in 
assertRaises
return context.handle('assertRaises', args, kwargs)
  File "/home/d0han/cpython/cpython/Lib/unittest/case.py", line 177, in handle
callable_obj(*args, **kwargs)
  File "/home/d0han/cpython/cpython/Lib/urllib/request.py", line 526, in open
response = self._open(

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread Robin Becker

Robin Becker added the comment:

I executed gcc --version (&cc --version) in the do_cpython_build function 
immediately prior to the make -j2 that builds python noth show 4.8.2.

I see the exact same errors as in the initial report. If the makefile or the 
configure is doing something special then I guess I have to work around that. A 
possibility is that the CFLAGS="-Wformat" in the environment or the configure 
argument --disable-shared is having some effect.

I have made very few changes to the build scripts.

--

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread R. David Murray

R. David Murray added the comment:

I'm going to close it as rejected.  If you surprise us and get a positive 
response on python-ideas we can always reopen.  But, adding a btree would 
probably require a PEP anyway.

--
nosy: +r.david.murray
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



[issue26513] platform.win32_ver() broken in 2.7.11

2016-10-13 Thread Steve Dower

Steve Dower added the comment:

Did you get the fixed version from what will become 2.7.13? It doesn't get 
magically fixed in existing releases.

--

___
Python tracker 

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



[issue28434] U+1F441 EYE Missing in unicodedata

2016-10-13 Thread Ned Deily

Ned Deily added the comment:

The EYE code point was added in Unicode 7.0 which was first supported in Python 
3.5.0.

--
nosy: +ned.deily
resolution:  -> out of date
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



[issue28434] U+1F441 EYE Missing in unicodedata

2016-10-13 Thread Mark Shoulson

Mark Shoulson added the comment:

Sorry, NOSE is U+1F443; I should have used EAR which is U+1F442.  The result is 
the same.

--

___
Python tracker 

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



[issue28434] U+1F441 EYE Missing in unicodedata

2016-10-13 Thread Mark Shoulson

New submission from Mark Shoulson:

Python3.4 does not appear to know about the Unicode character U+1F441 EYE, 
although it does know about nearby characters which were added to Unicode at 
the same time:

>>> "\N{EYES}"   # This is character U+1F440
'👀'
>>> "\N{NOSE}"   # This is U+1F442
'👃'
>>> "\N{EYE}"
  File "", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in 
position 0-6: unknown Unicode character name
>>> import unicodedata
>>> unicodedata.lookup("EYES")
'👀'
>>> unicodedata.lookup("EYE")
Traceback (most recent call last):
  File "", line 1, in 
KeyError: "undefined character name 'EYE'"
>>> unicodedata.name('👀')
'EYES'
>>> unicodedata.name('👁')
Traceback (most recent call last):
  File "", line 1, in 
ValueError: no such name
>>>

--
components: Unicode
messages: 278594
nosy: Mark Shoulson, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: U+1F441 EYE Missing in unicodedata
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue28424] pkgutil.get_data() doesn't work with namespace packages

2016-10-13 Thread Eric V. Smith

Changes by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue28425] Python3 ignores __init__.py that are links to /dev/null

2016-10-13 Thread Eric V. Smith

Changes by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread Eric V. Smith

Eric V. Smith added the comment:

I'm sure this has been discussed before and rejected. I suggest you search the 
python-ideas mailing list archives, and if you do not find something in the 
archives, raise the issue on python-ideas.

--
nosy: +eric.smith

___
Python tracker 

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



[issue11429] ctypes is highly eclectic in its raw-memory support

2016-10-13 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue17182] signal.default_int_handler should set signal number on the raised exception

2016-10-13 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue12660] test_gdb fails when installed

2016-10-13 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi :


--
nosy: +levkivskyi

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Applying on 2.7 seems alright. Bug fix.

--

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

The documentation seems to indicate that chrome MacOS is supposed to work in 
2.7, which makes this a bug.

https://docs.python.org/2.7/library/webbrowser.html?highlight=webbrowser#module-webbrowser

But... it could also be a documentation bug.

--

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +abarnert, rhettinger

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

I applied this to 3.5, 3.6 and 3.7. I'm not sure we should also apply this to 
2.7 -- optinions? Bug or feature?

--
versions: +Python 3.5

___
Python tracker 

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



[issue28427] WeakValueDictionary next bug (with multithreading)

2016-10-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is simpler reproducer for Python 3. One thread updates WeakValueDictionary 
in a loop, other threads runs garbage collecting in a loop. Values are 
collected asynchronously and this can cause removing new value by old key. 
Following patch fixes this example (or at least makes race condition much less 
likely). But it doesn't fix the entire issue. If add list(d) after setting a 
new value, the example fails again.

--
Added file: http://bugs.python.org/file45082/issue28427.py

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bd0f502c5eea by Guido van Rossum in branch '3.5':
Issue #24452: Make webbrowser support Chrome on Mac OS X.
https://hg.python.org/cpython/rev/bd0f502c5eea

New changeset 64a38f9aee21 by Guido van Rossum in branch '3.6':
Issue #24452: Make webbrowser support Chrome on Mac OS X (merge 3.5->3.6)
https://hg.python.org/cpython/rev/64a38f9aee21

--
nosy: +python-dev

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e2cce65e522 by Guido van Rossum in branch 'default':
Issue #24452: Make webbrowser support Chrome on Mac OS X (merge 3.6->3.7)
https://hg.python.org/cpython/rev/4e2cce65e522

--

___
Python tracker 

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



[issue28427] WeakValueDictionary next bug (with multithreading)

2016-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
keywords: +patch
Added file: http://bugs.python.org/file45083/issue28427.patch

___
Python tracker 

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



[issue28433] Add sorted (ordered) containers

2016-10-13 Thread Марк Коренберг

New submission from Марк Коренберг:

I mean mutable containers that are always sorted when iterating over them.
i.e.

* SortedSet (sorted unique elements, implemented using (rb?)tree instead of 
hash)
* SortedList (sorted elements, the same as SortedSet, but without uniquiness 
constraint) - actually a (rb?)tree, not a list (i.e. not an array)
* SortedDict (sorted by key when interating) - like C++'s ordered_map


There are many implementations in the net, like:

https://bitbucket.org/bcsaller/rbtree/
http://newcenturycomputers.net/projects/rbtree.html
https://sourceforge.net/projects/pyavl/
http://www.grantjenks.com/docs/sortedcontainers/

and also in pip:

pip3 search sorted | grep -Ei '[^a-z]sorted'

I think it should be one standardized implementation of such containers in 
CPython.

For example, C++ has both ordered_map and unorderd_map.

P.S. Did not found if such issue was raised earlier.

--
components: Library (Lib)
messages: 278586
nosy: mmarkk
priority: normal
severity: normal
status: open
title: Add sorted (ordered) containers
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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-10-13 Thread Guido van Rossum

Guido van Rossum added the comment:

OK, this seems to work for me. I'm, applying this to 3.5, 3.6 and 3.7 (default).

--
nosy: +gvanrossum

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread thewtex

Changes by thewtex :


--
nosy: +thewtex

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread Nathaniel Smith

Nathaniel Smith added the comment:

> Would it be possible to upgrade the "manylinux" compiler (take a more recent 
> GCC version)?

No, it's possible :-(. 4.8.2 is the very most modern version of GCC you can use 
if you want to build binaries to run on CentOS/RHEL 5. (And "binaries should 
run on CentOS/RHEL 5" is the definition of manylinux1.)

I am a bit confused that gcc 4.8.2 is having trouble with cpython 3.6.0b2, 
though -- supposedly anything newer than gcc 4.3 should be fine with it. And 
yet. One possibility is that something funny is going on inside the build 
scripts Robin's using and that Python's ./configure is somehow finding and 
using the platform compiler (gcc 4.1) even though the first "gcc" in $PATH is 
4.8.2, which would make this a false alarm.

--
nosy: +njs

___
Python tracker 

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



[issue28432] Fix doc of PyUnicode_EncodeLocale

2016-10-13 Thread Xiang Zhang

New submission from Xiang Zhang:

The doc of PyUnicode_EncodeLocale conflicts between signature and content. In 
content, it should be *unicode* not *str*.

--
assignee: docs@python
components: Documentation
files: PyUnicode_EncodeLocale_doc.patch
keywords: patch
messages: 278583
nosy: docs@python, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: Fix doc of PyUnicode_EncodeLocale
versions: Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45081/PyUnicode_EncodeLocale_doc.patch

___
Python tracker 

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



[issue28431] socket gethostbyaddr returns IPv6 names for 127.0.0.1

2016-10-13 Thread R. David Murray

R. David Murray added the comment:

I believe that you will find that the same thing happens if you call 
gethostbyaddr from C.  So this either isn't a bug, or it isn't a bug in Python 
:)

(Correct me if I'm wrong; I don't have time to actually test it myself, but 
gethostbyaddr is a fairly thing wrapper.)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2016-10-13 Thread orban

orban added the comment:

Here this is a patch to added vietnamese codec tcvn. I am not sure about the 
name of the codecs...tcvn5712, tcvn5712_3 ?
test_xml_etree, test_codesc, test_unicode is running. Is it enough for the doc?

--
keywords: +patch
nosy: +matorban
Added file: http://bugs.python.org/file45080/issue21081.patch

___
Python tracker 

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



[issue28431] socket gethostbyaddr returns IPv6 names for 127.0.0.1

2016-10-13 Thread Nick Carboni

New submission from Nick Carboni:

socket.gethostbyaddr seems to be equating loopback addresses regardless of IP 
protocol version.

In both versions tested (2.7.5 and 3.4.3) the ordering of the entries in my 
/etc/hosts file determines the result I get, rather than what address I'm 
querying for.

For example:

/etc/hosts:

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

result:

>>> import socket
>>> socket.gethostbyaddr("127.0.0.1")
('localhost', ['localhost.localdomain', 'localhost6', 
'localhost6.localdomain6'], ['127.0.0.1'])

Then if I change the ordering of the entries in /etc/hosts as follows:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

result:

>>> import socket
>>> socket.gethostbyaddr("127.0.0.1")
('localhost', ['localhost.localdomain', 'localhost4', 
'localhost4.localdomain4'], ['127.0.0.1'])

I would expect gethostbyaddr to return only the hostnames associated with the 
given address regardless of the ordering of the entries in /etc/hosts.

--
messages: 278580
nosy: carbonin
priority: normal
severity: normal
status: open
title: socket gethostbyaddr returns IPv6 names for 127.0.0.1
type: behavior
versions: Python 2.7, Python 3.4

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread Cassaigne

Cassaigne added the comment:

I add a crosslink to WEXITSTATUS function. According David Murray advices.

--
Added file: http://bugs.python.org/file45079/issue22635-4.diff

___
Python tracker 

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



[issue8376] Tutorial offers dangerous advice about iterators: “__iter__() can just return self”

2016-10-13 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue27141] Fix collections.UserList shallow copy

2016-10-13 Thread Bar Harel

Bar Harel added the comment:

Bumposaurus Rex

--

___
Python tracker 

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



[issue17305] IDNA2008 encoding missing

2016-10-13 Thread Sam Whited

Changes by Sam Whited :


--
nosy: +SamWhited

___
Python tracker 

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



[issue26513] platform.win32_ver() broken in 2.7.11

2016-10-13 Thread Scott Leerssen

Scott Leerssen added the comment:

It looks like there may still be an issue in Python 2.7.12 on Windows 2008 R2 
(Datacenter Edition).  On an Amazon instance (tried t2.micro and m4.large) we 
are seeing the following:

In 2.7.11 (correct)
C:\Users\Administrator>python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import platform
>>> platform.win32_ver()
('2008ServerR2', '6.1.7601', 'SP1', u'Multiprocessor Free')
>>>

In 2.7.12 (incorrect)
C:\Users\Administrator>python
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.win32_ver()
('7', '6.1.7601', 'SP1', u'Multiprocessor Free')
>>>

--
nosy: +Scott.Leerssen

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread R. David Murray

R. David Murray added the comment:

Ah, I see.  So the function's name is wrong now, too :(.

OK, I guess using exitcode is more accurate then.  Surprising that the original 
docs did not link to os.WEXITSTATUS.  Maybe we could make a crosslink in the 
versionchanged entry to os.WEXITSTATUS in the way of explanation of what the 
difference between 'status' and 'exitcode' is?  Otherwise the versionchanged 
sentence doesn't seem to tell the reader anything.

--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread STINNER Victor

STINNER Victor added the comment:

issue22635-3.diff: LGTM.


R. David Murray: "I disagree with Victor.  The name of the function is 
"getstatusoutput".  I think the docs should continue to use (status, output) as 
the names for the return values."

In Python, we use "exitcode" or "returncode" names for the exit code, but 
"status" for the thing that should be parsed with os.WEXITSTATUS(status).

Just to contradict me, the manual page of the exit() function uses the "status" 
term: "void _exit(int status);", not "code".

"The clarification is that 'status' is now the raw return code, not the shifted 
return code that it formerly returned."

Sorry, I'm confused by this sentence :-) getstatusoutput() returns an exit 
code, the parameter of exit(), no more the annoying "status" thing that should 
be passed to os.WEXITSTATUS(status) to get a regular exit code.

"Also, the patch should include a new test that checks the actual return code 
value."

FYI acassaigne is a newcomer currently in a sprint and this issue is tagged as 
Documentation. I suggest to first push a doc change and then add an unit test.

--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread R. David Murray

R. David Murray added the comment:

I disagree with Victor.  The name of the function is "getstatusoutput".  I 
think the docs should continue to use (status, output) as the names for the 
return values.  The clarification is that 'status' is now the raw return code, 
not the shifted return code that it formerly returned.

Also, the patch should include a new test that checks the actual return code 
value.

--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread Cassaigne

Cassaigne added the comment:

According to the Victor's review, I remove "Pay attention" words and change 
exit code by returncode.

--
Added file: http://bugs.python.org/file45078/issue22635-3.diff

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
stage: patch review -> commit review

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

I have reviewed your patch, seems to be fine. And thank you for your new patch 
without the --git flag.

--

___
Python tracker 

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



[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-10-13 Thread R. David Murray

Changes by R. David Murray :


--
stage: patch review -> needs patch

___
Python tracker 

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



[issue28291] urllib/urllib2 AbstractDigestAuthHandler locked to retried count of 5

2016-10-13 Thread R. David Murray

R. David Murray added the comment:

Well, it's missing doc changes and tests, so even if it is still applicable it 
isn't ready for merge yet.

--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread Cassaigne

Cassaigne added the comment:

I improve the patch a little bit, following the recommendations of the 
Stinner's review. 
I replace "status" mention by "exit code".

--
Added file: http://bugs.python.org/file45077/issue22635-2.diff

___
Python tracker 

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



[issue28430] asyncio: C implemeted Future cause Tornado test fail

2016-10-13 Thread INADA Naoki

New submission from INADA Naoki:

https://travis-ci.org/tornadoweb/tornado/jobs/167252979

--
assignee: inada.naoki
components: asyncio
messages: 278569
nosy: gvanrossum, inada.naoki, yselivanov
priority: high
severity: normal
status: open
title: asyncio: C implemeted Future cause Tornado test fail
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



[issue28427] WeakValueDictionary next bug (with multithreading)

2016-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +fdrake, serhiy.storchaka
versions: +Python 3.7 -Python 3.3

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread STINNER Victor

STINNER Victor added the comment:

> Don't want to add too much noise, but this issue also affects the manylinux 
> project build compiler (gcc 4.8.2).

Would it be possible to upgrade the "manylinux" compiler (take a more recent 
GCC version)?

--

___
Python tracker 

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



[issue28429] ctypes fails to import with grsecurity's TPE

2016-10-13 Thread Glandos

New submission from Glandos:

When using a grsecurity kernel with TPE enabled, the following happens with an 
untrusted user:

Python 3.5.2+ (default, Sep 22 2016, 12:18:14) 
[GCC 6.2.0 20160914] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import CDLL
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/ctypes/__init__.py", line 537, in 
_reset_cache()
  File "/usr/lib/python3.5/ctypes/__init__.py", line 276, in _reset_cache
CFUNCTYPE(c_int)(lambda: None)
MemoryError

And grsecurity complains:

oct. 13 13:52:27 belette64 kernel: grsec: From XX.XX.XX.XX: denied untrusted 
exec (due to not being in trusted group and file in world-writable directory) 
of /tmp/#38928416 by /usr/bin/python3.5[python3:19125] uid/euid:1000/1000 
gid/egid:1000/1000, parent /usr/bin/fish[fish:17716] uid/euid:1000/1000 
gid/egid:1000/1000
oct. 13 13:52:27 belette64 kernel: grsec: From XX.XX.XX.XX: denied untrusted 
exec (due to not being in trusted group and file in world-writable directory) 
of /var/tmp/#15073678 by /usr/bin/python3.5[python3:19125] uid/euid:1000/1000 
gid/egid:1000/1000, parent /usr/bin/fish[fish:17716] uid/euid:1000/1000 
gid/egid:1000/1000
oct. 13 13:52:27 belette64 kernel: grsec: From XX.XX.XX.XX: denied untrusted 
exec (due to not being in trusted group and file in world-writable directory) 
of /dev/shm/#4422450 by /usr/bin/python3.5[python3:19125] uid/euid:1000/1000 
gid/egid:1000/1000, parent /usr/bin/fish[fish:17716] uid/euid:1000/1000 
gid/egid:1000/1000
oct. 13 13:52:27 belette64 kernel: grsec: From XX.XX.XX.XX: denied untrusted 
exec (due to not being in trusted group and file in world-writable directory) 
of /dev/shm/#4422452 by /usr/bin/python3.5[python3:19125] uid/euid:1000/1000 
gid/egid:1000/1000, parent /usr/bin/fish[fish:17716] uid/euid:1000/1000 
gid/egid:1000/1000
oct. 13 13:52:29 belette64 kernel: grsec: From XX.XX.XX.XX: denied untrusted 
exec (due to not being in trusted group and file in world-writable directory) 
of /dev/shm/#4425509 by /usr/bin/python3.5[python3:19125] uid/euid:1000/1000 
gid/egid:1000/1000, parent /usr/bin/fish[fish:17716] uid/euid:1000/1000 
gid/egid:1000/1000

However, even if the solution should be to put the user in the trusted group, 
it seems that the involved call is just a workaround for Win64 platforms.
The program I used is using ctypes through the xattr package, which never used 
CFUNCTYPE. Is it possible to wrap this "fake call" into a try block?

--
components: ctypes
messages: 278567
nosy: Glandos
priority: normal
severity: normal
status: open
title: ctypes fails to import with grsecurity's TPE
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread INADA Naoki

INADA Naoki added the comment:

Since this patch renames file, I used --git option of hg diff.
But Rietvelt seems doesn't accept git format patch.

Attached patch is same to previous, but generated without --git option.

--
Added file: http://bugs.python.org/file45076/asyncio-speedups2.patch

___
Python tracker 

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



[issue17182] signal.default_int_handler should set signal number on the raised exception

2016-10-13 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Basically it allows you to call sys.exit() with the right error code.

--

___
Python tracker 

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



[issue17182] signal.default_int_handler should set signal number on the raised exception

2016-10-13 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Hi Antoine and Mark,

What's the interest of this "feature" ?

Thank you

--
nosy: +matrixise

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

I have read and tested your patch (with the tests) and you can merge it. But I 
can't review it via retvield.

--

___
Python tracker 

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



[issue22635] subprocess.getstatusoutput changed behavior in 3.4 (maybe 3.3.4?)

2016-10-13 Thread Cassaigne

Cassaigne added the comment:

I correct the doc concerning subprocess.getstatusoutput(cmd) function.
More specifically the part on examples and I add a quick explanation about how 
are manage the return code.

--
keywords: +patch
nosy: +acassaigne
versions: +Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45075/issue22635.diff

___
Python tracker 

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



[issue28428] Rename _futures module to _asyncio

2016-10-13 Thread INADA Naoki

INADA Naoki added the comment:

Because:

* The "futures" name is used in concurrent.futures too. This module is for 
asyncio.
* Currently, this module has only Future class. But there are several ideas 
about adding C speedup to improve asyncio performance. (e.g. buffer slicing and 
Task class).

See also: http://bugs.python.org/issue26081#msg278368

--

___
Python tracker 

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



  1   2   >