Naming Conventions, Where's the Convention Waldo?

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Jul 12 06:42:51 EDT 2010


rantingrick wrote:
> On Jul 11, 3:03 am, "Günther Dietrich" <gd.use... at spamfence.net>
> wrote:
>
>   
>> So, it is not a disadvantage that the functions you listed above are
>> named in this way. In the contrary, it is an advantage, as it keeps
>> newcomers from using stupid variable names.
>>     
>
> "int" for an Integer is stupid?
> "list" for a List is stupid?
> "str" for a String is stupid?
>
> What am i missing?
>   
def func154():
    int32 = 24
    list18 = [int32, 14]
    str14 = ""
    for int89 in list18:
       if int89 == int32 or int89 == 88:
          str14 = "I am missing everything"
    if str14:
       print str14

 >>> func154()
 >>> "I am missing everything"


JM



More information about the Python-list mailing list