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/2000-July/007018.html below:

[Python-Dev] Consistency questions

[Python-Dev] Consistency questions [Python-Dev] Consistency questionsM.-A. Lemburg mal@lemburg.com
Thu, 20 Jul 2000 19:13:23 +0200
Paul Prescod wrote:
> 
> #1. Why does can I overwrite the "standard output object" with
> assignment syntax
> 
> sys.stdout=mystdoutobj
> 
> But I have to add a profile function with function syntax:
> 
> sys.setprofile( myprofilefunc )

.set/get APIs usually interface to C flags or variables which
are not meant to be used directly (often due to performance
reasons).
 
> #2. Why doesn't dir( obj ) return inherited methods?

Maybe because inherited methods are not local to the object.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



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