[Python-Dev] removing the new and types modules (original) (raw)
henning.vonbargen at arcor.de henning.vonbargen at arcor.de
Wed Nov 28 22:23:24 CET 2007
- Previous message: [Python-Dev] [poll] New name for __builtins__
- Next message: [Python-Dev] removing the new and types modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sorry if this is a dumb question, but are there actually good reasons to remove "types"? IMHO the types module helps keeping code readable. For example "if type(obj) == FloatType" is just more readable than "if type(obj) == type(1.0)". Luckily Python does not distinguish float and double like other languages
- otherwise it wouldn't be clear for the average programmer if 1.0 is a float or a double constant.
Henning
- Previous message: [Python-Dev] [poll] New name for __builtins__
- Next message: [Python-Dev] removing the new and types modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]