PEP: Defining Unicode Literal Encodings (revision 1.1)

Roman Suzi rnd at onego.ru
Sat Jul 14 10:11:36 EDT 2001


On Sat, 14 Jul 2001, M.-A. Lemburg wrote:

>directive unicodeencoding = 'latin-1'

>#!/usr/local/python
>""" Module Docs...
>"""
>directive unicodeencoding = 'latin-1'
>...
>u = "HИllТ WЖrld !"
>...

Is there any need for new directive like that?
Maybe it is possible to use Emacs-style "coding" directive
in the second line instead:

#!/usr/bin/python
# -*- coding=utf-8 -*-
...


Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Saturday, July 14, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "A mainframe: The biggest PC peripheral available." _/






More information about the Python-list mailing list