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/2004-August/047849.html below:

[Python-Dev] Classes that claim to be defined in __builtin__ but aren't

[Python-Dev] Classes that claim to be defined in __builtin__ but aren'tGreg Ewing greg at cosc.canterbury.ac.nz
Mon Aug 16 03:09:31 CEST 2004
Guido:

> But list and dict are *not* functions, they are types, and they can be
> used for subclassing and type checking too.  These are the precedent
> for placing generator etc. in __builtin__.

The real question seems to be whether __builtin__ should contain *all*
built-in types, including internal ones, or only those intended for
public use. Do you have an opinion about that, Guido?

I suppose it's reasonable to put them all in __builtin__, since as you
say, they can be useful for type checking even if you can't or rarely
want to instantiate them yourself.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+
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