Re: [Python-ideas] (no subject)

2016-11-28 Thread Mariatta Wijaya
I'm +1 to the idea of improving error messages :)
(but maybe not to the exact new error messages proposed)

Raymond Hettinger touched on this topic during his Pycon Canada keynote, as
one of the positive contributions that you can do to cpython.

>

> Traceback (most recent call last):

>

>  File "foo.py", line 2, in 

>

>print(length(l))

>

> NameError: name 'length' is not defined

>

> A better message might be:

>

> Python doesn't recognise the function "length". Did you mean len?'

>

I recall he gave a similar example to this, where Python could suggest an
alternative in case of typo.
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Fwd: Fwd: Fwd: unpacking generalisations for list comprehension

2016-10-16 Thread Mariatta Wijaya
>Her reaction was hilarious:
>
>"Whom does he teach? Children?"

I sense mockery in your email, and it does not conform to the PSF code of
conduct. Please read the CoC before posting in this mailing list. The link
is available at the bottom of every python mailing list email.
https://www.python.org/psf/codeofconduct/
I don't find teaching children is a laughing matter, neither is the idea of
children learning to code.
In Canada, we have initiatives like Girls Learning Code and Kids Learning
Code. I mentored in a couple of those events and the students are girls
aged 8-14. They surprised me with their abilities to learn. I would suggest
looking for such mentoring opportunities in your area to gain appreciation
with this regard.
Thanks.
(Sorry to derail everyone from the topic of list comprehension. Please
continue!)
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/