Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: 3 Suggestions to Make Python Easier For Children Date: Sat, 02 Aug 2014 10:14:08 +0300 Organization: A noiseless patient Spider Lines: 24 Message-ID: <87r40zmkhr.fsf@elektro.pacujo.net> References: <7ef67ccc-3fc3-47dd-b858-09ef3b57a497@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="24092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lvZlnptJC2pZd3Hab4waa" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:LVcUPF59aAJN7+pAdqKSqzyTGUo= sha1:wofBdp2c3G6v1r78Jezuahdfvec= Xref: csiph.com comp.lang.python:75519 Mark Summerfield : > 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 "", line 1, in AttributeError: 'object' object has no attribute 'x' Why? Marko