inheriting from long on Python2 or int on Python3

Chris Angelico rosuav at gmail.com
Sat Mar 21 20:59:32 EDT 2020


On Sun, Mar 22, 2020 at 11:31 AM duncan smith <duncan at invalid.invalid> wrote:
> but (tentatively) opted for something that avoided creating new names at
> the module level. If it doesn't look too terrible I might stick with it
> for now (although I am quite tempted to go back to the above). Thanks
> Skip and Chris.

Nah, nothing wrong with creating module-level names for things that
would otherwise be builtins. It's like how a __future__ directive
applies to the module it's in. Go ahead! It's a nice practical easy
way to do things.

ChrisA


More information about the Python-list mailing list