Why no warnings when re-assigning builtin names?

Chris Angelico rosuav at gmail.com
Tue Aug 16 04:16:51 EDT 2011


On Tue, Aug 16, 2011 at 2:32 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> On Tue, 16 Aug 2011 08:15 am Chris Angelico wrote:
>
>> It's actually masking, not reassigning. That may make it easier or
>> harder to resolve the issue.
>
> The usual term is "shadowing builtins", and it's a feature, not a bug :)

Sorry, shadowing. And yeah, that's why I said that "fixing" this
"issue" was the domain of linting scripts.

ChrisA



More information about the Python-list mailing list