bool value 'False' no memory address?

2007-04-04 Thread autin
such as:
>>>b = False
>>>id(b)
Traceback (most recent call last):
  File "", line 1, in ?
TypeError: 'bool' object is not callable

---
how to desc it?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: bool value 'False' no memory address?

2007-04-04 Thread autin
Python 2.4.4 Linux debian 2.6.8-3-386
any wrong?
> > ---
> > how to desc it?
> >>> b = False
> >>> id(b)
> 135311308
>
> python 2.4, FreeBSD 6.2


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: bool value 'False' no memory address?

2007-04-04 Thread autin
and test on
Python 2.3.5
2.4.32 debian
is ok!maybe its bug for unstable debian version!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: bool value 'False' no memory address?

2007-04-04 Thread autin
My false!uh,i didnot understand it clearly.


On Apr 4, 6:46 am, Bruno Desthuilliers  wrote:
> autin a écrit :
>
> > such as:
> >>>> b = False
> >>>> id(b)
> > Traceback (most recent call last):
> >   File "", line 1, in ?
> > TypeError: 'bool' object is not callable
>
> IMVHO, you shadowed the builtin id() function with a boolean somewhere
> else...
>
> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> b = False
>  >>> id(b)
> 135506080
>  >>>
>  >>> id = False
>  >>> id(b)
> Traceback (most recent call last):
>File "", line 1, in ?
> TypeError: 'bool' object is not callable
>  >>>
>
> My 2 cents...


-- 
http://mail.python.org/mailman/listinfo/python-list