Default scope of variables
steve+comp.lang.python at pearwood.info
Thu Jul 4 17:52:22 CEST 2013
On Thu, 04 Jul 2013 03:06:25 -0400, Dave Angel wrote:
> On 07/04/2013 01:32 AM, Steven D'Aprano wrote:
>> Well, if I ever have more than 63,000,000 variables in a function,
>> I'll keep that in mind.
>>  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.
> Well, the number wouldn't be 63,000,000. Rather it'd be 63**1000000
> I probably have it wrong, but I think that looks like:
> variables. (The number has 180 digits)
I think that's more than 63,000,000 :-)
Thanks Dave and Peter for the correction.
More information about the Python-list