that's surly anachronism :) o.__class__ is a little more typing and will surely scare newbies. moreover, type(x) and x.__class__ can return different things (you can fool __class__, but not type()).
for my part, i'm fine with any form that makes a distinction between the metaclass "type" and the inquire-type "type". call it o.__class__, gettype() or typeof(), just don't mix that with the metaclass -tomer On 7/30/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > tomer filiba schrieb: > > so why not choose the "get%s()" notation? > > Why not o.__class__? > > Regards, > Martin > _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com