3 ms·
- Python does not implement nullability as an ADT. - Python does not have a type system worth mentioning.
by gorena 11y ago
- Python does not implement nullability as an ADT.
- Python does not have a type system worth mentioning.
- AstralStorm 11y agoNullability is an interface, not a data type. Python objects can always be None, as per duck typing. Python has a strong dynamic typing system, with metatypes, type rewriting and so on. You couldn't be more wrong. What it is missing is an easy way to declare interfaces - the idea is to use duck typing and handling exceptions when something goes wrong.
- spion 11y agoIf its None, it neither looks, acts nor quacks like a duck.