Open eltoder opened 9 months ago
Huh. That's weird. Git logs tell me that that code is from 2004, but give me no hint about why we wrote it. I'd deprecate it for a release or two and then remove it.
Deprecation done in #612. Let's circle back in a while.
Thank you.
I've found the following code in the Python SWIG bindigs:
This allows adding/subtracting tuples of size 2 to/from Dates as a shortcut for using Period class. As far as I can tell, this is not documented and not tested. It's also not any faster than using Periods, since it is implemented in python. In fact, this is slowing down normal operations and is one of the blockers for using SWIG
-builtin
option.Is this feature really needed? If it is desired, it can be implemented more generally and efficiently using typemaps. It seems rather dubious to me though, so if possible I'd vote to remove it altogther.