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/047556.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't [Python-Dev] Classes that claim to be defined in __builtin__ but aren'tJim Fulton jim at zope.com
Tue Aug 10 17:19:04 CEST 2004
Nick Bastin wrote:
> 
> On Aug 9, 2004, at 6:16 PM, Jim Fulton wrote:
> 
>> James Y Knight wrote:
>>
>>> IMO classes ought to actually appear in __builtin__ if they claim 
>>> they are defined there. Doing otherwise breaks reflection, as you 
>>> have to add a special case for these class names to use the 
>>> appropriate object from the types module instead.  Thoughts?
>>
>>
>> I agree.
> 
> 
> I think this should stand for functions as well.  help() is a good 
> example.  It's a bit confusing for newbies that help.__module__ is 
> 'site', but 'site' isn't in their local namespace.

Yup.

Jim


-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
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