list and implicit continuation may cause bugs in Python programs

Roman Suzi rnd at
Thu Jul 12 10:00:35 EDT 2001


Do not forget commas:

list =[ "update", "y", "m", "d", "y1", "m1", "d1", "event", "url", 
         "preview" ]

list =[ "update", "y", "m", "d", "y1", "m1", "d1", "event", "url"
         "preview" ]

Or Python will silently make:
['update', 'y', 'm', 'd', 'y1', 'm1', 'd1', 'event', 'urlpreview']

Does PyChecker check for these kind of things?

Sincerely yours, Roman A.Suzi
 - Petrozavodsk - Karelia - Russia - mailto:rnd at -

More information about the Python-list mailing list