[Edu-sig] visualizing namespaces

kirby urner kirby.urner at gmail.com
Sun May 27 19:26:28 CEST 2012


Steve Holden was asking on the PSF members list (some overlap with
here) for other ways to diagram / teach about namespaces in his
slides.

This is the slide show he's talking about.

http://holdenweb.com/files/PythonIntro.pdf  (namespaces = like clouds)

After some back and forth, another visual:

http://www.flickr.com/photos/17157315@N00/7276024654/in/photostream

The namespace is a way objects on the heap get to be "thought of" by
the interpreter.

The "thought balloon" (similar to Steve's cloud) in contrast to a pile
of rocks (objects) belongs to the Python inside.

Kirby


More information about the Edu-sig mailing list