[Pyrex] enum regression 0.9.5?
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Jan 28 23:21:16 UTC 2007
Anders Gustafsson wrote:
> This patch seems to help, but I don't know enough pyrex internals to
> tell if it is the correct solution.
>
> --- Pyrex-0.9.5/Pyrex/Compiler/ExprNodes.py 2007-01-27
> 05:21:03.000000000 +0100
> +++ Pyrex-0.9.5-enumcmpfix/Pyrex/Compiler/ExprNodes.py 2007-01-28
> 16:14:45.366599915 +0100
> @@ -2594,6 +2594,8 @@
> elif (type1.is_numeric and type2.is_numeric
> and op not in ('is', 'is_not')):
> return 1
> + elif (type1.is_enum and type2.is_enum):
> + return 1
> else:
> return 0
That looks like it'll make any two enum types compatible,
which doesn't sound right. I'll look into this.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list