Hi Is there anyway how I can test, if an object (of any kind) has a special property.? Regards Jens
hasattr() --On Montag, 3. März 2003 15:34 +0100 "Jens JB. Bjerre" <jens@bkinformatik.dk> wrote:
Hi
Is there anyway how I can test, if an object (of any kind) has a special property.?
Regards
Jens
-- --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
Andreas Jung wrote:
hasattr()
--On Montag, 3. März 2003 15:34 +0100 "Jens JB. Bjerre" <jens@bkinformatik.dk> wrote:
Is there anyway how I can test, if an object (of any kind) has a special property.?
Depending on your problem hasProperty() will be better than hasattr(), because hasattr() returns true for acquired properties as well. -mj -- Deutsche/German Zope User Group (DZUG) http://www.dzug.org/Members/mjablonski/
participants (3)
-
Andreas Jung -
Jens JB. Bjerre -
Maik Jablonski