[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall
Change by Semyon : -- nosy: +MarSoft ___ Python tracker <https://bugs.python.org/issue20907> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37911] Minor error in PEP567 code example
New submission from Semyon : In PEP-567 there is a code example in `contextvars.Context` section (https://www.python.org/dev/peps/pep-0567/#contextvars-context): ``` # Print all context variables and their values in 'ctx': print(ctx.items()) ``` But `ctx.items()` doesn't return a list of tuples as probably expected by this code; instead it returns a `items` object which, unlike `dict_items`, does not contain any sensible `repr` or `str`. So this print statement will output something like ``. I think this code example should be chaned to something like `print(list(ctx.items()))`. -- assignee: docs@python components: Documentation messages: 350129 nosy: MarSoft, docs@python priority: normal severity: normal status: open title: Minor error in PEP567 code example versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue37911> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34415] Typo in logging.Formatter docstring
New submission from Semyon : There is a typo in the docstring for logging.Formatter: > default value of "%s(message)\\n" is used. I am sure it should be different (and in sync with the actual value): > default value of "%(message)s\\n" is used. The problem is in py2.7, py3.7 and most likely other versions. -- components: Library (Lib) messages: 323618 nosy: MarSoft priority: normal severity: normal status: open title: Typo in logging.Formatter docstring versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue34415> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34394] Descriptors HowTo doesn't mention __set_name__
New submission from Semyon : There is a great HowTo document for descriptors https://github.com/python/cpython/blob/master/Doc/howto/descriptor.rst But it doesn't even mention the __set_name__ method which was added in py3. And it lists the descriptor protocol without that method as if it is the full protocol. The only way to know about that method is to go to the link for any other method and then you'll see that there is a __set_name__. I think the guide sholud be updated to include at least information about existence of __set_name__. -- assignee: docs@python components: Documentation messages: 323479 nosy: MarSoft, docs@python priority: normal severity: normal status: open title: Descriptors HowTo doesn't mention __set_name__ versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue34394> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34036] ModuleNotFoundError: No module named '_ctypes' when install Python 3.7 on Linux
New submission from Semyon Levin : make install failed with File "/tmp/tmp2gwe2ma_/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/utils/glibc.py", line 3, in File "/common/dev/slevin/tools/Python-3.7.0/Lib/ctypes/__init__.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes' make: *** [install] Error 1 I used PKG_CONFIG_PATH in config and LIBFFI_INCLUDEDIR was created correctly in Makefile. How to configure location for libffi.a ? -- messages: 320998 nosy: semkin priority: normal severity: normal status: open title: ModuleNotFoundError: No module named '_ctypes' when install Python 3.7 on Linux ___ Python tracker <https://bugs.python.org/issue34036> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34036] ModuleNotFoundError: No module named '_ctypes' when install Python 3.7 on Linux
Change by Semyon Levin : -- components: +Installation versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue34036> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33315] Allow queue.Queue to be used in type annotations
Semyon Proshev <s-pros...@ya.ru> added the comment: I'm not sure that I'll be able to make a PR quickly, so feel free to do it -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33315> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33315] Allow queue.Queue to be used in type annotations
Semyon Proshev <s-pros...@ya.ru> added the comment: I had been thinking about `__class_getitem__` when the issue were created. I suspected it's not difficult to implement and it follows PEP 560. So I'm +1 for `__class_item__`, quotes and postponed evaluation are also ok. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33315> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33315] Allow queue.Queue to be used in type annotations
New submission from Semyon Proshev <s-pros...@ya.ru>: from queue import Queue a: Queue[int] This code throws a TypeError in runtime. But its pyi stub allows to use it in such a way (https://github.com/python/typeshed/blob/master/stdlib/3/queue.pyi) I'd suggest to update classes in queue module to allow them to be used in type annotations. -- components: Library (Lib) messages: 315488 nosy: sproshev priority: normal severity: normal status: open title: Allow queue.Queue to be used in type annotations versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33315> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com