Naming Conventions, Where's the Convention Waldo?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sun Jul 11 20:06:23 EDT 2010
On Sun, 11 Jul 2010 00:26:36 -0700, rantingrick wrote:
> Another source of asininity seems to be the naming conventions of the
> Python language proper! True/False start with an upper case and i
> applaud this. However str, list, tuple, int, float --need i go on...?--
> start with lowercase.
>
> Q: Well what the hell is your problem Rick. Who cares right?
>
> WRONG, I tell you what my problem is. Now i cannot "wisely" use
> variables like...
>
> str="this is a string"
> list = [1,2,3]
> def make_random_objs(range=10)
> def show_message(str)
> int = 12
Yes. So what? You can't wisely use variables like:
True = "rantingrick is an obnoxious loudmouth"
None = "the problem he is describing"
Nor can you wisely use variables like:
len = len("something")
chr = chr(48)
[...]
> Just thoughts.
But not deep thoughts.
--
Steven
More information about the Python-list
mailing list