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

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset aac54ef2b30eb27f6756bbf0cdb8be2e64f2cce0 by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)

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

2021-09-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2021-09-18 Thread miss-islington
miss-islington added the comment: New changeset 7ab114bf1fa0f28ee267a4c69e597cc49a186a14 by Miss Islington (bot) in branch '3.10': bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)

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

2021-09-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26847 pull_request: https://github.com/python/cpython/pull/28444 ___ Python tracker

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

2021-09-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 94b462686b7dfabbd69cc9401037d736d71c4dc2 by Raymond Hettinger in branch 'main': bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)

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

2021-09-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +26844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28439 ___ Python tracker

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

2021-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: You are correct that __set_name__ works for non-descriptor classes as well. The docs for it should be moved out of the "Implementing Descriptors" section. Also, it should have a non-descriptor example. -- assignee: docs@python -> rhettinger

[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, the PEP itself states that it