# Guard Sniffer's type checking against builds that exclude complex()
try:
complex
exceptNameError:
complex=float
I don't think that it is true today (the code itself is 20 years old).
Now complex is a documented part of the builtins. If it is missing, half of the stdlib will be broken.
sobolevn commentedNov 9, 2022
•
edited by bedevere-bot
These lines assume that there might be
NameErrorin some cases while accessingcomplex:cpython/Lib/csv.py
Lines 168 to 172 in 0124b5d
I don't think that it is true today (the code itself is 20 years old).
Now
complexis a documented part of the builtins. If it is missing, half of the stdlib will be broken.I've sent the PR with the removal of these lines.
complexalways exists #99282The text was updated successfully, but these errors were encountered: