Confessions of a Python fanboy

Tim Rowe digitig at gmail.com
Fri Jul 31 12:54:23 EDT 2009


2009/7/31 Steven D'Aprano <steve at remove-this-cybersource.com.au>:
> On Thu, 30 Jul 2009 18:47:04 +0100, Tim Rowe wrote:
>
>> That and the fact that I couldn't stop laughing for long enough to learn
>> any more when I read in the Pragmatic Programmer's Guide that "Ruby,
>> unlike less flexible languages, lets you alter the value of a constant."
>> Yep, as they say "Bug" = "Undocumented feature"!
>
> That's no different from Python's "constant by convention". We don't even
> get a compiler warning!

We don't actually *declare* that something is constant and then have
that declaration ignored. Python doesn't lie to us, although (as in
any language) a programmer might.

-- 
Tim Rowe



More information about the Python-list mailing list