Removal of string-based object resolution

Posted by Andre Louw-2 on
URL: http://quantlib.414.s1.nabble.com/Removal-of-string-based-object-resolution-tp3371.html


Hi,

I notice that all the string-based object resolution have been removed from the SWIG wrapper files (calendars, currencies, daycounters). Is there an alternative mechanism that I'm missing to resolve specific implementations of these classes based on an input string?

I.e previously, in Python, something like "cal = Calendar('usa')" would resolve to the UnitedStates() implementation of Calendar. Without this mechanism I would have to resolve this in Python, which I'm assuming "off the cuff" would have a performance impact?

If there is no alternative, any objections to reworking this to include all the latest implementations?

Andre