• Raymond Hettinger's avatar
    Fix-up the _from_iterable() method to return instances of the subclass where it is used. · 8284c4a7
    Raymond Hettinger yazdı
    In its previous form, it always returned instance of frozenset which makes this ABC
    nearly useless as a mixin.  In its new form, it needs to be able to assume that the
    constructor will take a frozenset input.  This will usually be true.  If it is not,
    then only one method (this one) will need to be overriden by the subclass to let
    it know about the unique constructor signature.  Will add info on this to the docs.
    8284c4a7
_abcoll.py 14.8 KB