Menu

#56 Negative indexing in MultiColumnList.InsertItems

open
nobody
None
5
2006-07-12
2006-07-12
Anonymous
No

A typo in multicolumnlist.py prevents
MultiColumnList.InsertItems from disallowing improper
negative indexing:

# Allow negative indexing to mean from the end of the list
if position < 0:
position = numitems + position
# But only allow from the start of the list on
if position < 0:
postiion = 0 <-- *** typo ***

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.