This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Benjamin Krala
Recipients Benjamin Krala
Date 2019-04-01.14:25:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554128739.17.0.108677031645.issue36498@roundup.psfhosted.org>
In-reply-to
Content
Following code snipped leads to an IndexError in the last line.
It basically puts EN_cmw into a dict where is a split on '->'.
It avoid the bug you can change the 1 into -1.
(By definition it shouldnt make a difference)


EN_cmw = '''abandonned->abandoned
 aberation->aberration
 abilityes->abilities
 abilties->abilities
 abilty->ability
 abondon->abandon
 abbout->about
 '''
EN_cmw = EN_cmw.split('\n')
EN_cmw = [string.strip() for string in EN_cmw]


{
    line.split('->')[0]: line.split('->')[1] for line in EN_cmw
}
History
Date User Action Args
2019-04-01 14:25:39Benjamin Kralasetrecipients: + Benjamin Krala
2019-04-01 14:25:39Benjamin Kralasetmessageid: <1554128739.17.0.108677031645.issue36498@roundup.psfhosted.org>
2019-04-01 14:25:39Benjamin Kralalinkissue36498 messages
2019-04-01 14:25:39Benjamin Kralacreate