Is 'everything' a refrence or isn't it?

Fredrik Lundh fredrik at pythonware.com
Sun Jan 15 15:54:49 CET 2006


Bryan Olson wrote:

> >>Python queries objects for their types; it's now a user-visible feature:
> >>
> >>     >>> 'hello'.__class__
> >>     <type 'str'>
> >
> >
> > To get an object's type, use type(x).  This has always been a user-
> > visible feature (along with id(x)).
>
> Commanding that I get it some other way isn't going to change
> that that type is now user-accessible as an attribute of the
> object.

so the object in my example has the type "oops" ?

> The story continued.

what story?  looks like kookery to me.  I recommend moving this thread
to comp.lang.funny.snake.farm

</F>






More information about the Python-list mailing list