This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: add `false` and `true` keywords (aliases) for True and False
Type: enhancement Stage: resolved
Components: Versions: Python 3.10
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: parsampsh, serhiy.storchaka
Priority: normal Keywords:

Created on 2021-02-20 16:39 by parsampsh, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24600 closed parsampsh, 2021-02-20 17:10
Messages (5)
msg387411 - (view) Author: parsa mpsh (parsampsh) * Date: 2021-02-20 16:39
I wanna add `true` and `false` aliases for `True` and `False` keywords.
Currently my patch is ready and i will send it as a pull request.
msg387412 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-02-20 16:47
You can do it yourself in your script. It is just two lines of code:

true = True
false = False

And it works in all Python versions!
msg387414 - (view) Author: parsa mpsh (parsampsh) * Date: 2021-02-20 16:50
Yes i know this. but why not adding this builtin? this will be very nice!
msg387415 - (view) Author: parsa mpsh (parsampsh) * Date: 2021-02-20 16:55
Also adding them as builtin keywords will make it easier than setting them as variables. in this method, we should define them everywhere, but in builtin type its easy.
msg387420 - (view) Author: parsa mpsh (parsampsh) * Date: 2021-02-20 17:20
I sent a PR: https://github.com/python/cpython/pull/24600
History
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87442
2021-02-20 17:20:02parsampshsetmessages: + msg387420
2021-02-20 17:10:44parsampshsetpull_requests: + pull_request23378
2021-02-20 16:55:59parsampshsetmessages: + msg387415
2021-02-20 16:50:00parsampshsetmessages: + msg387414
2021-02-20 16:47:33serhiy.storchakasetstatus: open -> closed

nosy: + serhiy.storchaka
messages: + msg387412

resolution: rejected
stage: resolved
2021-02-20 16:39:15parsampshcreate