Message410673
Sigh. You are right. I will close this tomorrow.
This also means that 'set()' is not guaranteed to return an empty built-in set. I did think of this workaround for that:
>>> (empty:={None}).clear()
>>> empty
set()
Go ahead and propose something on python-ideas if you want, pointing out that only displays (and comprehensions) are guaranteed to result in a builtin. |
|
Date |
User |
Action |
Args |
2022-01-16 04:40:13 | terry.reedy | set | recipients:
+ terry.reedy, steven.daprano, serhiy.storchaka |
2022-01-16 04:40:13 | terry.reedy | set | messageid: <1642308013.75.0.81316278947.issue46393@roundup.psfhosted.org> |
2022-01-16 04:40:13 | terry.reedy | link | issue46393 messages |
2022-01-16 04:40:13 | terry.reedy | create | |
|