[Python-Dev] School IIb?

Jim Jewett jimjjewett at gmail.com
Tue Jun 27 19:42:20 CEST 2006


> On compilation, freeze any cases that meet the School-II conditions
> and have a trustworthy __hash__ method into a dictionary.

As long as the semantics are based on if-elif, you have to support
 if (optimizable)
 elif (has a side effect)
 elif (optimizable)
 elif (not optimizable)
 elif (optimizable)
 elif (has a side effect)
 elif (optimizable)
where the four "optimizable" cases are actually in four separate dictionaries.
-jJ


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /