[issue46732] object.__bool__ docstring is wrong

2022-02-12 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +29460 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31301 ___ Python tracker ___

[issue46732] object.__bool__ docstring is wrong

2022-02-12 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : >>> None.__bool__.__doc__ 'self != 0' This isn't true, since None does not equal 0. I suggest rewording it to "True if self else False". -- assignee: Jelle Zijlstra components: Interpreter Core messages: 413141 nosy: Jelle Zijlstra priority: