Python & unicode
P at draigBrady.com
P at draigBrady.com
Tue Jan 11 05:21:16 EST 2005
Michel Claveau - abstraction méta-galactique non triviale en fuite
perpétuelle. wrote:
> Hi !
>
> If Python is Ok with Unicode, why the next script not run ?
>
> # -*- coding: utf-8 -*-
>
> def режим(toto):
> return(toto*3)
Because the coding is only supported in string literals.
But I'm not sure exactly why. It would be nice to do:
import math
π = math.pi
--
Pádraig Brady - http://www.pixelbeat.org
--
More information about the Python-list
mailing list