constant in python?

liam lcampbell at ubytes.com
Fri Aug 17 16:48:53 EDT 2001


i found a similar example on the net i was just making sure. seems kinda
alot of work just to get a constant. even perl has "use constant" and thats
about the ugliest language around :)
"Alex Martelli" <aleaxit at yahoo.com> wrote in message
news:9ljt9u02oa9 at enews2.newsguy.com...
> "liam" <lcampbell at ubytes.com> wrote in message
> news:Bmef7.269051$qv3.55520813 at nnrp5-w.sbc.net...
> > is there a data type like the const in c/c++? ive been combing through
the
> > doc and it doesnt seem to have one or am i missing something somewhere?
>
> A reasonably popular solution is my "Constants in Python" recipe at:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65207
>
>
> Alex
>
>
>
>





More information about the Python-list mailing list