naming convention for scalars, lists, dictionaries ...

Skip Montanaro skip at pobox.com
Mon Feb 28 13:28:06 EST 2005


    beliavsky> Since Python does not have declarations, I wonder if people
    beliavsky> think it is good to name function arguments according to the
    beliavsky> type of data structure expected, with names like "xlist" or
    beliavsky> "xdict".

In general, no.  I think variable names should reflect what they are naming,
not their types.

Skip



More information about the Python-list mailing list