on keeping things civil (was: Encoding of Python 2 string literals)

2015-07-23 Thread Cameron Simpson
On 22Jul2015 22:26, Mark Lawrence wrote: He refuses point blank to contribute to core python because he will not sign the CLA. So? That's his prerogative. There's plenty of work I won't undertake because of the conditions attached. Defense/military comes to mind as an example. Oh, and ple

Re: Encoding of Python 2 string literals

2015-07-22 Thread Chris Angelico
On Thu, Jul 23, 2015 at 3:58 PM, dieter wrote: > Steven D'Aprano writes: >> On Wed, 22 Jul 2015 08:17 pm, anatoly techtonik wrote: >>> Is there a way to know encoding of string (bytes) literal >>> defined in source file? For example, given that source: >>> >>> # -*- coding: utf-8 -*- >>>

Re: Encoding of Python 2 string literals

2015-07-22 Thread dieter
Steven D'Aprano writes: > On Wed, 22 Jul 2015 08:17 pm, anatoly techtonik wrote: >> 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("текст") >> >>

Re: Encoding of Python 2 string literals

2015-07-22 Thread dieter
Mark Lawrence writes: > On 22/07/2015 11:17, anatoly techtonik wrote: > ... > 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

Re: Encoding of Python 2 string literals

2015-07-22 Thread Steven D'Aprano
On Thursday 23 July 2015 07:26, Mark Lawrence wrote: > Oh, and please do not tell me to back off. It has been show in recent > days that despite my problems I have contributed to core Python. > Anatoly will contribute to any project, but on his terms, and his terms > only. I have never done any

Re: Encoding of Python 2 string literals

2015-07-22 Thread Mark Lawrence
On 22/07/2015 21:52, Terry Reedy wrote: On 7/22/2015 4:30 PM, Mark Lawrence wrote: http://www.scons.org/ In particular, he is, according to him, trying to make it possible to port it to 3.x. This is something we both want to encourage. I didn't say he was banned from the Python list. He has

Re: Encoding of Python 2 string literals

2015-07-22 Thread Terry Reedy
On 7/22/2015 4:30 PM, Mark Lawrence wrote: Mark, back off. Anatoly has not been banned from python-list. In fact, he has been told that this is where he *should* post, and not be off-topic. Not having the temperament to work with core Python, he is, apparently, trying to contribute to another

Re: Encoding of Python 2 string literals

2015-07-22 Thread Mark Lawrence
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 t

Re: Encoding of Python 2 string literals

2015-07-22 Thread Chris Angelico
On Thu, Jul 23, 2015 at 12:38 AM, Steven D'Aprano wrote: > On Wed, 22 Jul 2015 08:17 pm, 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 librar

Re: Encoding of Python 2 string literals

2015-07-22 Thread Steven D'Aprano
On Wed, 22 Jul 2015 08:17 pm, 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 Entr

Re: Encoding of Python 2 string literals

2015-07-22 Thread Laura Creighton
In a message of Wed, 22 Jul 2015 22:39:56 +1000, Chris Angelico writes: >On Wed, Jul 22, 2015 at 8:17 PM, anatoly techtonik wrote: >> Is there a way to know encoding of string (bytes) literal >> defined in source file? For example, given that source: >> >> # -*- coding: utf-8 -*- >> from l

Re: Encoding of Python 2 string literals

2015-07-22 Thread Chris Angelico
On Wed, Jul 22, 2015 at 8:17 PM, anatoly techtonik wrote: > 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() cons

Encoding of Python 2 string literals

2015-07-22 Thread anatoly techtonik
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 stri