[issue31567] Inconsistent documentation around decorators

2017-10-11 Thread Daisuke Miyakawa
Change by Daisuke Miyakawa <d.miyak...@gmail.com>: -- keywords: +patch pull_requests: +3935 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31567] Inconsistent documentation around decorators

2017-09-24 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: I can see inconsistency in library documentation around functions that are suitable for decorators. I'd like to clarify if it is based on my misunderstanding, or a real documentation problem. Examples: - https://docs.python.org/3/library/functions.html

[issue30831] Inconsistent or wrong documentation around Asynchronous Context Manager

2017-07-03 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: I was reading the following doc and got confused. https://docs.python.org/3.7/reference/datamodel.html#object.__aenter__ According to the API doc itself (and original PEP 492), __aenter__() "is semantically similar to the __enter__(), with only diffe

[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-15 Thread Daisuke Miyakawa
Changes by Daisuke Miyakawa <d.miyak...@gmail.com>: -- versions: +Python 3.6 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28713] Recent tutorial for recent Python3 still uses IOError.

2016-11-15 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: https://docs.python.org/3.5/tutorial/errors.html for arg in sys.argv[1:]: try: f = open(arg, 'r') except IOError: print('cannot open', arg) else: print(arg, 'has', len(f.readlines()), 'lines') f.close

[issue28630] setup.py bdist_egg --without-source-files does not allow console_script to run as expected

2016-11-07 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: I'm trying to prepare an egg file "without source code". I works mostly, while console_script does not. Here's a sample project for it, in which the function "greeting.greeting.greeting()" prints "Greeting!". https://github

[issue27724] PEP3119 inconsintent with actual CPython impl

2016-08-10 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: Python 3.5.2 (and Python 2.7.12) uses Py_TPFLAGS_IS_ABSTRACT while PEP 3119 menttions "Py_TPFLAGS_ABSTRACT" for it. At some point had the name of the flag been changed without modifying PEP? -- assignee: docs@python components: Doc