Default scope of variables
Peter Otten
__peter__ at web.de
Thu Jul 4 02:48:59 EDT 2013
Steven D'Aprano wrote:
> Well, if I ever have more than 63,000,000 variables[1] in a function,
> I'll keep that in mind. Until then, I'm pretty sure you can trivially
> avoid name clashes with globals that you wish to avoid clashing with.
> [1] Based on empirical evidence that Python supports names with length at
> least up to one million characters long, and assuming that each character
> can be an ASCII letter, digit or underscore.
That would be 63**10**6. Or 53*63**999999 if I were to nitpick...
More information about the Python-list
mailing list