]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401)
authorJack DeVries <58614260+jdevries3133@users.noreply.github.com>
Thu, 29 Jul 2021 11:40:29 +0000 (07:40 -0400)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 11:40:29 +0000 (13:40 +0200)
commit50de8f74f8e92b20e76438c22b6a8f91afd6df75
tree6f24738fae18584f424020f7306a59a9261740bb
parente5c8ddb1714fb51ab1defa24352c98e0f01205dc
bpo-44752: Make rlcompleter not call `@property` methods (GH-27401)

* rlcompleter was calling these methods to identify whether to add
  parenthesis to the completion, based on if the attribute is callable.
* for property objects, completion with parenthesis are never desirable.
* property methods with print statements behaved very strangely, which
  was especially unfriendly to language newcomers. <tab> could suddenly
  produce output unexpectedly.
Lib/rlcompleter.py
Lib/test/test_rlcompleter.py
Misc/NEWS.d/next/Library/2021-07-27-22-11-29.bpo-44752._bvbrZ.rst [new file with mode: 0644]