Re: Unicode in Python

2014-05-07 Thread wxjmfauth
Le jeudi 1 mai 2014 19:21:14 UTC+2, rand...@fastmail.us a écrit : > On Mon, Apr 28, 2014, at 4:57, wxjmfa...@gmail.com wrote: > > > Python 3: > > > - It missed the unicode shift. > > > - Covering the whole unicode range will not make > > > Python a unicode compliant product. > > > > Please c

Re: Unicode in Python

2014-05-03 Thread wxjmfauth
Le vendredi 2 mai 2014 05:50:40 UTC+2, Michael Torrie a écrit : > Can't help but feed the troll... forgive me. > > > > On 04/28/2014 02:57 AM, wxjmfa...@gmail.com wrote: > > > Python 2.7 + cp1252: > > > - Solid and coherent system (nothing to do with the Euro). > > > > Except that cp1252 is

Re: Unicode in Python

2014-05-01 Thread Michael Torrie
Can't help but feed the troll... forgive me. On 04/28/2014 02:57 AM, wxjmfa...@gmail.com wrote: > Python 2.7 + cp1252: > - Solid and coherent system (nothing to do with the Euro). Except that cp1252 is not unicode. Perhaps some subset of unicode can be encoded into bytes using cp1252. But if it

Re: Unicode in Python

2014-05-01 Thread random832
On Mon, Apr 28, 2014, at 4:57, wxjmfa...@gmail.com wrote: > Python 3: > - It missed the unicode shift. > - Covering the whole unicode range will not make > Python a unicode compliant product. Please cite exactly what portion of the unicode standard requires operations with all characters to be han

Re: Unicode in Python

2014-04-28 Thread wxjmfauth
Le samedi 26 avril 2014 15:38:29 UTC+2, Ian a écrit : > On Apr 26, 2014 3:46 AM, "Frank Millman" wrote: > > > > > > > > > wrote in message > > > news:03bb12d8-93be-4ef6-94ae-4a02789ae...@googlegroups.com... > > > > == > > > > > > > > I wrote once 90 % of Python 2 apps (a generic te

Re: Unicode in Python

2014-04-27 Thread Rustom Mody
On Wednesday, April 23, 2014 11:29:13 PM UTC+5:30, Rustom Mody wrote: > On Wednesday, April 23, 2014 1:23:00 PM UTC+5:30, Steven D'Aprano wrote: > > On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: > > > On the other hand when/if a keyboard mapping is defined in which the > > > characters th

Re: Unicode in Python

2014-04-27 Thread wxjmfauth
Le samedi 26 avril 2014 15:38:29 UTC+2, Ian a écrit : > On Apr 26, 2014 3:46 AM, "Frank Millman" wrote: > > > > > > > > > wrote in message > > > news:03bb12d8-93be-4ef6-94ae-4a02789ae...@googlegroups.com... > > > > == > > > > > > > > I wrote once 90 % of Python 2 apps (a generic te

Re: Unicode in Python

2014-04-26 Thread Ian Kelly
On Apr 26, 2014 3:46 AM, "Frank Millman" wrote: > > > wrote in message > news:03bb12d8-93be-4ef6-94ae-4a02789ae...@googlegroups.com... > > == > > > > I wrote once 90 % of Python 2 apps (a generic term) supposed to > > process text, strings are not working. > > > > In Python 3, that's 100

Re: Unicode in Python

2014-04-26 Thread Ben Finney
"Frank Millman" writes: > wrote […] > It is quite frustrating when you make these statements without > explaining what you mean by 'not working'. Please do not engage “wxjmfauth” on this topic; he is an amply-demonstrated troll with nothing tangible to back up his incessant complaints about Un

Re: Unicode in Python

2014-04-26 Thread Frank Millman
wrote in message news:03bb12d8-93be-4ef6-94ae-4a02789ae...@googlegroups.com... > == > > I wrote once 90 % of Python 2 apps (a generic term) supposed to > process text, strings are not working. > > In Python 3, that's 100 %. It is somehow only by chance, apps may > give the illusion they

Re: Unicode in Python

2014-04-26 Thread wxjmfauth
== I wrote once 90 % of Python 2 apps (a generic term) supposed to process text, strings are not working. In Python 3, that's 100 %. It is somehow only by chance, apps may give the illusion they are properly working. jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode in Python

2014-04-23 Thread Rustom Mody
On Wednesday, April 23, 2014 1:23:00 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: > > On the other hand when/if a keyboard mapping is defined in which the > > characters that are commonly needed are available, it is reasonable to > > expect the ∨,∧ t

Re: Unicode in Python

2014-04-23 Thread Steven D'Aprano
On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: > On the other hand when/if a keyboard mapping is defined in which the > characters that are commonly needed are available, it is reasonable to > expect the ∨,∧ to cost no more than 2 strokes each (ie about as much as > an 'A'; slightly more t

Re: Unicode in Python

2014-04-23 Thread Steven D'Aprano
On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: > perhaps the following is the most preferred? > > COMPUTE YEAR MODULO 4 EQUALS 0 AND YEAR MODULO 100 NOT EQUAL TO ZERO OR > YEAR MODULO 100 EQUAL to 0 > > IOW COBOL is desirable? If the only choices are COBOL on one hand and the mutant off

Re: Unicode in Python

2014-04-23 Thread Chris Angelico
On Wed, Apr 23, 2014 at 4:57 PM, Rustom Mody wrote: > In such a (default) setup typing a ∧ or ∨ is not possible at all without > something like a char-picker and at best has an ergonomic cost that is an > order of magnitude higher than the 'naturally available' characters. > > On the other hand wh

Re: Unicode in Python

2014-04-23 Thread Rustom Mody
On Wednesday, April 23, 2014 11:22:33 AM UTC+5:30, Steven D'Aprano wrote: > 25 Unicode characters down, 1114000+ to go :-) The question would arise if there was some suggestion to add 1114000(+) characters to the syntactic/lexical definition of python. IOW while its true that unicode is a charac

Re: Unicode in Python

2014-04-22 Thread Ben Finney
Devin Jeanpierre writes: > But yes, typing out the special characters is annoying. I just use > words. I use words that describe the meaning, where feasible. > The only downside to using words is, how do you specify capital > versus lowercase letters? Why do you need to, for an identifier? If

Re: Unicode in Python

2014-04-22 Thread Devin Jeanpierre
On Tue, Apr 22, 2014 at 10:52 PM, Steven D'Aprano wrote: > There's not just the keyboard mapping. There's the mental cost of knowing > which keyboard mapping you need ("is it Greek, Hebrew, or maths > symbols?"), the cost of remembering the mapping from the keys you see on > the keyboard to the ke

Re: Unicode in Python

2014-04-22 Thread Steven D'Aprano
On Tue, 22 Apr 2014 22:31:41 -0700, Rustom Mody wrote: > Chris Angelico wrote: >> it's impossible for most people to type (and programming with a palette >> of arbitrary syntactic tokens isn't my idea of fun)... > > Where's the suggestion to use a "palette of arbitrary tokens" ? > > I just tried

Re: Unicode in Python

2014-04-22 Thread Chris Angelico
On Wed, Apr 23, 2014 at 3:31 PM, Rustom Mody wrote: > Chris Angelico wrote: >> it's impossible for most people to type (and programming with a palette >> of arbitrary syntactic tokens isn't my idea of fun)... > > Where's the suggestion to use a "palette of arbitrary tokens" ? > > I just tried a gr

Re: Unicode in Python

2014-04-22 Thread Rustom Mody
On Tuesday, April 22, 2014 12:01:06 PM UTC+5:30, Ian wrote: > On Apr 22, 2014 12:01 AM, "Rustom Mody" wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive > > written up some unicode ideas that have been discussed here in the > > last couple of weeks: > > http://blog.languager.org/2014/0

Re: Unicode in Python

2014-04-22 Thread wxjmfauth
Le mardi 22 avril 2014 14:21:40 UTC+2, Steven D'Aprano a écrit : > On Tue, 22 Apr 2014 02:07:58 -0700, wxjmfauth wrote: > > > > > Le mardi 22 avril 2014 08:30:45 UTC+2, Rustom Mody a écrit : > > >> > > >> > > >> > > >> > > > @ rusy > > > > > >> "Ive reworded it to make it clear that

Re: Unicode in Python

2014-04-22 Thread Steven D'Aprano
On Tue, 22 Apr 2014 02:07:58 -0700, wxjmfauth wrote: > Le mardi 22 avril 2014 08:30:45 UTC+2, Rustom Mody a écrit : >> >> >> >> > @ rusy > >> "Ive reworded it to make it clear that I am referring to the > character-sets and not encodings." > > Very good, excellent, comment. An healthy coding

Re: Unicode in Python

2014-04-22 Thread Rustom Mody
On Tuesday, April 22, 2014 12:01:06 PM UTC+5:30, Ian wrote: > On Apr 22, 2014 12:01 AM, "Rustom Mody" wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive > > written up some unicode ideas that have been discussed here in the > > last couple of weeks: > > http://blog.languager.org/2014/0

Re: Unicode in Python

2014-04-22 Thread wxjmfauth
Le mardi 22 avril 2014 08:30:45 UTC+2, Rustom Mody a écrit : > > > @ rusy > "Ive reworded it to make it clear that I am referring to the character-sets and not encodings." Very good, excellent, comment. An healthy coding scheme can only work properly with a unique characters set and the codin

Re: Unicode in Python

2014-04-21 Thread Chris Angelico
On Tue, Apr 22, 2014 at 4:30 PM, Rustom Mody wrote: > So instead of using λ (0x3bb) we should use 𝝀 (0x1d740) or something > thereabouts like 𝜆 You still have a major problem: How do you type that? It gives you very little advantage over the word "lambda", it introduces readability issues, it'

Re: Unicode in Python

2014-04-21 Thread Rustom Mody
On Tuesday, April 22, 2014 11:41:56 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 21 Apr 2014 20:57:39 -0700, Rustom Mody wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive written up some > > unicode ideas that have been discussed here in the last couple of weeks: > > http://blog.lang

Re: Unicode in Python

2014-04-21 Thread Chris Angelico
On Tue, Apr 22, 2014 at 4:18 PM, Rustom Mody wrote: > Ive reworded it to make it clear that I am referring to the character-sets and > not encodings. It's still false, and was in Python 2 as well. The only difference on that front is that, in the absence of an encoding cookie, Python 2 defaults t

Re: Unicode in Python

2014-04-21 Thread Ian Kelly
On Apr 22, 2014 12:01 AM, "Rustom Mody" wrote: > As a unicode user (ok wannabe unicode user :D ) Ive > written up some unicode ideas that have been discussed here in the > last couple of weeks: > > http://blog.languager.org/2014/04/unicoded-python.html I'm reminded of this satire: http://www.ojoh

Re: Unicode in Python

2014-04-21 Thread Rustom Mody
On Tuesday, April 22, 2014 11:14:17 AM UTC+5:30, Terry Reedy wrote: > On 4/21/2014 11:57 PM, Rustom Mody wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive > > written up some unicode ideas that have been discussed here in the > > last couple of weeks: > > http://blog.languager.org/201

Re: Unicode in Python

2014-04-21 Thread Steven D'Aprano
On Mon, 21 Apr 2014 20:57:39 -0700, Rustom Mody wrote: > As a unicode user (ok wannabe unicode user :D ) Ive written up some > unicode ideas that have been discussed here in the last couple of weeks: > > http://blog.languager.org/2014/04/unicoded-python.html What you are talking about is not ha

Re: Unicode in Python

2014-04-21 Thread Terry Reedy
On 4/21/2014 11:57 PM, Rustom Mody wrote: As a unicode user (ok wannabe unicode user :D ) Ive written up some unicode ideas that have been discussed here in the last couple of weeks: http://blog.languager.org/2014/04/unicoded-python.html "With python 3 we are at a stage where python programs