We want to make writing Python 3 an easy transition for current developers. I think a notebook could be a nice way to illustrate the changes from Python 2 to Python 3. There's a lot of nice examples here, although it might behoove us to be a little more concise for PmagPy people. Here's what seems important to me to include, in no particular order:
Print function vs print statement
Relative imports
Exception raising/catching syntax
Strings (this is the change I am least clear on for ramifications in the bulk of our code)
generator vs. list (range, map, filter, {}.keys(), {}.values, {}.items())
We want to make writing Python 3 an easy transition for current developers. I think a notebook could be a nice way to illustrate the changes from Python 2 to Python 3. There's a lot of nice examples here, although it might behoove us to be a little more concise for PmagPy people. Here's what seems important to me to include, in no particular order:
Print function vs print statement
Relative imports
Exception raising/catching syntax
Strings (this is the change I am least clear on for ramifications in the bulk of our code)
generator vs. list (range, map, filter, {}.keys(), {}.values, {}.items())
Input vs. raw_input
Division
Additions? Subtractions?