[Tutor] unichr not working as expected

Alan Gauld alan.gauld at btinternet.com
Mon Jul 22 20:52:50 CEST 2013


On 22/07/13 19:14, Jim Mooney wrote:

>          zark += unichr(ord(x)-45)
>
> unichr() arg not in range(0x10000) (narrow Python build)


What if ord() is returning a value less than 45?
What does unichr() do with negative vales?>

Just a guess...


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list