Why is it different from the example on the tutorial?
roy at panix.com
Sun Jul 6 18:01:08 CEST 2014
In article <6fd77d6a-3487-474b-bb96-8da6ab8008f5 at googlegroups.com>,
Rick Johnson <rantingrickjohnson at gmail.com> wrote:
> On Sunday, July 6, 2014 9:34:44 AM UTC-5, Roy Smith wrote:
> > * You can print dict(foo), which just prints out the attributes the
> > object has.
> Looks like a typo there.
> I think you probably meant to say "dir(foo)"
This is true. Good catch.
More information about the Python-list