Message87854
| Author | terry.reedy |
|---|---|
| Recipients | pitrou, terry.reedy, thet |
| Date | 2009-05-16.03:47:20 |
| SpamBayes Score | 3.5134524e-06 |
| Marked as misclassified | No |
| Message-id | <1242445641.92.0.445913480064.issue5996@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I presume you claim the dict example to be a bug in relation to "A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods and properties are overridden." There is the same difference with @abstractproperty Windows, 3.0.1 class C(metaclass=abc.ABCMeta): @abc.abstractmethod def f(self): return True class C2(dict,metaclass=abc.ABCMeta): @abc.abstractmethod def f(self): return True c2=C2() print(c2.f()) c=C() # prints True ... TypeError: Can't instantiate abstract class C with abstract methods f |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2009-05-16 03:47:22 | terry.reedy | set | recipients: + terry.reedy, pitrou, thet |
| 2009-05-16 03:47:21 | terry.reedy | set | messageid: <1242445641.92.0.445913480064.issue5996@psf.upfronthosting.co.za> |
| 2009-05-16 03:47:20 | terry.reedy | link | issue5996 messages |
| 2009-05-16 03:47:20 | terry.reedy | create | |