basic python questions

Mark Peters mpeters42 at gmail.com
Sat Nov 18 18:58:06 CET 2006


nateastle at gmail.com wrote:

>     dict = {}

As a general rule you should avoid variable names which shadow built in
types (list, dict, etc.).  This can cause unexpected behavior later on.

Also, variable names should be more descriptive of their contents.

Try word_dict or some such variant




More information about the Python-list mailing list