[Python-ideas] Python Numbers as Human Concept Decimal System

Antoine Pitrou solipsis at pitrou.net
Tue Mar 11 16:45:28 CET 2014


Le 11/03/2014 16:26, Paul Moore a écrit :
>
> It feels to me as if what we're discovering here is why dynamic
> scoping is a bad thing. If context was lexically scoped, all of this
> concern about "action at a distance" and user code impacting library
> behaviour would go away.

I don't think that's the problem. What you call "dynamic scoping" is a 
feature here, and "lexical scoping" wouldn't solve the issue: simply, 
the parser and compiler run before executing any Python code, so they 
can't see any changes in decimal precision triggered by a library call.

Regards

Antoine.




More information about the Python-ideas mailing list