Case Sensitive, Multiline Comments
Szabolcs Nagy
nszabolcs at gmail.com
Fri May 27 08:57:46 EDT 2005
i found case sensitivity very useful
1. variables can be stored in a dict (think about __dict__, globals())
and dict type should be case sensitive
2. It's necessary when i write short scripts and i use one letter
names. (eg. when i playing with linear algebra i always use a,b,c for
vectors and A,B,C for matrices). I dont want to think about "more than
one letter" names when i run that script only once. And usually this is
the case with python (at least when i use it in interpreted mode).
3. i write sometimes:
class Foo:
...
foo = Foo()
and i think it's readable and makes sense.
4. actually i never wanted to use 'foo', 'Foo' and 'FOO' for the same
variable and i can't imagine a situation when it's useful. it makes the
code less readable so i think the language should force the programmer
not to use different names for the same variable.
nsz
More information about the Python-list
mailing list