1 .__nonzero__() => memory fault (2.2 win32)

Neal Norwitz neal at metaslash.com
Thu Apr 4 19:36:00 EST 2002


Erik Max Francis wrote:
> 
> Bengt Richter wrote:
> 
> >  Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
> >  Type "help", "copyright", "credits" or "license" for more
> > information.
> >  >>> hasattr(1, '__nonzero__')
> >  1
> >  >>> 1 .__nonzero__()
> >
> > (You get a memory fault).
> 
> Whoops, I get the same thing.

This is fixed in 2.2.1, which is due out in about a week:

[neal at epoch 2.2]$ ./python 
Python 2.2.1 (#3, Apr  4 2002, 19:34:25) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 .__nonzero__()
1
>>> 

Neal



More information about the Python-list mailing list