examining an initial, pristine python3 shell session

Lie Ryan lie.1296 at gmail.com
Wed Jan 20 16:05:44 CET 2010


On 01/20/10 22:59, Robert P. J. Day wrote:
> then i might go a bit further to examine some of *those* objects.  i
> admit it might seem a bit dry, but i think it would be handy to have a
> handle on what a clean shell session looks like before starting to
> import things, then seeing how that importing changes the session
> before getting down to actual programming.

I would recommend to teach these introspection capabilities *after* some
basic programming. If you tell them these dir(), globals(), __name__,
etc before even getting into basic python, your precious newbies would
sit there thinking "what the hell is he talking about?"



More information about the Python-list mailing list