Correct type for a simple "bag of attributes" namespace object (was: 3 Suggestions to Make Python Easier For Children)

Chris Angelico rosuav at gmail.com
Sat Aug 2 19:27:18 EDT 2014


On Sun, Aug 3, 2014 at 9:18 AM, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
> On Sat, Aug 2, 2014 at 2:05 PM, Chris Angelico <rosuav at gmail.com> wrote:
>> On Sun, Aug 3, 2014 at 6:46 AM, Mark Summerfield <list at qtrac.plus.com> wrote:
>>> Naturally, I understand that adding a new name is a big deal and may be too much to ask for beginners.
>>
>> This is where you might want to consider putting some imports into
>> site.py. That way, you can set up your own customized Python, without
>> waiting for changes to be approved for core (which they probably won't
>> - new builtins have a high requirement for necessity, not just "I
>> don't want to have to type import").
>
> Teaching a beginner a new programming language, but pretending it's
> Python, doesn't sound like a fantastic idea.

It would still be Python, you just teach that certain lines just
always go at the top of your scripts (like "from __future__ import
print_function" if you're on Py2).

ChrisA



More information about the Python-list mailing list