Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Ben Finney
Mark, you are demonstrating a habit of making sweeping pronouncements and assertions; and then, when those statements are challenged, you act as though you never said them. Here's a characteristic example: Mark H Harris writes: > On 3/30/14 10:22 AM, Steven D'Aprano wrote: > > Mark H Harris wr

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Chris Angelico
On Mon, Mar 31, 2014 at 5:08 PM, Mark H Harris wrote: > Unicode in python3.x is (mostly) working correctly. Congratulations to all > who worked on it, hat is off. The problem with unicode is that it is just a > specification. The consortium cannot force or code anything. They control > the script

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Mark H Harris
On 3/30/14 10:22 AM, Steven D'Aprano wrote: In 1991, there was no wireless, no mobile computing, hardly any public Internet outside of the universities. It was before the Eternal September, and only a few years after the Great Renaming. I was using arpanet since the late 1970s. Python had

Re: Examples of modern GUI python programms

2014-03-30 Thread Metallicow
On Sunday, March 30, 2014 9:16:06 PM UTC-5, Michael Torrie wrote: > On 03/30/2014 05:16 PM, D. Xenakis wrote: > > > What i need is to develop an android looking program (entirelly in > > python) for windows, but dunno if this is possible (most propably > > is), and which tool between those would h

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Chris Angelico
On Mon, Mar 31, 2014 at 4:23 PM, Mark H Harris wrote: > > The main point of the link is the status on English as an official language. > 28 out of 50 states have legislated English as the official language; > meaning, that you either speak and write English, or you're going to have a > really toug

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/31/14 12:05 AM, Chris Angelico wrote: What say you? We all type in our own language, and everyone else gets to read it in their own language. Its kinda like the day of Pentecost (except that its print instead of audio). And Pentecost required direct intervention of the all-powerful God o

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/30/14 1:31 AM, Steven D'Aprano wrote: The most recent US census found there are 38.5 million people in the US who primarily speak Spanish, and 45 million who speak it as their first or second language. In comparison, there are only an estimated 11 million illegal immigrants (of which only 7

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Chris Angelico
On Mon, Mar 31, 2014 at 3:57 PM, Mark H Harris wrote: > As long as I'm passing along my dreams to everyone, we also need a universal > translator on the uptake. In other words, everyone inputs from a universal > encoder, and every browser has the option of on-demand translation (or not). > Its a l

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/30/14 5:35 AM, Steven D'Aprano wrote: Approximately 5% of the US population either do not speak English at all, or speak it poorly. That includes approximately half a million ASL speakers (American Sign Language, which is not a manual representation of English but an independent language in

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/30/14 5:35 AM, Steven D'Aprano wrote: On Sun, 30 Mar 2014 01:48:27 -0500, Mark H Harris wrote: Don't be silly, Steven, it doesn't become you. Given the sorts of patronising, condescending things you insist are true about non-Americans, such as their supposed inability to communicate

Re: Examples of modern GUI python programms

2014-03-30 Thread Michael Torrie
On 03/30/2014 05:16 PM, D. Xenakis wrote: > What i need is to develop an android looking program (entirelly in > python) for windows, but dunno if this is possible (most propably > is), and which tool between those would help me most: tkinter - > wxpython - pyqt - pygtk . > > Any examples and sugg

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Walter Hurry
Steven D'Aprano wrote: > On Sun, 30 Mar 2014 00:32:58 -0700, Larry Hudson wrote: > >> Unfortunately, there is no good word for "USA-ian". "United States >> Citizen" is too long and awkward and "United Statesian" is ridiculous. >> The common usage of "American" for this is at best ambiguous, and

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread MRAB
On 2014-03-30 23:57, Rhodri James wrote: On Sun, 30 Mar 2014 11:44:13 +0100, Steven D'Aprano wrote: On Sun, 30 Mar 2014 00:32:58 -0700, Larry Hudson wrote: Unfortunately, there is no good word for "USA-ian". "United States Citizen" is too long and awkward and "United Statesian" is ridiculou

Examples of modern GUI python programms

2014-03-30 Thread D. Xenakis
Id like to ask.. do you know any modern looking GUI examples of windows software written in python? Something like this maybe: http://techreport.com/r.x/asus-x79deluxe/software-oc.jpg (or hopefully something like this android look: http://chromloop.com/wp-content/uploads/2013/07/Skype-4.0-Andro

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Rhodri James
On Sun, 30 Mar 2014 11:44:13 +0100, Steven D'Aprano wrote: On Sun, 30 Mar 2014 00:32:58 -0700, Larry Hudson wrote: Unfortunately, there is no good word for "USA-ian". "United States Citizen" is too long and awkward and "United Statesian" is ridiculous. The common usage of "American" for th

Re: checking if two things do not equal None

2014-03-30 Thread Gregory Ewing
Roy Smith wrote: Adding to the confusion, many designs would use "active low" logic, which means a 1 was represented by a low voltage, and a 0 by a high voltage. So, you quickly end up with gibberish like, "not active low clear nand not active low enable clock". There are ways of dealing wi

Re: writing reading from a csv or txt file

2014-03-30 Thread Gary Herron
On 03/30/2014 12:05 PM, mtcpl...@googlemail.com wrote: Hi I have 3 csv files with a list of 5 items in each. rainfall in mm, duration time,time of day,wind speed, date. I am trying to compare the files. cutting out items in list list. ie:- first file (rainfall2012.csv)rainfall, duration,time of d

RE: writing reading from a csv or txt file

2014-03-30 Thread Joseph L. Casale
> Hi I have 3 csv files with a list of 5 items in each. > rainfall in mm, duration time,time of day,wind speed, date. > I am trying to compare the files. cutting out items in list list. ie:- > first file (rainfall2012.csv)rainfall, duration,time of day,wind speed,date. > first file (rainfall2013.cs

Re: writing reading from a csv or txt file

2014-03-30 Thread Jason Friedman
> > I am trying to compare the files. cutting out items in list list. ie:- > first file (rainfall2012.csv)rainfall, duration,time of day,wind > speed,date. > first file (rainfall2013.csv)rainfall, duration,time of day,wind > speed,date. > I would like to pick out maybe rainfalls and duration's and

writing reading from a csv or txt file

2014-03-30 Thread mtcplumb
Hi I have 3 csv files with a list of 5 items in each. rainfall in mm, duration time,time of day,wind speed, date. I am trying to compare the files. cutting out items in list list. ie:- first file (rainfall2012.csv)rainfall, duration,time of day,wind speed,date. first file (rainfall2013.csv)rainfal

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Steven D'Aprano
On Sun, 30 Mar 2014 01:22:55 -0500, Mark H Harris wrote: > On 3/29/14 12:53 PM, Steven D'Aprano wrote: >> People have had localised code pages, and localised keyboards to enter >> characters in those code pages, for up to 30 years, if not longer. > > Nobody is arguing otherwise, Steven. It

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Ian Kelly
On Mar 30, 2014 9:26 AM, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > > On Sat, 29 Mar 2014 03:21:29 -0500, Mark H Harris wrote: > > from a computer historical standpoint too. I mean, think > > about it, computers have only existed since late 1940s and only in their > > modern

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Steven D'Aprano
On Sat, 29 Mar 2014 03:21:29 -0500, Mark H Harris wrote: > On 3/29/14 1:03 AM, Chris Angelico wrote: >> >> http://forum.ecomstation.ru/ >> >> Prominent discussion forum, although that strives to be at least >> partially bilingual in deference to those of us who are so backward as >> to speak only

Re: checking if two things do not equal None

2014-03-30 Thread MRAB
On 2014-03-30 13:21, Roy Smith wrote: In article <5337b4e4$0$29994$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: I think Johannes got it right: boolean logic is easier to reason about when there is a minimum of "not"s. I used to do a lot of digital logic design. In certain l

Re: checking if two things do not equal None

2014-03-30 Thread Roy Smith
In article <5337b4e4$0$29994$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > I think Johannes got it right: boolean logic is easier to reason about > when there is a minimum of "not"s. I used to do a lot of digital logic design. In certain logic families, it's easier to build a

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Roy Smith
In article , Larry Hudson wrote: > I believe the point is your generalized use of "American". After all, > Mexicans are Americans too, as well as Canadians, Peruvians and ... > > Unfortunately, there is no good word for "USA-ian". I believe Mexicans refer to us as "norteamericanos" in polite

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Chris Angelico
On Sun, Mar 30, 2014 at 9:35 PM, Steven D'Aprano wrote: > Network effects explain why, out of the six or seven thousand languages > in the world, just thirteen account for more than half the world's > population: > > 1) Mandarin > 2) Spanish > 3) English > 4) Hindi > 5) Arabic > 6) Portuguese > 7)

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Steven D'Aprano
On Sun, 30 Mar 2014 00:32:58 -0700, Larry Hudson wrote: > Unfortunately, there is no good word for "USA-ian". "United States > Citizen" is too long and awkward and "United Statesian" is ridiculous. > The common usage of "American" for this is at best ambiguous, and > definitely inaccurate (as we

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Steven D'Aprano
On Sun, 30 Mar 2014 01:48:27 -0500, Mark H Harris wrote: > On 3/30/14 1:31 AM, Steven D'Aprano wrote: >>> I'm not sure what point you are trying to make. We have people here >>> from all over the earth, and enough illegal immigrants speaking >>> Spanish to account for a population about the size o

Re: checking if two things do not equal None

2014-03-30 Thread Marko Rauhamaa
Gregory Ewing : > a != b != c > > does *not* imply that a != c. At least it doesn't in Python; I've > never seen any mathematicians write that, so I don't know what they > would make of it. Any resemblance between mathematics notation and Python is purely coincidental. I must admit I had missed

Re: checking if two things do not equal None

2014-03-30 Thread Chris Angelico
On Sun, Mar 30, 2014 at 5:52 PM, Ben Finney wrote: > Chris Angelico writes: > >> The problem isn't that I can't see what the comparisons are. It makes >> very good sense to bound a variable within constants; but you already >> know exactly where 2 is on the number line, so asking "Is 2 between >>

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Larry Hudson
On 03/29/2014 10:52 PM, Mark H Harris wrote: On 3/29/14 10:45 AM, Mark Lawrence wrote: On 29/03/2014 08:21, Mark H Harris wrote: Yes. Well, as the joke goes, if you're trilingual you speak three languages, if you're bilingual you speak two languages, if you're monolingual you're an America