It's not, the old code insisted on a string only and then looked that up in ``stats.distributions`` with an ``eval`` statement. This accepts any ``rv_generic`` subclass, also user-defined ones.