Newbie: question regarding references and class relationships

Chris Angelico rosuav at gmail.com
Mon Jun 10 18:54:07 EDT 2013


On Tue, Jun 11, 2013 at 8:39 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2013-06-10, Terry Jan Reedy <tjreedy at udel.edu> wrote:
>
>> Another principle similar to 'Don't add extraneous code' is 'Don't
>> rebind builtins'.
>
> OK, we've all done it by accident (especially when starting out), but
> are there people that rebind builtins intentionally?

There are times when you don't care what you shadow, like using id for
a database ID.

ChrisA



More information about the Python-list mailing list