[issue45198] __set_name__ documentation not clear about its usage with non-descriptor classes

2021-09-14 Thread xitop
New submission from xitop : The object.__set_name__() function (introduced in Python 3.6 by PEP-487) is mentioned in the "what's new " summary as an extension to the descriptor protocol [1] and documented in the "implementing descriptors" section [2]. However, t

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2021-09-14 Thread xitop
xitop added the comment: 2nd anniversary. Any reaction from developers would be appreciated. Thank you. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2020-12-25 Thread xitop
xitop added the comment: Python 3.9.1 is affected too. -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue38085> ___ ___ Python-bug

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2019-12-28 Thread xitop
xitop added the comment: Please, could some experienced Python developer take a look at this issue reported more than 3 month ago? -- ___ Python tracker <https://bugs.python.org/issue38

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2019-10-21 Thread xitop
xitop added the comment: Same problem also in Python 3.6.8 and the new 3.8.0. -- versions: +Python 3.6, Python 3.8 ___ Python tracker <https://bugs.python.org/issue38

[issue38085] Interrupting class creation in __init_subclass__ may lead to incorrect isinstance() and issubclass() results

2019-09-10 Thread xitop
New submission from xitop : An exception in __init__subclass__ leads under certain circumstances to wrong isinstance() and issubclass() results. The exception probably leaves Python internal data in inconsistent state. Here is a demonstration program from Stack Overflow: --- begin -- from

[issue34993] asyncio.streams.FlowControlMixin should be part of the API

2018-10-15 Thread xitop
New submission from xitop : This issue report is based on a SO question "How to create asyncio stream reader/writer for stdin/stdout?", its answer and comments. Link: https://stackoverflow.com/q/52089869/5378816 The key point is that two unidirectional pipes should be used th

[issue34748] Incorrect HTML link in functools.partial

2018-09-20 Thread xitop
New submission from xitop : There is a minor issue regarding the page https://docs.python.org/3/library/functools.html The description of functools.partial starts with text "Return a new partial object" which contains a link. This link does not point to the partial object (#parti

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread xitop
xitop <reg.b...@poti.sk> added the comment: You are right. It is 'key in d', not 'object in d'. (Thanks for you patience. I'm sorry I did not get it right earlier.) -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread xitop
xitop <reg.b...@poti.sk> added the comment: While I do fully agree with not documenting all exceptions, I'd like to point out a major difference in the case of "unhashable in dict". It differs from the general case where an exception means the function is unable to return a m

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread xitop
New submission from xitop <reg.b...@poti.sk>: I'd like to suggest an addition to the documentation of the "key in dict" operation. Current version found at https://docs.python.org/3/library/stdtypes.html#dict says only: --- key in d Return True if d has a key

[issue32675] dict.__contains__(unhashable) raises TypeError where False was expected

2018-01-26 Thread xitop
New submission from xitop <reg.b...@poti.sk>: The `dict.__contains()` function does not fully comply with the description in the "Data Model" section of the official documentation, which states: "__contains__(self, item) ... Should return true if item is in self, false o