-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
some examples from documentation do not run out of the box on Python 3.4 #234
Comments
Matthis Thorade (@thorade) wrote: OK, this might be Python 2 versus Python 3. Just guessing.
Two lines changed: io instead of StringIO and parantheses for print |
Changes by Matthis Thorade (@thorade):
|
Changes by Matthis Thorade (@thorade):
|
Michael Bayer (@zzzeek) wrote: ill accept a pull request that ensures examples are py3k compatible. |
Michael Bayer (@zzzeek) wrote: oh just the homepage? nothing in the docs themselves? |
Matthis Thorade (@thorade) wrote: The example on http://www.makotemplates.org/ needs to be changed to
I'll work my way through the documentation in the next days, make a list and possibly send a pull request afterwards. |
Matthis Thorade (@thorade) wrote: Closing this for now, if I happen to see any example that does not work on Py3 I'll reopen or send a PR. |
Changes by Matthis Thorade (@thorade):
|
Migrated issue, originally created by Matthis Thorade (@thorade)
Warning: I am a Python and Mako newbie, so I might be missing something obvious.
I downloaded WinPython 64bit 3.4.2.3 and installed Mako using pip.
The first example from the Mako homepage
did not work for me.
To make it work, I had to put parantheses around the print part, like this:
Maybe you want to adapt that example on the homepage and in the documentation, to save some unexperienced people some time.
The text was updated successfully, but these errors were encountered: