Q2MM / q2mm

Quantum to Molecular Mechanics (Q2MM)
MIT License
24 stars 9 forks source link

Better python2/3 compatabilities, coding styles #49

Closed jeherr closed 5 years ago

jeherr commented 5 years ago

Iterators no longer have .next(), use next()

Use absolute imports and explicit relative imports

Use python3 division to result in float

Changing instances of map() to list comprehension

Changing izip() to zip()

Changing xrange() to range()

Changing any dict.iter() to dict.()

Leaving version switch to deal with basestring

jeherr commented 5 years ago

If you like this documentation it may be good to add it to the wiki for this project under "Development" to reference for future coding style, at least until python2 is effectively no longer used by anyone for Q2MM.