Message225658
| Author |
Claudiu.Popa |
| Recipients |
Claudiu.Popa, Florian.Dold, yaubi |
| Date |
2014-08-22.11:07:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1408705672.01.0.249710978654.issue22098@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
That makes sense. Quoting from the data model: "When inheriting from a class without __slots__, the __dict__ attribute of that class will always be accessible, so a __slots__ definition in the subclass is meaningless".
In the current case, for the little-endian systems, which I presume you have, BigEndianStructure is a subclass of Structure, but it doesn't have a definition of __slots__ in the body, leading to your results, according to the specificaton from the data model. In this case, it makes sense for Point1 to have __slots__, but not for Point2. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014-08-22 11:07:52 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, yaubi, Florian.Dold |
| 2014-08-22 11:07:52 | Claudiu.Popa | set | messageid: <1408705672.01.0.249710978654.issue22098@psf.upfronthosting.co.za> |
| 2014-08-22 11:07:51 | Claudiu.Popa | link | issue22098 messages |
| 2014-08-22 11:07:51 | Claudiu.Popa | create | |
|