← Back to team overview

yade-dev team mailing list archive

[Bug 1455621] Re: documentation bug: getting class name fails

 

It might have been removed. Those things are in
lib/serialization/Serializable.cpp; I grepped the source for
getClassName everywhere and it is not exposed to Python.
gui/qt4/SerializableEditor.py uses __class__.__name__ everywhere. You
can always define an alias by saying "Serializable.name=property(lambda
s: s.__class__.__name__)" somewhere at Yade startup, but I don't think
it is useful to duplicate the functionality python already has.  v.

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1455621

Title:
  documentation bug: getting class name fails

Status in Yet Another Dynamic Engine:
  New

Bug description:
  In the example code of section [1], class.name fails. I couldn't find
  the solution myself, still searching...

  [1] https://yade-dem.org/doc/prog.html?highlight=classname#run-time-
  type-identification-rtti

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1455621/+subscriptions


References