Hi all
Is there any way to intercept calls to methods ? like the __setattribute__
medthod does ?
Thanks
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I'm using the dir() function, but this give me an alphabetic ordered list,
is there any way to do the same but getting an appearance ordered list ?.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
sorry this is not true:
There is a think left, i can't jus compare this:
if type(somethingA) == type(somthingB):
I transform type() to a string and then compare them.. (like in the code
below)
Thanks
___
Tutor maillist - Tutor@python.org
http://mai
Finally, i decide to make this:
from metatag import MetaTag
from htmltools import TagHTML
class Structure(object):
class A(TagHTML):
pass
class B(TagHTML):
pass
def get(self):
__all__ = dir(self)
classes = filter(lambda k: type(getattr(self, k)) == typ
well it's true, using list it's scalable too. But It's doesn't looks
friendly to the user to write the document. Syntacticly looks nice to keep
some of the original structure of the html ( I mind, put the thags inside
the document, and so on ).
I'll making some test this days to see what i get,
Hi All,
I need to have a listing of all classes defined inside a class body,
something like this:
class A(object):
class B(object):
pass
class C(object):
pass(object):
and i need to get the classes to instantiate them.. something like this.
classes =[A,B]
Any ideas ? do