On Sun, May 23, 2010 at 03:35:10PM -0400, Dominique Brazziel wrote: > Things keep getting odder and odder with this text parsing. > match_suffix.get_text(end) returns u'NNNNNN', where 'NNNNNN' is the > bug number, but when the string is appended to the url_prefix, > the 'u' appears in the first position of the array. Both cases > the 'u' is unquoted: > > [ DEBUG:UpdateManager.Util.procesinfo] url_prefix is > 'http://bugs.debian.org/' > [ DEBUG:UpdateManager.Util.procesinfo] match_suffix = <GtkTextIter at > 0xa620018> match_end = <GtkTextIter at 0xa620050> > [ DEBUG:UpdateManager.Util.procesinfo] > match_suffix.get_text(match_end) returned u'531668' <== u before bug # > [ DEBUG:UpdateManager.Util.procesinfo] url after appending > match_suffix.get_text is u'http://bugs.debian.org/531668' <== huh? > > Is the u some sort of attribute, for instance denoting underline?
http://docs.python.org/tutorial/introduction.html#unicode-strings -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
pgpSYnvwuCEER.pgp
Description: PGP signature

