Re: [Tutor] unicode nightmare

2010-11-10 Thread Alan Gauld
"danielle davout" wrote I simplify it to v = u'\u0eb4' X = (1,) gen = ((v ,v) for x in X for y in X) What can be so wrong in this line, around it to give the 1lined file ໄ:ໄ where ໄ "is" not u'\u0eb4' but u'\u0ec4' though a direct printing looks OK The code will produce a one line file wi

[Tutor] unicode nightmare

2010-11-10 Thread danielle davout
Hi, I really badly need any start of explanation .. Please help me ! I have got a list of 64 generators from which I generate files. 58 give what I expected 1 is getting me mad, not the first, not the last the fifth... I simplify it to v = u'\u0eb4' X = (1,) gen = ((v ,v) for x in X for y in X)