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/2002-May/024775.html below:

[Python-Dev] Removing types module from stdlib

[Python-Dev] Removing types module from stdlib [Python-Dev] Removing types module from stdlibNeal Norwitz neal@metaslash.com
Fri, 31 May 2002 10:08:29 -0400
Should I start converting/removing uses of the types module where possible?

So where we have:
	assert type(lineno) is types.IntType
	assert type(lineno) in (types.IntType, types.LongType)

would become:
	assert type(lineno) is int
	assert type(lineno) in (int, long)

or
	assert isinstance(lineno, int)
	assert isinstance(lineno, (int, long))

Preferences?

Neal




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