Skip to content

example2 error on running #13

@zangetsudo

Description

@zangetsudo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions