[Doc-SIG] __self__ on built-in functions
fuzzyman at voidspace.org.uk
Mon Feb 13 18:40:57 CET 2012
On 13/02/2012 16:43, Роман Донченко wrote:
> The language reference for Python 3.2 (and the development version, as
> well), says this in section 3.2:
> Built-in functions
> A built-in function object is a wrapper around a C function. Examples
> of built-in functions are len() and math.sin() (math is a standard
> built-in module). <...> Special read-only attributes: <...> __self__
> is set to None (but see the next item) <...>.
> Now I don't know whether it's a bug in Python or in the docs, but that
> doesn't seem to be the case:
> ActivePython 184.108.40.206 (ActiveState Software Inc.) based on
> Python 3.2.2 (default, Sep 8 2011, 10:55:13) [MSC v.1500 64 bit
> (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> <module 'builtins' (built-in)>
> <module 'io' (built-in)>
>>>> import math
> <module 'math' (built-in)>
Yep, that seems like a documentation bug. Please file an issue for it.
All the best,
> Doc-SIG maillist - Doc-SIG at python.org
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
More information about the Doc-SIG