Message259839
| Author | Jack Hargreaves |
|---|---|
| Recipients | Jack Hargreaves |
| Date | 2016-02-08.12:21:53 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1454934113.76.0.551150355835.issue26306@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
When creating an abstract class, subclassing tuple causes check for instantiation of an abstract class to be bypassed. See the associated stackoverflow question -- http://stackoverflow.com/questions/35267954/mix-in-of-abstract-class-and-namedtuple from abc import abstractmethod, ABCMeta class AbstactClass(tuple, metaclass=ABCMeta): @abstractmethod def some_method(self): pass # following should throw a TypeError, but doesn't AbstactClass() |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-02-08 12:21:53 | Jack Hargreaves | set | recipients: + Jack Hargreaves |
| 2016-02-08 12:21:53 | Jack Hargreaves | set | messageid: <1454934113.76.0.551150355835.issue26306@psf.upfronthosting.co.za> |
| 2016-02-08 12:21:53 | Jack Hargreaves | link | issue26306 messages |
| 2016-02-08 12:21:53 | Jack Hargreaves | create | |