python-cookbook icon indicating copy to clipboard operation
python-cookbook copied to clipboard

example2 error on running

Open zangetsudo opened this issue 8 years ago • 0 comments

python-cookbook/src/8/extending_classes_with_mixins/example2.py

that's seem not a solutino for minin class which needs init method, i have checked on python 2.7, this is what i got:

C:\Python27\python.exe D:/dev/python/pyqt/workapce/pyqt/widget/test/test.py File "D:/dev/python/pyqt/workapce/pyqt/widget/test/test.py", line 2 def init(self, *args, _restrict_key_type, **kwargs): ^ SyntaxError: invalid syntax

zangetsudo avatar Mar 15 '17 07:03 zangetsudo