Open jonathanslenders opened 8 months ago
I would prefer builtins.eggs
over __builtins__.eggs
, that's the actual name of the module, and:
As an implementation detail, most modules have the name
__builtins__
made available as part of their globals. The value of__builtins__
is normally either this module or the value of this module’s__dict__
attribute. Since this is an implementation detail, it may not be used by alternate implementations of Python. - https://docs.python.org/3/library/builtins.html
I'd love to ban usage of certain builtins using the "banned-api" (TID251) rule. Something like this: