python 3 constant

Chris Angelico rosuav at gmail.com
Sat Jun 25 06:59:17 EDT 2011


2011/6/25 Waldek M. <wm at localhost.localdomain>:
> Dnia Fri, 24 Jun 2011 08:00:06 +1000, Chris Angelico napisał(a):
>>> Yup, got the sarcasm, that's for sure.
>>> But your point was...?
>>
>> That if you want something, there's usually a way to get it.
>> Sometimes, giving someone what they want - or showing them how to get
>> it - makes it obvious to them whether or not they really want it.
>>
>> Chris Angelico
>
> Usually, it does. But presenting me with a fake and
> obviously-not-logical-and-useful version of constants didn't really
> say anything about why is having constants such a bad idea :-)
> Just like presenting me with a rotten apple doesn't prove
> anything general about that fruit.

In all seriousness, sometimes adding features to one language is best
done by dropping to another. This is probably not as useful in
interpreted languages like Python, but I have on multiple occasions
run code through the C preprocessor as part of my compilation process,
as per my example.

ChrisA



More information about the Python-list mailing list