anomaly
Ian Kelly
ian.g.kelly at gmail.com
Tue May 12 14:07:47 EDT 2015
On Tue, May 12, 2015 at 9:34 AM, zipher <dreamingforward at gmail.com> wrote:
>> * when it comes to built-in functions (e.g. sum, map, pow)
>> and types (e.g. int, str, list) there are significant and
>> important use-cases for allowing shadowing;
>
> Name one "significant and important" use case for shadowing built-in types. Functions, I don't have a problem with, but types are more fundamental than functions.
try:
str = unicode # Use the Python 3 name.
except NameError:
pass
More information about the Python-list
mailing list