Message157113
| Author |
eric.araujo |
| Recipients |
Arfrever, Jim.Jewett, eric.araujo, eric.snow, georg.brandl, giampaolo.rodola, gvanrossum, michael.foord, pitrou, poq, r.david.murray, rhettinger, skrah, vstinner |
| Date |
2012年03月29日.23:15:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333062921.67.0.836301984067.issue14386@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> MappingView is a strange ABC: it should probably declare __contains__ as an abstract method.
I think that was not done because it would not be very useful: MappingView seems to exist only as a base class for the other *View, which define __contains__.
> I don't see why it doesn't inherit from Set (which would avoid the need of declaring __contains__,
> Set is a Container) whereas KeysView, ItemsView and ValuesView do inherit from Set.
Not ValuesView, because you may have the same object as more than one value. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月29日 23:15:21 | eric.araujo | set | recipients:
+ eric.araujo, gvanrossum, georg.brandl, rhettinger, pitrou, vstinner, giampaolo.rodola, Arfrever, r.david.murray, michael.foord, skrah, eric.snow, poq, Jim.Jewett |
| 2012年03月29日 23:15:21 | eric.araujo | set | messageid: <1333062921.67.0.836301984067.issue14386@psf.upfronthosting.co.za> |
| 2012年03月29日 23:15:21 | eric.araujo | link | issue14386 messages |
| 2012年03月29日 23:15:21 | eric.araujo | create |
|