Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread Nick Coghlan
On 5 December 2016 at 12:35, Chris Angelico wrote: > On Mon, Dec 5, 2016 at 12:40 PM, Stephen J. Turnbull > wrote: >> I don't know where you live, but in both of my countries there is a >> teacher's union to ensure that nobody without an Ed

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread Nick Coghlan
On 5 December 2016 at 09:15, victor rajewski wrote: > > There is currently a big push towards teaching coding and computational > thinking to school students, but a lack of skilled teachers to actually be > able to support this, and I don't see any initiatives that will

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread Chris Angelico
On Mon, Dec 5, 2016 at 12:40 PM, Stephen J. Turnbull wrote: > That's not exactly what he said. High school teachers are likely to > be the product of education schools, and may be highly skilled in > building PowerPoint presentations, and have some experience

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread Stephen J. Turnbull
Chris Angelico writes: > On Mon, Dec 5, 2016 at 10:15 AM, victor rajewski wrote: > > There is currently a big push towards teaching coding and > > computational thinking to school students, but a lack of skilled > > teachers to actually be able to support this, and I

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread Stephen J. Turnbull
victor rajewski writes: >- I personally find the current error messages quite useful, and >they have the advantage of being machine-parseable, so that IDEs >such as PyCharm can add value to them. However, the audience of >this idea is not me, and probably not you. It is

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread Chris Angelico
On Mon, Dec 5, 2016 at 10:15 AM, victor rajewski wrote: > There is currently a big push towards teaching coding and computational > thinking to school students, but a lack of skilled teachers to actually be > able to support this, and I don't see any initiatives that will

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-12-04 Thread victor rajewski
Thanks for all of the thoughtful replies (and for moving to a more useful subject line). There is currently a big push towards teaching coding and computational thinking to school students, but a lack of skilled teachers to actually be able to support this, and I don't see any initiatives that

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-11-30 Thread Nick Coghlan
On 30 November 2016 at 19:05, Paul Moore wrote: > On 30 November 2016 at 02:14, Stephen J. Turnbull > wrote: >> Wouldn't >> >> NameError: Python doesn't recognize the name "log". Perhaps >> you need to import the "math" module? >

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-11-30 Thread Paul Moore
On 30 November 2016 at 02:14, Stephen J. Turnbull wrote: > How about: > > class Blog: > pass > > blog = get_blog_for_date(someday) > > logn = log(blog.size) > > NameError: Python doesn't recognize the function "log". Did you > mean

Re: [Python-ideas] Better error messages [was: (no subject)]

2016-11-29 Thread Matthias Bussonnier
There are a couple of project that tried to improved heuristic on some error messages. Two I can think off are: https://github.com/SylvainDe/DidYouMean-Python and https://github.com/dutc/didyoumean I think that better error messages could be implemented only in the repl, and/or by

[Python-ideas] Better error messages [was: (no subject)]

2016-11-29 Thread Stephen J. Turnbull
Mariatta Wijaya writes: > > NameError: name 'length' is not defined > > > A better message might be: > > > Python doesn't recognise the function "length". Did you mean > > len?' This particular change would be useful to a beginning Python programmer. I've made that error often enough