Menu

#28 implicit literal string concatenation

open
nobody
None
5
2005-07-17
2005-07-17
No

I found a very annoying bug in some of my code due to
a missing comma in a list defined as follows:

>>> [
... 'dir1/','dir2/'
... 'dir3/'
... ]
['dir1/', 'dir2/dir3/']

Note the missing comma are 'dir2/'

>>> 'foo/''bar'
'foo/bar'

>>> 'foo''bar'
'foobar'

It would be nice if pychecker detected one of these
cases.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.