[pypy-issue] Issue #2108: Inheriting from NoneType not consistent with CPython (pypy/pypy)

Brecht Machiels issues-reply at bitbucket.org
Wed Aug 5 18:18:12 CEST 2015


New issue 2108: Inheriting from NoneType not consistent with CPython
https://bitbucket.org/pypy/pypy/issues/2108/inheriting-from-nonetype-not-consistent

Brecht Machiels:

The following is OK on CPython (2 and 3), but fails on PyPy:

```
#!python

class Object(object): pass
class Null(Object, type(None)): pass
```

This should perhaps be considered a bug in CPython though, as 

```
#!python

bool(Null()) == True
```

and the following fail on CPython too:

```
#!python

class Null(object, type(None)): pass
```

```
#!python

class Null(type(None)): pass
```





More information about the pypy-issue mailing list