Message138289
| Author |
Julian |
| Recipients |
Julian, r.david.murray, rhettinger |
| Date |
2011年06月13日.23:53:49 |
| SpamBayes Score |
3.7054804e-12 |
| Marked as misclassified |
No |
| Message-id |
<1308009229.95.0.235390735299.issue12330@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Oh boy. Reading the comment in Issue9212 more carefully now that you said that I see that Mr. Hettinger said exactly that. I apologize for missing it the first time.
"Concrete classes are allowed to have more features than the corresponding ABC. The ABCs are not intended to be full-featured; instead, they specify the part of the API that will be guaranteed. For example, the union() method for built-in sets allows two or more set arguments, but the corresponding method for the ABC is limited to two arguments. This was an intentional difference, designed to make it easier for people to implement a Set class."
I suppose I should close this, unless there's some hope perhaps of some elaboration on that last line. Why couldn't collections provide the named methods too (in what way is this "easier"?) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年06月13日 23:53:50 | Julian | set | recipients:
+ Julian, rhettinger, r.david.murray |
| 2011年06月13日 23:53:49 | Julian | set | messageid: <1308009229.95.0.235390735299.issue12330@psf.upfronthosting.co.za> |
| 2011年06月13日 23:53:49 | Julian | link | issue12330 messages |
| 2011年06月13日 23:53:49 | Julian | create |
|