PyPy 'super' object has no attribute ....

Issue #2051 invalid
Yiak Wang Yi created an issue

I thinks this is a bug with PyPy. Initially, my codes works very well with Python3 compiler. However when I run the my codes by pypy:

<code> super(matrixArrayLists, self).clear() </code>the super class is type object 'list'

</code> Wangs-MacBook-Pro:PyMatrix wangyi$ /Users/wangyi/pypy3-2.4.0-osx64/bin/pypy3 matrixArray.py Traceback (most recent call last): File "matrixArray.py", line 1840, in <module> [['300', '301', '302'], ['310', '311', '312'], ['320', '321', '322']] File "matrixArray.py", line 1643, in init super(matrixArrayNum, self).init(args, *hints) File "matrixArray.py", line 404, in init self.setUp( args[0], self.r, self.c, self.ori_mem ) File "matrixArray.py", line 777, in setUp self.clear() File "matrixArray.py", line 763, in clear super(matrixArrayLists, self).clear() <span style="font-color:red">AttributeError: 'super' object has no attribute 'clear'</span> </code>

Can anybody show me how to resolve this annoying problem.

B.T.W, I am new to pypy and want to use pip3 install some packages like statistics in MacOS. The issue is no latest 'pip3' available for my curl, where those available are too old for python2.

Is there anyone show me how to use curl -O http to download 'pip3' AND use PyPy + pip3 to install new packages to Pypy compiler?

Comments (1)

  1. Log in to comment