list and implicit continuation may cause bugs in Python programs

Roman Suzi rnd at onego.ru
Thu Jul 12 16:00:35 CEST 2001


FYI:

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 onego.ru -
 





More information about the Python-list mailing list