Python's 8-bit cleanness deprecated?

Neil Hodgson nhodgson at bigpond.net.au
Wed Feb 5 07:40:26 EST 2003


Dale Strickland-Clark:

> Is everything bracketed by -*- on line 1-2 now parsed?

   The '-*-' isn't needed. PEP 263 states:
the first or second line must match the regular expression
"coding[:=]\s*([\w-_.]+)".
   so a first line of
"coding=utf-8"
   should work

   Neil






More information about the Python-list mailing list