On Mon, Jul 06, 2009 at 04:12:09PM -0000 or thereabouts, Michael Gorven wrote:
> On Sunday 05 July 2009 21:36:54 Martin Thompson wrote:
> > Do you need a "u" in front of the strings?
>
> YES! It makes it a Unicode string instead of a bytestring. All strings should
> be Unicode unless they are entering or leaving the application. (Python 3
> makes Unicode strings the default, by the way.)
It was more of the "It think you *do* need a unicode string, but I'm
not sure if something weird is going on as it looks like 'old-stuff'
import code" - hence the query rather than a statement :)
On Mon, Jul 06, 2009 at 04:12:09PM -0000 or thereabouts, Michael Gorven wrote:
> On Sunday 05 July 2009 21:36:54 Martin Thompson wrote:
> > Do you need a "u" in front of the strings?
>
> YES! It makes it a Unicode string instead of a bytestring. All strings should
> be Unicode unless they are entering or leaving the application. (Python 3
> makes Unicode strings the default, by the way.)
It was more of the "It think you *do* need a unicode string, but I'm
not sure if something weird is going on as it looks like 'old-stuff'
import code" - hence the query rather than a statement :)
Cheers,
Martin
-- 365*24* 60*60); return 42;
<email address hidden>
int deep_thought(void) {
sleep (7.5e6*
}