A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-November/075412.html below:

[Python-Dev] removing the new and types modules

[Python-Dev] removing the new and types modules [Python-Dev] removing the new and types moduleshenning.vonbargen at arcor.de henning.vonbargen at arcor.de
Wed Nov 28 22:23:24 CET 2007
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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4