Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong python example? #2

Closed
aschnell opened this issue Jan 20, 2015 · 2 comments
Closed

wrong python example? #2

aschnell opened this issue Jan 20, 2015 · 2 comments

Comments

@aschnell
Copy link

AFAIS the example at https://github.com/swig/www/blob/master/Doc3.0/Python.html#L2865 should read super(mymodule.Foo, self).__init__(foo).

@ojwb
Copy link
Member

ojwb commented Jan 20, 2015

That documentation is generated - the master version is in a different repo:

https://github.com/swig/swig/blob/master/Doc/Manual/Python.html#L2865

I'm not really a Python coder and so can't usefully comment on the appropriateness of the change, but if it does need fixing, then submitting a pull request against the main SWIG repo would likely get it done sooner.

wsfulton added a commit to swig/swig that referenced this issue Feb 2, 2015
@wsfulton
Copy link
Member

wsfulton commented Feb 2, 2015

Indeed the documentation was wrong. Your change doesn't work though and I also couldn't get super to work for Python 2. I've fixed the docs in swig/swig@76d813f. I could get the new Python 3 super syntax to work and so I've added this into the docs.

@wsfulton wsfulton closed this as completed Feb 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants