why is self not passed to id()?

Fredrik Lundh fredrik at pythonware.com
Thu Sep 4 22:42:28 CEST 2008

Ruediger wrote:

> Executing following little program gives me an TypeError.
> What makes me wonder is that foo does get an argument passed while bar
> doesn't. Can anyone explain why??????

 >>> id
<built-in function id>
 >>> lambda x: id(x)
<function <lambda> at 0x00C07C30>

any special reason why you're not using Python to write Python programs, 


More information about the Python-list mailing list