3 ms·
Are you sure you want to use __repr__ in this way? You'll end up with 'None' instead of None at the end.
by bayareaguy 19y ago
Are you sure you want to use __repr__ in this way? You'll end up with 'None' instead of None at the end.
- deleted 19y ago[deleted]
- deleted 19y ago[deleted]
- aston 19y agoEh, I don't think the repr matters much. What does matter is actually getting all of the other methods implemented (stuff like cmp, eq, etc.). They're all basically pass-throughs, though. Even with that, I think it's still broken in some ways. I should learn more about what Python does for type conversions.
- deleted 19y ago[deleted]