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

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

[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

[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. -- __

[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.p

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

[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, ncogh

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

[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. -- __

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

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

[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 ___ _

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

[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': [me

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

[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.p

<    1   2