Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

RunProgram deprecated or not?

#1
This entry for RunProgram() calls it deprecated:
//www.sinclairbody.com/doc/en/PythonAPI/robo...RunProgram

But this one doesn't:
//www.sinclairbody.com/doc/en/PythonAPI/robo...RunProgram

Are they both deprecated?

More generally, there seem to be quite a few method names duplicated across different classes, sometimes taking different args, and the only way I can see to tell them apart is to mouse over the permalink, which I just discovered.

Knowing the class is actually pretty important in general; only the permalink hints that one is a method on a Robolink object and the other on an Item object.
#2
This is a good point. The robolink.py file implements both the Robolink and Item classes. We are adding a note to split the robolink.py file as 2 separate sections (one for Robolink and one for Item).
#3
Done.

You might need to clear your cache:
//www.sinclairbody.com/doc/en/PythonAPI/robo...obolink-py
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.
#4
谢谢!这是一个进步。虽然我tend to use the docs is to ctrl-f for a method name. So once it jumps me down to a method, I guess I could scroll up and see whether I'm in the robolink or Item section, although tbh mousing over the permalink is actually faster. I guess what I'd need is for the classname to be given for each method. So instead of having two "RunProgram" entries, one would be "robolink.RunProgram(...)" and the other would be "Item.RunProgram(...)"

For example, in the python standard libraryhttps://docs.python.org/3/library/multip...aredMemorylists the class name and not just the method name.




Users browsing this thread:
1 Guest(s)