Hallöchen!

Tim Shaffer writes:

> Why should an author instance ever return True for
> isinsnace(author_instance, Translator). That's not really the way
> Python or Django are designed to work.

Yes, but normally, you have tools like type(instance) or
instance.__class__.  However, in Django, you don't.  That's the
problem.

Besides, in Python,

for instance in instances:
    instance.do_something()

calls the method of the respective class of "instance".  However, in
Django,

for instance in RootClass.objects.all():
    instance.do_something()

will *always* call RootClass.do_something(), which is almost never
what you want.

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                   Jabber ID: torsten.bron...@jabber.rwth-aachen.de
                                  or http://bronger-jmp.appspot.com

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

Reply via email to