One Python 2.1 idea

Steve Holden sholden at holdenweb.com
Wed Jan 3 02:07:04 EST 2001


Alex Martelli <aleaxit at yahoo.com> wrote in message
news:929n9c013m3 at news1.newsguy.com...
> <rturpin at my-deja.com> wrote in message news:9292tn$jka$1 at nnrp1.deja.com...
>     [snip]
> > Second, a question. Consider the invocation of a method,
> > such as:
> >
> >     x.foo()
> >
> > Does this really cause the lookup of the string "foo"
> > in x's namespace dictionary? The first time? Every time?
>
> Yes, and yes.  No implicit caching.
>
> > Is this also the case when data members are accessed?
>
> Yes once more.
>
>
> Alex
>
Please tell me it at least interns the names ...

regards
 Steve







More information about the Python-list mailing list