homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Julian, r.david.murray, rhettinger
Date 2011年06月14日.00:24:22
SpamBayes Score 2.7790114e-07
Marked as misclassified No
Message-id <1308011062.94.0.560589474676.issue12330@psf.upfronthosting.co.za>
In-reply-to
Content
collections.Set (in python 3.3, collections.abc.Set) is the *definition* of the minimal API. To construct a class that conforms to the minimal definition is certainly easier than constructing one that supports all of the methods that the set builtin does.
I suppose it would be possible for the collections module to provide a 'SetMixin' or some such that provided implementations of the other methods in terms of the required methods, but that would definitely be a feature request, and probably a topic that should be discussed first on the python-ideas mailing list.
History
Date User Action Args
2011年06月14日 00:24:23r.david.murraysetrecipients: + r.david.murray, rhettinger, Julian
2011年06月14日 00:24:22r.david.murraysetmessageid: <1308011062.94.0.560589474676.issue12330@psf.upfronthosting.co.za>
2011年06月14日 00:24:22r.david.murraylinkissue12330 messages
2011年06月14日 00:24:22r.david.murraycreate

AltStyle によって変換されたページ (->オリジナル) /