Re: [Tutor] Problem with complex strings as key for a shelve-Dictionary

2009-09-06 Thread Kent Johnson
On Sun, Sep 6, 2009 at 6:20 AM, markus kossner wrote: > Dear all, > I have a Problem with complex strings as keys in a shelve Object: > > #!/usr/bin/python > import shelve > test=shelve.open('testshelve') > test={ > 'CCN1c2c2/C(=C2/S/C(=N\c3ccc(Cl)cc3)N(C)C2=O)C1=O':int(0), > 'CN1/C(=N\c2ccc(C

[Tutor] Problem with complex strings as key for a shelve-Dictionary

2009-09-06 Thread markus kossner
Dear all, I have a Problem with complex strings as keys in a shelve Object: #!/usr/bin/python import shelve test=shelve.open('testshelve') test={ 'CCN1c2c2/C(=C2/S/C(=N\c3ccc(Cl)cc3)N(C)C2=O)C1=O':int(0), 'CN1/C(=N\c2ccc(Cl)cc2)S/C(=C2\C(=O)Nc3c32)C1=O':int(20), 'c1cc2c(cc1)N(CCCl)C(=O)/C2