[Pyrex] python 2.2 support?

Josiah Carlson jcarlson at uci.edu
Thu Aug 3 22:04:06 UTC 2006


If you need Python 2.2 series support, try Python 2.2.2; that was when
True and False were added to the language.

As for support; the developers /of/ Python don't support the Python 2.2
series anymore, so perhaps your expectations of Pyrex working in a
language no longer supported by its creators is a bit presumptuous.

 - Josiah

"didier deshommes" <dfdeshom at gmail.com> wrote:
> 
> Allo all,
> I am trying to compile a Pyrex program using python2.2 on a Mac (OSX
> 10.2), and I'm getting these errors:
> "NameError: global name 'False' is not defined".
> 
> These appear in Pyrex/Compiler/Code.py and Main.py. As I understand
> it, Python 2.2 has no True, False, only 1 and 0. Has support for
> Python 2.2 dropped from Pyrex? I was under the impression that Pyrex
> had support Python2.2 and higher...
> 
> After placing
> True =1
> False = 0
> 
> on top of the offending files, my pyrex program fails to compile. The
> same error happens for primes.pyx:
> 
> primes.c:176: parse error before "initprimes"
> primes.c:176: warning: type defaults to `int' in declaration of `initprimes'
> primes.c:176: warning: data definition has no type or storage class
> primes.c:177: parse error before "initprimes"
> primes.c:177: warning: return type defaults to `int'
> 
> Anyone know what's going on?
> 
> Cheers,
> didier
> 
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex




More information about the Pyrex mailing list