Case sensitivity

John Roth johnroth at ameritech.net
Fri Feb 21 11:45:22 EST 2003


"Alex Martelli" <aleax at aleax.it> wrote in message
news:D%r5a.212131$0v.5936105 at news1.tin.it...
> Lexy Zhitenev wrote:
>    ...
> > Beginners should get used to this style of programming, like they
get used
> > to block idents in Python. That is my opinion.
>
> So introduce a beginner to the excellent and very useful
> module mx.DateTime and explain to him, or her, how and
> why he or she needs to memorize (or continuosly check or
> try) that the functions named (e.g.) 'today', 'localtime',
> or 'add_century' MUST be lowercase, while (e.g.) functions
> 'TimeFrom' and 'Age' and 'Time' MUST be mixed-case.  Pah.

It seems to be an excellent opportunity for a homily on the
virtues of a consistent nameing convention.

I suppose most of us know the utility of a bad example in
illustrating a point.

John Roth








More information about the Python-list mailing list