Ahhh! Thanks, didn't know (obviously) about that one!

-joe

On 6/21/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
>
> Actually, type is a function, not a method.
> type(x) == x.__class__
>
> Regards,
> Aidas Bendoraitis aka Archatas
>
>
> On 6/18/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
> >
> > x = '123'
> > x.__class__ will give a reasonable answer, x.type() doesn't. (Python 2.4)
> >
> > If you can get away with using type(), it's probably a lot cleaner to use...
> >
> > -joe
> >
> > On 6/18/07, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote:
> > >
> > > or type()
> > >
> > > On 6/7/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
> > > >
> > > > .__class__
> > > >
> > > > On 6/7/07, Lic. José M. Rodriguez Bacallao <[EMAIL PROTECTED]> wrote:
> > > > > how can I know insede a method the type of my class dynamicaly?
> > > > >
> > > > > --
> > > > > Lic. José M. Rodriguez Bacallao
> > > > > Cupet
> > > > >  >
> > > > >
> > > >
> > > > >
> > > >
> > >
> > > >
> > >
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to