ball icon indicating copy to clipboard operation
ball copied to clipboard

python "Constant" should be python "Constants"

Open anhi opened this issue 10 years ago • 3 comments

Reported by akdehof on 3 Aug 40865214 15:13 UTC Please add python "Constants" and mark "Constant" as deprecated.

anhi avatar Feb 20 '15 02:02 anhi

Commented by akdehof on 23 Nov 40936113 08:40 UTC Deferred to 1.4.1

anhi avatar Feb 20 '15 06:02 anhi

Commented by dstoeckel on 5 Oct 41152001 18:50 UTC This is not so easy to resolve, as introducing a wrapper class Constants clashes with the BALL namespace. Using the PyName annotation it is possible to introduce a new name for Constant, however this would break old scripts.

anhi avatar Feb 20 '15 06:02 anhi

Commented by akdehof on 5 Aug 43145189 14:22 UTC Ok, this is more difficult then expected. In BALL, Constants is a namespace, not a class. But Sip wants a class. So we added a wrapper class called "Constant" which allowed wrapping in python under that name... I think we might solve this eventually by adding a sip module "Constants".

anhi avatar Feb 20 '15 06:02 anhi