Re: Proposed new syntax

2017-08-19 Thread Steve D'Aprano
On Sun, 20 Aug 2017 02:28 pm, Rustom Mody wrote: >> >> | S = {2·x | x ∈ ℕ, x ≤ 10} [...] > There's more than just a nit-pick wrong with that expression The expression is fine. It is a mathematical expression, not Haskell code, so your example of Haskell code is irrelevant to judging maths notatio

Re: Proposed new syntax

2017-08-19 Thread Chris Angelico
On Sun, Aug 20, 2017 at 2:28 PM, Rustom Mody wrote: > So if Chris can answer how to teach music to a tone-deaf person, I can > consider how to answer the question of how to teach programming to a > math-challenged one You don't HAVE to understand math to be a programmer. Plenty of math-challenge

Re: Proposed new syntax

2017-08-19 Thread Paul Rubin
Rustom Mody writes: > Specifically the term 'comprehension' used today as a programming construct > traces somewhat tenuously to an axiom that Zermelo/Fraenkel formulated > in the 1920s I thought went back to Frege. Also, it appears in Zermelo set theory Z. ZF is Z with the Axiom of Replacement

Re: Proposed new syntax

2017-08-19 Thread Rustom Mody
On Saturday, August 19, 2017 at 9:45:48 AM UTC+5:30, Steve D'Aprano wrote: > On Sat, 19 Aug 2017 12:59 am, Chris Angelico wrote: > > > On Fri, Aug 18, 2017 at 11:46 PM, Rustom Mody wrote: > >> Compare the well-known haskell tutorial > >> http://learnyouahaskell.com/starting-out > >> whose compreh

Re: how to create root with treelib?

2017-08-19 Thread MRAB
On 2017-08-20 01:58, Ho Yeung Lee wrote: http://treelib.readthedocs.io/en/latest/examples.html tree = Tree() #create root tree.create_node((0,0), "root") result = [aa[0]] previousnode = (0,0) #create root ... tree.create_node((0,0), "root") Traceback (most recent call last): File "", line

how to create root with treelib?

2017-08-19 Thread Ho Yeung Lee
http://treelib.readthedocs.io/en/latest/examples.html tree = Tree() #create root tree.create_node((0,0), "root") result = [aa[0]] previousnode = (0,0) >>> #create root ... tree.create_node((0,0), "root") Traceback (most recent call last): File "", line 2, in File "C:\Python27\lib\site-packag

Re: Proposed new syntax

2017-08-19 Thread Steve D'Aprano
On Sat, 19 Aug 2017 03:42 pm, Chris Angelico wrote: >> [1] Assuming that mathematics actually is sound, which thanks to Gödel we >> [know >> is unprovable. > > Harmony in audio signals is based on frequency ratios. Therefore sound > is mathematics, and by the reflexive principle of equality, > ma

Re:

2017-08-19 Thread Bob Gailer
Unfortunately the images did not come through, since this is a text-only email list. I suggest you put your images on an online resource such as Photobucket and post the links in your email. Unfortunately your description of the problem is not very precise. Obviously the images would help. Terms l

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread Rick Johnson
alister wrote: > Steve D'Aprano wrote: > > Rick Johnson wrote: [...] > I think to a point I have to agree with rick, Well, alister, i'll take what i can get around here. :-) > windows installers can be flaky and time is money. Indeed. > if something does not work after installation (& does no

[no subject]

2017-08-19 Thread Owen Berry
I'm new to python and having trouble with the most basic step. I have tried to install python (Web-based installer) on my home pc to mess around and attempt to develop a program. when I install the launcher it is fine but when I try and open the file it launches a modify setup window. I have no clu

Re: Proposed new syntax

2017-08-19 Thread Chris Angelico
On Sat, Aug 19, 2017 at 2:15 PM, Steve D'Aprano wrote: > Indeed. People find imperative (recipe) algorithms easy to follow, and pure > functional reasoning hard. I'm glad that functional programming is fashionable > again, and hope that people will learn good habits from it, but I think that > mat

Re: A question on modification of a list via a function invocation

2017-08-19 Thread breamoreboy
On Saturday, August 19, 2017 at 11:59:41 AM UTC+1, Steve D'Aprano wrote: > Consider that in my family, one of our most precious heirlooms is the axe of > my > great-great-great grandfather, which we have passed down from eldest son to > eldest son for generations. > > The axe is now almost 200 y

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread alister via Python-list
On Sun, 20 Aug 2017 01:56:14 +1000, Steve D'Aprano wrote: > On Sun, 20 Aug 2017 12:11 am, Rick Johnson wrote: > >> On Saturday, August 19, 2017 at 5:39:19 AM UTC-5, Chris Angelico wrote: >>> I'm not sure how "refuse to guess" translates into "wipe it out and >>> start over". I *never* recommend u

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread Rick Johnson
Steve D'Aprano wrote: > Rick Johnson wrote: > > Chris Angelico wrote: > > > I'm not sure how "refuse to guess" translates into "wipe > > > it out and start over". I *never* recommend > > > uninstall/reinstall as a first measure. It's a stupid > > > idea unless you actually know that it's going to h

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread Steve D'Aprano
On Sun, 20 Aug 2017 12:11 am, Rick Johnson wrote: > On Saturday, August 19, 2017 at 5:39:19 AM UTC-5, Chris Angelico wrote: >> I'm not sure how "refuse to guess" translates into "wipe it >> out and start over". I *never* recommend >> uninstall/reinstall as a first measure. It's a stupid idea >> un

Re: What extended ASCII character set uses 0x9D?

2017-08-19 Thread Gregory Ewing
Ian Kelly wrote: One possibility is that it's the same two bytes. That would make it 0xE2 0x80 0x9D which is "right double quotation mark". Since it keeps appearing after ending double quotes that seems plausible, although one has to wonder why it appears *in addition to* the ASCII double quotes.

Re: A question on modification of a list via a function invocation

2017-08-19 Thread Rick Johnson
Steve D'Aprano wrote: > I'm not sure that the VIN defines the vehicle exactly... I > wouldn't want to try driving a VIN without the rest of the > vehicle. The mileage is terrible... Quoting Fredrik Lundh: > well, I guess you can, in theory, value an artificial > number assigned to an object as muc

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread Rick Johnson
On Saturday, August 19, 2017 at 5:39:19 AM UTC-5, Chris Angelico wrote: > I'm not sure how "refuse to guess" translates into "wipe it > out and start over". I *never* recommend > uninstall/reinstall as a first measure. It's a stupid idea > unless you actually know that it's going to help. No, what

Re: A question on modification of a list via a function invocation

2017-08-19 Thread Steve D'Aprano
On Sat, 19 Aug 2017 08:07 pm, Rick Johnson wrote: > And why is that so difficult for you to understand? It has > always seemed perfectly logical to me... > > [A thought experiment] > Consider automobiles as an example. Automobiles are > constructed in factories, and they are machines that are > m

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread Chris Angelico
On Sat, Aug 19, 2017 at 7:43 PM, Rick Johnson wrote: > Don't waste your time with that stupid "repair option". What > does an uninstall and reinstall process take these days... > all of two minutes? > > Oh boy... The first rule of troubleshooting is always to > apply the simplist fix first, then s

Re: A question on modification of a list via a function invocation

2017-08-19 Thread Rick Johnson
On Wednesday, August 16, 2017 at 4:07:14 PM UTC-5, Mok-Kong Shen wrote: > The above shows that with , i.e. assigning > single values to individual members of alist (with > alist[0]=3 etc.) is "principally" different from assigning > a whole list to alist (with alist=[30,60,90]). The first > operati

Re: Default .py program and Edit with IDLE problem

2017-08-19 Thread Rick Johnson
On Wednesday, August 16, 2017 at 4:55:17 PM UTC-5, Kevi Aday (Katch22) wrote: > I installed python 3.6.2 for making running and editing > programs. Later on I installed python 2.7 because a program > that I downloaded only works with that. Later I deleted the > program. I then wanted to run a progr