Menu

#698 PyTango.Util discrepancy

closed-fixed
None
PyTango
5
2015-02-06
2014-12-17
No

There is a discrepancy in the API provided by:

util1 = PyTango.Util(args)
util2 = PyTango.Util.instance()

Some methods are not usable in some of the forms. Example:

>>> util1.get_device_list("*")
Python argument types in
    _Util.get_device_list(Util, str)
did not match C++ signature:
    get_device_list(Tango::Util {lvalue}, std::string)

Side note:
BTW, the first form is incorrect. To adhere to the C++ API it should be written as:
util1 = PyTango.Util.init(args)

This API exists in PyTango but pogo is not generating it.
(note: even if it is used it triggers the bug)

Discussion

  • Tiago Coutinho

    Tiago Coutinho - 2015-02-06
    • status: open --> closed-fixed
     
  • Tiago Coutinho

    Tiago Coutinho - 2015-02-06

    Fixed in latest PyTango SVN trunk
    Will become visible in next PyTango 8.1.6

     

Log in to post a comment.