3 Suggestions to Make Python Easier For Children

Marko Rauhamaa marko at pacujo.net
Sat Aug 2 03:14:08 EDT 2014


Mark Summerfield <list at qtrac.plus.com>:

> Suggestion #1: Make IDLE start in the user's home directory.
>
> Suggestion #2: Make all the turtle examples begin "from turtle import
> *" so no leading turtle. is needed in the examples.
>
> Suggestion #3: Make object(key=value, ...) legal and equiv of
> types.SimpleNamespace(key=value, ...).

Great suggestions for adults as well.

Expanding #3:

   >>> o = object()
   >>> o.x = 3
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   AttributeError: 'object' object has no attribute 'x'

Why?


Marko



More information about the Python-list mailing list