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/024385.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.27Guido van Rossum guido@python.org
Fri, 24 May 2002 15:20:28 -0400
Looks like a good starting point.  Note the convenience of
isinstance(x, (t1, t2, t3)).

>         BuiltinFunctionType             ???
>         BuiltinMethodType               ???
>         ClassType                       ???
>         CodeType                        ???
>         DictProxyType                   ???
>         FrameType                       ???
>         FunctionType, LambdaType        ???                           
>         GeneratorType                   ???
>         InstanceType                    ???
>         MethodType, UnboundMethodType   ???
>         ModuleType                      ???
>         TracebackType                   ???

None of these will be greatly missed except by introspective code.
Hm, I wonder if inspect would be the right module to export these
types?  Or maybe one should simply be encouraged to use
inspect.ismodule() etc.?  (The type names are still somewhat useful
because they can be used as keys for dispatch tables.)

--Guido van Rossum (home page: http://www.python.org/~guido/)




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