Message184641
| Author |
ronaldoussoren |
| Recipients |
BreamoreBoy, ajaksu2, arigo, mwh, rhettinger, ronaldoussoren, terry.reedy |
| Date |
2013年03月19日.15:41:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1363707661.24.0.26997307197.issue1173475@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I do have a usecase for this: subclasses of int.
Having slots would be nice for a reasonably efficient implementation of named constants (as recently discussed on python-ideas), and I'm already using a subclass of int of PyObjC to attach a single other value to a Python integer. In both cases the overhead of the __dict__ is pretty large. |
|