Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ethan Furman
On 01/05/2014 06:23 PM, Ethan Furman wrote: Using my own project [1] as a reference [1] https://pypi.python.org/pypi/dbf -- https://mail.python.org/mailman/listinfo/python-list

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Tim Chase
On 2014-01-06 15:51, Chris Angelico wrote: > >>> data = b"\x43\x6c\x67\x75\x62\x61" # is there an easier way to > >>> turn a hex dump into a bytes literal? Depends on how you source them: # space separated: >>> s1 = "43 6c 67 75 62 61" >>> ''.join(chr(int(pair, 16)) for pair in s1.split()) 'Clgu

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/5/14 11:26 PM, Terry Reedy wrote: On 1/5/2014 8:16 PM, Ned Batchelder wrote: OK, let's see what we got from three core developers on this list: To me, the following is a partly unfair summary. I apologize, I'm sure there were details I skipped in my short summary. - Antoine dismiss

informal #python2.8 channel on freenode

2014-01-06 Thread Martijn Faassen
Fellow Pythoneers, I've started an informal channel "#python2.8" on freenode. It's to discuss the potential for a Python 2.8 version -- to see whether there is interest in it, what it could contain, how it could facilitate porting to Python 3, who would work on it, etc. If you are interested i

Re: function to split strings and lists on predicate

2014-01-06 Thread Dave Angel
On Mon, 06 Jan 2014 06:48:11 +, Mark Lawrence wrote: I came across this over the weekend http://paddy3118.blogspot.co.uk/2013/10/unifying-pythons-string-and-lis t.html. I couldn't come up with a solution to the fsplit function that seemed in any way cleaner. What can our nest of avid

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 12:39, Ned Batchelder wrote: I'm not talking about the technical details of bytes and Unicode. I'm talking about making customers happy. Simply scrap PEP 404 and the currently unhappy customers will be happy as they'll be free to do all the work they want on Python 2.8, as my

word replacing in a paragraph

2014-01-06 Thread Frank Cui
Hey guys, I'm trying to automate a process by initially creating a standard template and then replace some text fields with variable values. [for example, "DATE" in the paragraph will be replaced by the current date value. it doesn't have to be a literal word of "DATE", "DATE" in "TESTDATE" can

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Gene Heskett
On Monday 06 January 2014 08:52:42 Ned Batchelder did opine: [...] > You are still talking about whether Armin is right, and whether he > writes well, about flaws in his statistics, etc. I'm talking about the > fact that an organization (Python core development) has a product > (Python 3) that is

Re: word replacing in a paragraph

2014-01-06 Thread David Froger
Quoting Frank Cui (2014-01-06 15:01:25) > Hey guys, > > I'm trying to automate a process by initially creating a standard template and > then replace some text fields with variable values. > > [for example, "DATE" in the paragraph will be replaced by the current date > value. it doesn't have to b

Re: word replacing in a paragraph

2014-01-06 Thread leo kirotawa
Since it is for a template you can round the keyword to be replaced , something like $data$ and then just string.replace('$data','1234') On Mon, Jan 6, 2014 at 12:01 PM, Frank Cui wrote: > Hey guys, > > I'm trying to automate a process by initially creating a standard template > and then rep

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 14:32, Gene Heskett wrote: On Monday 06 January 2014 08:52:42 Ned Batchelder did opine: [...] You are still talking about whether Armin is right, and whether he writes well, about flaws in his statistics, etc. I'm talking about the fact that an organization (Python core developmen

Re: word replacing in a paragraph

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 1:01 AM, Frank Cui wrote: > I'm trying to automate a process by initially creating a standard template > and then replace some text fields with variable values. > > [for example, "DATE" in the paragraph will be replaced by the current date > value. it doesn't have to be a li

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ethan Furman
On 01/05/2014 06:37 PM, Dan Stromberg wrote: The argument seems to be "3.x doesn't work the way I'm accustomed to, so I'm not going to use it, and I'm going to shout about it until others agree with me." The argument is that a very important, if small, subset a data manipulation become very pa

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 2:10 AM, Ethan Furman wrote: > On 01/05/2014 06:55 PM, Chris Angelico wrote: >> >> >> It can't be both things. It's either bytes or it's text. > > > Of course it can be: > > 000: 0372 0106 6100 1d00 .r..a... > 010: 000

Re: [OT] Migrating from non-free programs to LibreOffice (was: "More About Unicode in Python 2 and 3")

2014-01-06 Thread Grant Edwards
On 2014-01-06, Chris Angelico wrote: >> Right. I think shifting people to LibreOffice is an excellent and >> realistic step toward imcreasing people's software and data freedom. > > Yeah. Which is why I do it. But the other night, my mum was trying to > lay out her book in LO, and was having some

Re: word replacing in a paragraph

2014-01-06 Thread Jean-Michel Pichavant
- Original Message - > Hey guys, > I'm trying to automate a process by initially creating a standard > template and then replace some text fields with variable values. > [for example, "DATE" in the paragraph will be replaced by the current > date value. it doesn't have to be a literal

Re: [ANN] gg_scrapper -- scrapping of the Google Groups

2014-01-06 Thread Grant Edwards
On 2014-01-05, Ethan Furman wrote: > Mat??j, > > Thanks for your efforts! > > However, you should only have one 'p' in scraping and scraper. ;) Rats. I thought he had figured out a way to scrap GG. -- Grant Edwards grant.b.edwardsYow! Like I always say

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Steven D'Aprano
Roy Smith wrote: > In article , > Chris Angelico wrote: > >> It can't be both things. It's either bytes or it's text. > > I've never used Python 3, so forgive me if these are naive questions. > Let's say you had an input stream which contained the following hex > values: > > $ hexdump data >

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Antoine Pitrou
Ned Batchelder nedbatchelder.com> writes: > > You can look through his problems and decide that he's "wrong," or that > he's "ranting," but that doesn't change the fact that Python 3 is > encountering friction. What happens when a significant fraction of your > customers are "wrong"? Well, y

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 3:24 AM, Steven D'Aprano wrote: > If you don't want to use the codec, you can do it by hand: > > def rot13(astring): > result = [] > for c in astring: > i = ord(c) > if ord('a') <= i <= ord('m') or ord('A') <= i <= ord('M'): > i += 13 >

Re: [OT] Migrating from non-free programs to LibreOffice (was: "More About Unicode in Python 2 and 3")

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 2:53 AM, Grant Edwards wrote: > Yea, I think laying out a book with something like MS Word or > LibreOffice is nuts. Depending on her formatting needs, a > lighter-weight mark-up language (something like asciidoc) might suite: > > http://asciidoc.org/ > http://en.wikip

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 3:29 AM, Antoine Pitrou wrote: > People don't use? According to available figures, there are more downloads of > Python 3 than downloads of Python 2 (Windows installers, mostly): > http://www.python.org/webstats/ > Unfortunately, that has a massive inherent bias, because th

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Gene Heskett
On Monday 06 January 2014 11:42:55 Mark Lawrence did opine: > On 06/01/2014 14:32, Gene Heskett wrote: > > On Monday 06 January 2014 08:52:42 Ned Batchelder did opine: > > [...] > > > >> You are still talking about whether Armin is right, and whether he > >> writes well, about flaws in his statis

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Steven D'Aprano
Ethan Furman wrote: > Using my own project [1] as a reference:  good ol' dbf files -- character > fields, numeric fields, logic fields, time fields, and of course the > metadata that describes these fields and the dbf as a whole.  The > character fields I turn into unicode, no sweat.  The metadata

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ethan Furman
On 01/06/2014 07:46 AM, Chris Angelico wrote: None of this changes the fact that there are bytes used to store/transmit stuff, and abstract concepts used to manipulate them. Just like nobody expects to be able to write a dict to a file without some form of encoding (pickle, JSON, whatever), you

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 3:43 AM, Steven D'Aprano wrote: >> For me this is simply a major annoyance, but I >> only have a handful of places where I have to deal with this. Dealing >> with protocols where bytes is the norm and embedded ascii is prevalent -- >> well, I can easily imagine the nightmar

Re: python finance

2014-01-06 Thread d ss
what the heck! who told you this is a spam! this is a call for cooperation and collaboration how retarded! On Sunday, January 5, 2014 4:14:22 AM UTC-5, maxwe...@gmail.com wrote: > On Thursday, January 2, 2014 11:37:59 AM UTC, d ss wrote: > > > dailystockselect.com needs a couple of talented pytho

Re: python finance

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 3:58 AM, d ss wrote: > what the heck! > who told you this is a spam! > this is a call for cooperation and collaboration > how retarded! It is, at best, misdirected. There is a Python job board [1] where these sorts of things can be posted, but the main mailing list isn't th

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-06 Thread Ethan Furman
On 01/06/2014 07:53 AM, Grant Edwards wrote: Yea, I think laying out a book with something like MS Word or LibreOffice is nuts. Depending on her formatting needs, a lighter-weight mark-up language (something like asciidoc) might suite: http://asciidoc.org/ http://en.wikipedia.org/wiki/A

Which python framework?

2014-01-06 Thread blissend
I love programming in python but I'm having trouble deciding over a framework for a single player MUD like game I'm making for fun. Ideally it's a cross-platform free framework in case I want make it open source later with good capabilities of customizing the GUI look/style. Currently I'm using

Re: Which python framework?

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 4:02 AM, wrote: > I love programming in python but I'm having trouble deciding over a framework > for a single player MUD like game I'm making for fun. Ideally it's a > cross-platform free framework in case I want make it open source later with > good capabilities of cus

Re: python finance

2014-01-06 Thread Grant Edwards
On 2014-01-06, Chris Angelico wrote: > On Tue, Jan 7, 2014 at 3:58 AM, d ss wrote: >> what the heck! >> who told you this is a spam! >> this is a call for cooperation and collaboration >> how retarded! > > It is, at best, misdirected. There is a Python job board [1] where > these sorts of things

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 16:46, Gene Heskett wrote: On Monday 06 January 2014 11:42:55 Mark Lawrence did opine: On 06/01/2014 14:32, Gene Heskett wrote: On Monday 06 January 2014 08:52:42 Ned Batchelder did opine: [...] You are still talking about whether Armin is right, and whether he writes well, abo

class inheritance python2.7 vs python3.3

2014-01-06 Thread jwe . van . dijk
I have problems with these two classes: class LPU1(): def __init__(self, formula): """ formula is a string that is parsed into a SymPy function and several derived functions """ self.formula = formula ... ... class LPU3(LPU1): def __new_

Re: class inheritance python2.7 vs python3.3

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 4:14 AM, wrote: > class LPU3(LPU1): > def __new__(self): > """ > the same functions as LPU1 but some added functions > and some functions redefined > """ You probably don't want to be using __new__ here. Try using __init__ instead, o

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 16:43, Steven D'Aprano wrote: Ethan Furman wrote: For me this is simply a major annoyance, but I only have a handful of places where I have to deal with this. Dealing with protocols where bytes is the norm and embedded ascii is prevalent -- well, I can easily imagine the nightmar

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Steven D'Aprano
Ethan Furman wrote: > On 01/05/2014 06:37 PM, Dan Stromberg wrote: >> >> The argument seems to be "3.x doesn't work the way I'm accustomed to, >> so I'm not going to use it, and I'm going to shout about it until >> others agree with me." > > The argument is that a very important, if small, subset

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Steven D'Aprano
Gene Heskett wrote: > And from my lurking here, its quite plain to me that 3.x python has a > problem with everyday dealing with strings. I've been using Python 3.x since Python 3.1 came out, and I haven't come across any meaningful problems with the everyday dealing with strings. Quite the oppos

Re: Which python framework?

2014-01-06 Thread blissend
On Monday, January 6, 2014 12:09:28 PM UTC-5, Chris Angelico wrote: > On Tue, Jan 7, 2014 at 4:02 AM, wrote: > > > I love programming in python but I'm having trouble deciding over a > > framework for a single player MUD like game I'm making for fun. Ideally > > it's a cross-platform free fram

Re: class inheritance python2.7 vs python3.3

2014-01-06 Thread Dave Angel
On Mon, 6 Jan 2014 09:14:08 -0800 (PST), jwe.van.d...@gmail.com wrote: I have problems with these two classes: class LPU1() : You forgot to derive from object. That's implied on 3.x, but you say you're also running on 2.7 Without naming your base class you're asking for an old style clas

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Steven D'Aprano
Ned Batchelder wrote: > You are still talking about whether Armin is right, and whether he > writes well, about flaws in his statistics, etc.  I'm talking about the > fact that an organization (Python core development) has a product > (Python 3) that is getting bad press.  Popular and vocal custom

Re: class inheritance python2.7 vs python3.3

2014-01-06 Thread Steven D'Aprano
jwe.van.d...@gmail.com wrote: > I have problems with these two classes: > > class LPU1(): > def __init__(self, formula): > """ > formula is a string that is parsed into a SymPy function > and several derived functions > """ > self.formula = formula >

Re: informal #python2.8 channel on freenode

2014-01-06 Thread Emile van Sebille
Why not contribute to the planned Stackless 2.8? As I understand their direction, they'll be backporting certain v3.x features and will be prepping both SLP and nonSLP versions. Emile On 01/06/2014 04:45 AM, Martijn Faassen wrote: Fellow Pythoneers, I've started an informal channel "#pytho

/usr/lib/python2.7/subprocess.py:OSError: [Errno 2] No such file or directory

2014-01-06 Thread Marco Ippolito
Hi everybody, I'm trying to use MEGAM with NLTK. running the file: [Found /home/ubuntu/nltk_data/megam_i686.opt: /home/ubuntu/nltk_data/megam_i686.opt] Traceback (most recent call last): File "classifying.py", line 494, in me_classifier = MaxentClassifier.train(train_feats, algorithm=

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ethan Furman
On 01/06/2014 09:27 AM, Steven D'Aprano wrote: Ethan Furman wrote: Chris didn't say "bytes and ascii data", he said "bytes and TEXT". Text != "ascii data", and the fact that some people apparently think it does is pretty much the heart of the problem. The heart of a different problem, not this

Re: Which python framework?

2014-01-06 Thread blissend
On Monday, January 6, 2014 12:37:24 PM UTC-5, blis...@gmail.com wrote: > On Monday, January 6, 2014 12:09:28 PM UTC-5, Chris Angelico wrote: > > > On Tue, Jan 7, 2014 at 4:02 AM, wrote: > > > > > > > I love programming in python but I'm having trouble deciding over a > > > framework for a si

Re: Which python framework?

2014-01-06 Thread Mark Lawrence
On 06/01/2014 19:07, bliss...@gmail.com wrote: Would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. M

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Janssen
> The argument is that a very important, if small, subset a data manipulation > become very painful in Py3. Not impossible, and not difficult, but painful > because the mental model and the contortions needed to get things to work > don't sync up anymore. You are confused. Please see my reply to

the Gravity of Python 2

2014-01-06 Thread Mark Lawrence
http://blog.startifact.com/posts/python-2-gravity.html "A Way Forward - How to go forward then? I think it makes sense to work as hard as possible to lift those Python 2 codebases out of the gravity well." I think this is complete nonsense. There's only been five years since the first relea

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Janssen
>> Chris didn't say "bytes and ascii data", he said "bytes and TEXT". >> Text != "ascii data", and the fact that some people apparently think it >> does is pretty much the heart of the problem. > > The heart of a different problem, not this one. The problem I refer to is > that many binary formats

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 19:30, Mark Janssen wrote: Chris didn't say "bytes and ascii data", he said "bytes and TEXT". Text != "ascii data", and the fact that some people apparently think it does is pretty much the heart of the problem. The heart of a different problem, not this one. The problem I refer

Re: the Gravity of Python 2

2014-01-06 Thread Mark Janssen
> http://blog.startifact.com/posts/python-2-gravity.html > > "A Way Forward - How to go forward then? I think it makes sense to work as > hard as possible to lift those Python 2 codebases out of the gravity well." > > I think this is complete nonsense. There's only been five years since the > firs

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Janssen
> Looks like another bad batch, time to change your dealer again. ??? Strange, when the debate hits bottom, accusations about doing drugs come up. This is like the third reference (and I don't even drink alcohol). mark -- https://mail.python.org/mailman/listinfo/python-list

Re: the Gravity of Python 2

2014-01-06 Thread Mark Lawrence
On 06/01/2014 19:41, Mark Janssen wrote: http://blog.startifact.com/posts/python-2-gravity.html "A Way Forward - How to go forward then? I think it makes sense to work as hard as possible to lift those Python 2 codebases out of the gravity well." I think this is complete nonsense. There's only

python-list@python.org

2014-01-06 Thread 7390621
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- https://mail.python.org/mailman/listinfo/python-list

Drawing shaded area depending on distance with latitude and altitude coordinate

2014-01-06 Thread Isaac Won
I have tried to make a plot of points with longitude and latitude coordinate, and draw shaded area with distance from one point. So, I thought that I could uae contourf function from matplotlibrary. My code is: import haversine import numpy as np import matplotlib.pyplot as plt wi

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Terry Reedy
On 1/6/2014 9:32 AM, Gene Heskett wrote: And from my lurking here, its quite plain to me that 3.x python has a problem with everyday dealing with strings. Strings of what? And what specific 'everyday' problem are you referring to? -- Terry Jan Reedy -- https://mail.python.org/mailman/listinf

Re: Drawing shaded area depending on distance with latitude and altitude coordinate

2014-01-06 Thread Mark Lawrence
On 06/01/2014 20:08, Isaac Won wrote: I have tried to make a plot of points with longitude and latitude coordinate, and draw shaded area with distance from one point. So, I thought that I could uae contourf function from matplotlibrary. My code is: import haversine import numpy as np

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Serhiy Storchaka
06.01.14 06:51, Chris Angelico написав(ла): data = b"\x43\x6c\x67\x75\x62\x61" # is there an easier way to turn a hex dump into a bytes literal? >>> bytes.fromhex('43 6c 67 75 62 61') b'Clguba' -- https://mail.python.org/mailman/listinfo/python-list

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Serhiy Storchaka
06.01.14 06:41, Tim Chase написав(ла): from codecs import getencoder getencoder("rot-13")(s2.decode('utf-8'))[0] 'Python' codecs.decode('rot13', s2.decode()) -- https://mail.python.org/mailman/listinfo/python-list

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Serhiy Storchaka
06.01.14 15:44, Mark Lawrence написав(ла): Simply scrap PEP 404 and the currently unhappy customers will be happy as they'll be free to do all the work they want on Python 2.8, as my understanding is that the vast majority of the Python core developers won't do it for them. It's not necessary.

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Antoine Pitrou
Chris Angelico gmail.com> writes: > > On Tue, Jan 7, 2014 at 3:29 AM, Antoine Pitrou pitrou.net> wrote: > > People don't use? According to available figures, there are more downloads of > > Python 3 than downloads of Python 2 (Windows installers, mostly): > > http://www.python.org/webstats/ > >

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 20:31, Serhiy Storchaka wrote: 06.01.14 15:44, Mark Lawrence написав(ла): Simply scrap PEP 404 and the currently unhappy customers will be happy as they'll be free to do all the work they want on Python 2.8, as my understanding is that the vast majority of the Python core developer

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Tim Chase
On 2014-01-06 22:20, Serhiy Storchaka wrote: > data = b"\x43\x6c\x67\x75\x62\x61" # is there an easier way to > turn a hex dump into a bytes literal? > > >>> bytes.fromhex('43 6c 67 75 62 61') > b'Clguba' Very nice new functionality in Py3k, but 2.x doesn't seem to have such a meth

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 20:42, Tim Chase wrote: On 2014-01-06 22:20, Serhiy Storchaka wrote: data = b"\x43\x6c\x67\x75\x62\x61" # is there an easier way to turn a hex dump into a bytes literal? >>> bytes.fromhex('43 6c 67 75 62 61') b'Clguba' Very nice new functionality in Py3k, but 2.x doesn't seem

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Terry Reedy
On 1/6/2014 8:44 AM, Mark Lawrence wrote: On 06/01/2014 12:39, Ned Batchelder wrote: I'm not talking about the technical details of bytes and Unicode. I'm talking about making customers happy. Simply scrap PEP 404 Not necessary. and the currently unhappy customers will be happy as they'

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Terry Reedy
On 1/6/2014 10:10 AM, Ethan Furman wrote: The argument is that a very important, if small, subset a data manipulation become very painful in Py3. Not impossible, and not difficult, but painful because the mental model and the contortions needed to get things to work don't sync up anymore. Tha

Re: class inheritance python2.7 vs python3.3

2014-01-06 Thread jwe . van . dijk
On Monday, 6 January 2014 18:14:08 UTC+1, jwe.va...@gmail.com wrote: > I have problems with these two classes: > > > > class LPU1(): > > def __init__(self, formula): > > """ > > formula is a string that is parsed into a SymPy function > > and several derived func

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 20:49, Terry Reedy wrote: On 1/6/2014 8:44 AM, Mark Lawrence wrote: On 06/01/2014 12:39, Ned Batchelder wrote: I'm not talking about the technical details of bytes and Unicode. I'm talking about making customers happy. Simply scrap PEP 404 Not necessary. and the currently

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/6/14 2:30 PM, Mark Janssen wrote: Chris didn't say "bytes and ascii data", he said "bytes and TEXT". Text != "ascii data", and the fact that some people apparently think it does is pretty much the heart of the problem. The heart of a different problem, not this one. The problem I refer to

Re: python finance

2014-01-06 Thread d ss
On Monday, January 6, 2014 12:06:45 PM UTC-5, Chris Angelico wrote: > On Tue, Jan 7, 2014 at 3:58 AM, d ss wrote: > > > what the heck! > > > who told you this is a spam! > > > this is a call for cooperation and collaboration > > > how retarded! > > > > It is, at best, misdirected. There is

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Gene Heskett
On Monday 06 January 2014 16:16:13 Terry Reedy did opine: > On 1/6/2014 9:32 AM, Gene Heskett wrote: > > And from my lurking here, its quite plain to me that 3.x python has a > > problem with everyday dealing with strings. > > Strings of what? And what specific 'everyday' problem are you referrin

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Janssen
>> Really? If people are using binary with "well-defined ascii-encoded >> tidbits", they're doing something wrong. Perhaps you think escape >> characters "\n" are "well defined tidbits", but YOU WOULD BE WRONG. >> The purpose of binary is to keep things raw. WTF? > If you want to participate in

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/6/14 12:50 PM, Steven D'Aprano wrote: Ned Batchelder wrote: You are still talking about whether Armin is right, and whether he writes well, about flaws in his statistics, etc. I'm talking about the fact that an organization (Python core development) has a product (Python 3) that is gettin

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Janssen
>> Really? If people are using binary with "well-defined ascii-encoded >> tidbits", they're doing something wrong. Perhaps you think escape >> characters "\n" are "well defined tidbits", but YOU WOULD BE WRONG. >> The purpose of binary is to keep things raw. WTF? > > If you want to participate i

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 21:17, Gene Heskett wrote: On Monday 06 January 2014 16:16:13 Terry Reedy did opine: On 1/6/2014 9:32 AM, Gene Heskett wrote: And from my lurking here, its quite plain to me that 3.x python has a problem with everyday dealing with strings. Strings of what? And what specific 'ev

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/6/14 11:29 AM, Antoine Pitrou wrote: Ned Batchelder nedbatchelder.com> writes: You can look through his problems and decide that he's "wrong," or that he's "ranting," but that doesn't change the fact that Python 3 is encountering friction. What happens when a significant fraction of your

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Devin Jeanpierre
On Mon, Jan 6, 2014 at 1:02 PM, Mark Lawrence wrote: > I find all this intriguing. People haven't found time to migrate from > Python 2 to Python 3, but now intend finding time to produce a fork of > Python 2 which will ease the migration to Python 3. Have I got that > correct? Keeping old, uns

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/6/14 4:33 PM, Mark Lawrence wrote: On 06/01/2014 21:17, Gene Heskett wrote: On Monday 06 January 2014 16:16:13 Terry Reedy did opine: On 1/6/2014 9:32 AM, Gene Heskett wrote: And from my lurking here, its quite plain to me that 3.x python has a problem with everyday dealing with strings.

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Terry Reedy
On 1/6/2014 7:39 AM, Ned Batchelder wrote: You are still talking about whether Armin is right, and whether he writes well, about flaws in his statistics, etc. That is how *I* decide whether someone is worth attending to. He failed. > I'm talking about the fact that an organization of volunte

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 21:42, Ned Batchelder wrote: On 1/6/14 4:33 PM, Mark Lawrence wrote: On 06/01/2014 21:17, Gene Heskett wrote: On Monday 06 January 2014 16:16:13 Terry Reedy did opine: On 1/6/2014 9:32 AM, Gene Heskett wrote: And from my lurking here, its quite plain to me that 3.x python has a

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Antoine Pitrou
Ned Batchelder nedbatchelder.com> writes: > > > I never said they were the whole community, of course. But they are not > outliers either. By your own statistics above, 23% of respondents think > Python 3 was a mistake. Armin and Kenneth are just two very visible > people. Indeed, they are

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/6/14 5:08 PM, Mark Lawrence wrote: On 06/01/2014 21:42, Ned Batchelder wrote: On 1/6/14 4:33 PM, Mark Lawrence wrote: On 06/01/2014 21:17, Gene Heskett wrote: On Monday 06 January 2014 16:16:13 Terry Reedy did opine: On 1/6/2014 9:32 AM, Gene Heskett wrote: And from my lurking here, it

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ned Batchelder
On 1/6/14 5:16 PM, Antoine Pitrou wrote: Ned Batchelder nedbatchelder.com> writes: I never said they were the whole community, of course. But they are not outliers either. By your own statistics above, 23% of respondents think Python 3 was a mistake. Armin and Kenneth are just two very visib

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 22:22, Ned Batchelder wrote: On 1/6/14 5:08 PM, Mark Lawrence wrote: On 06/01/2014 21:42, Ned Batchelder wrote: On 1/6/14 4:33 PM, Mark Lawrence wrote: On 06/01/2014 21:17, Gene Heskett wrote: On Monday 06 January 2014 16:16:13 Terry Reedy did opine: On 1/6/2014 9:32 AM, Gene

Suggested GUI framework for Mac and unix?

2014-01-06 Thread Russell E. Owen
I have a free cross-platform Python GUI application that has to run on Mac and linux. It is presently written in Tkinter, but for various reasons* it may be time to switch. I've heard many good things about wxpython and qt, but not used either, and am wondering if somebody could tell me if eith

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Antoine Pitrou
Mark Lawrence yahoo.co.uk> writes: > [...] > > And as I started this thread, I'll say what I please, throwing my toys > out of my pram in just the same way that your pal Armin is currently doing. I'll join Ned here: please stop it. You are doing a disservice to everyone. Thanks in advance An

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Nicholas Cole
I hardly know which of the various threads on this topic to reply to! No one is taking Python 2.7 away from anyone. It is going to be on the net for years to come. Goodness! I expect if I wanted to go and download Python 1.5 I could find it easily enough. Like everyone else, when Python 3 came

Re: Drawing shaded area depending on distance with latitude and altitude coordinate

2014-01-06 Thread Dave Angel
On Mon, 6 Jan 2014 12:08:19 -0800 (PST), Isaac Won wrote: dis1 = [[]]*1 for c in range(0,275): dis1[0].append(dis[c]) So dis1 has 1 row in it. But contourf is expecting many rows, matching the length of lat. I'm guessing you have to fill in the others. cs = plt.

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Terry Reedy
On 1/6/2014 11:29 AM, Antoine Pitrou wrote: People don't use? According to available figures, there are more downloads of Python 3 than downloads of Python 2 (Windows installers, mostly): http://www.python.org/webstats/ While I would like the claim to be true, I do not see 2 versus 3 download

Re: Suggested GUI framework for Mac and unix?

2014-01-06 Thread Mark Lawrence
On 06/01/2014 22:31, Russell E. Owen wrote: I'm no expert on GUIs but I've just picked wxPython via the age old system of tossing a coin :) I have a free cross-platform Python GUI application that has to run on Mac and linux. It is presently written in Tkinter, but for various reasons* it may

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Janssen
>> I would still point out that "Kenneth and Armin" are not the whole Python >> community. > > I never said they were the whole community, of course. But they are not > outliers either. [...] > >> Your whole argument seems to be that a couple "revered" (!!) >> individuals should see their complain

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 7:42 AM, Tim Chase wrote: > On 2014-01-06 22:20, Serhiy Storchaka wrote: >> data = b"\x43\x6c\x67\x75\x62\x61" # is there an easier way to >> turn a hex dump into a bytes literal? >> >> >>> bytes.fromhex('43 6c 67 75 62 61') >> b'Clguba' > > Very nice new function

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 22:35, Antoine Pitrou wrote: Mark Lawrence yahoo.co.uk> writes: [...] And as I started this thread, I'll say what I please, throwing my toys out of my pram in just the same way that your pal Armin is currently doing. I'll join Ned here: please stop it. You are doing a disservi

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 8:32 AM, Mark Janssen wrote: >>> Really? If people are using binary with "well-defined ascii-encoded >>> tidbits", they're doing something wrong. Perhaps you think escape >>> characters "\n" are "well defined tidbits", but YOU WOULD BE WRONG. >>> The purpose of binary is t

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 22:41, Nicholas Cole wrote: I hardly know which of the various threads on this topic to reply to! No one is taking Python 2.7 away from anyone. It is going to be on the net for years to come. Goodness! I expect if I wanted to go and download Python 1.5 I could find it easily enou

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Antoine Pitrou
Terry Reedy udel.edu> writes: > > On 1/6/2014 11:29 AM, Antoine Pitrou wrote: > > > People don't use? According to available figures, there are more downloads of > > Python 3 than downloads of Python 2 (Windows installers, mostly): > > http://www.python.org/webstats/ > > While I would like the

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Ben Finney
Mark Lawrence writes: > You arrogance really has no bounds. If you'd have done the job that > you should have done in the first place and stopped that blithering > idiot 16 months ago, we wouldn't still be putting up with him now. That is a misdirection; Ned's request that you stop bad behaviou

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 7:32 AM, Antoine Pitrou wrote: > Chris Angelico gmail.com> writes: >> >> On Tue, Jan 7, 2014 at 3:29 AM, Antoine Pitrou pitrou.net> > wrote: >> > People don't use? According to available figures, there are more > downloads of >> > Python 3 than downloads of Python 2 (Windo

Re: "More About Unicode in Python 2 and 3"

2014-01-06 Thread Mark Lawrence
On 06/01/2014 23:14, Ben Finney wrote: Mark Lawrence writes: You arrogance really has no bounds. If you'd have done the job that you should have done in the first place and stopped that blithering idiot 16 months ago, we wouldn't still be putting up with him now. That is a misdirection; Ned

  1   2   >