Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP
sturlamolden
sturlamolden at yahoo.no
Wed Jul 7 15:51:24 EDT 2010
On 7 Jul, 21:47, "Martin v. Loewis" <mar... at v.loewis.de> wrote:
> That would partially defeat the purpose, namely it would require the
> compiler to put the size into a variable in memory, and possibly prevent
> optimizations from taking place that rely on constant propagation
> (depending on how smart the compiler is).
Also after reading carefully what Linus said, it would still be
incorrect if n is a complex expression. So, an inline function is the
"correct" one here.
More information about the Python-list
mailing list