[Python-3000] sets in P3K?

Greg Wilson gvwilson at cs.utoronto.ca
Fri Apr 28 20:21:02 CEST 2006


> > Greg Wilson:
> > I'd like to say:
> >  x = 123 and x's value will never ever change
> > Opens up lots of optimization possibilities, and makes code much safer.

> Jim Jewett:
> So now were back to looking for a const marker.

Greg Wilson:
Yep.  But I'm happy to stick to arguing about set literals... ;-)

> Do you want to limit it to literals, or do you want to also say
>     (magic constant) x = y
> meaning that x is bound do the current value of y?

I know, I know: "const type * p" vs. "type const * p"... *sigh*

Thanks,
Greg


More information about the Python-3000 mailing list