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/024258.html below:

[Python-Dev] Re: [Python-checkins] python/dist/src/Lib types.py,1.26,1.27

[Python-Dev] Re: [Python-checkins] python/dist/src/Lib types.py,1.26,1.27Barry A. Warsaw barry@zope.com
Wed, 22 May 2002 12:45:32 -0400
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

    GvR> I think the plan is to stop recommending the types module --
    GvR> maybe deprecating it too.

Why?  Isn't this still a useful idiom:

from types import *
...
if isinstance(x, StringTypes):
    # blah

Yah, I know many of the fundamental types are available as builtins,
but not all of them.  Or are we saying that we'd now rather see the
above written as:

if isinstance(x, (str, unicode)):
    # blah

?
-Barry




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