Message138290
| 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:23 | r.david.murray | set | recipients:
+ r.david.murray, rhettinger, Julian |
| 2011年06月14日 00:24:22 | r.david.murray | set | messageid: <1308011062.94.0.560589474676.issue12330@psf.upfronthosting.co.za> |
| 2011年06月14日 00:24:22 | r.david.murray | link | issue12330 messages |
| 2011年06月14日 00:24:22 | r.david.murray | create |
|