Encoding of Python 2 string literals
Mark Lawrence
breamoreboy at yahoo.co.uk
Wed Jul 22 16:30:07 EDT 2015
On 22/07/2015 11:17, anatoly techtonik wrote:
> Hi,
>
> Is there a way to know encoding of string (bytes) literal
> defined in source file? For example, given that source:
>
> # -*- coding: utf-8 -*-
> from library import Entry
> Entry("текст")
>
> Is there any way for Entry() constructor to know that
> string "текст" passed into it is the utf-8 string?
>
> I need to better prepare SCons for Python 3 migration.
>
> Please, CC.
> --
> anatoly t.
>
>
Without question you are the most appalling person who should by
definition be excluded from the Python community. You refuse point
blank to contribute to the bug tracker, you've already been banned from
several mailing lists, but still you have the audacity to ask for help.
How dare you?
@Rick Johnston considering the above and the fact that I have spoken up
in support of you in the past regarding your knowledge of tkinter/IDLE,
I'm perfectly happy to call a truce regarding our litle spiff over the
last couple of days. Virtual handshake over the Atlantic Ocean?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-list
mailing list