Hungarian notation (was RE: variable naming...)

Jan Dries jdries at mail.com
Tue May 1 17:18:46 EDT 2001


> Indeed, those are just common conventions regardless of Hungarian
> notation.  You can tell it's not Hungarian notation when you see
> variations:
> 
>     for i in range(100):
>         for j in range(100):
>             ...

IIRC, the use of i, j, k, ... for integers (and f, g, ... for real
numbers) has nothing to do with Hungarian notation but comes from
FORTRAN where variables names that began with i, j etc. were implicitely
declared int, those starting with f, g etc. real. That's why an old
FORTRAN joke says "God is real, unless if explicitely declared integer".

Jan




More information about the Python-list mailing list