anomaly
BartC
bc at freeuk.com
Mon May 11 07:55:25 EDT 2015
On 11/05/2015 02:18, zipher wrote:
>> Huh? Python has plenty of keywords, and indeed, none of them can be
>> redefined or shadowed. But you would gain nothing (and lose a bit or
>> dynamic-language freedom) by making int a keyword.
>
> Okay. I apologize for thinking in C and believing "int" was a keyword.
Even C allows this:
#define int(a) strlen(a)
(although it doesn't like #define int strlen for some reason.)
--
Bartc
More information about the Python-list
mailing list