Menu

Commit [r9350]  Maximize  Restore  History

The Python 2.x idioms have been removed.

This was done with the python 2.x to 3.x script with the commands:
2to3 -w -f exec relax .

The change is in preparation for Python 3.0, and relax still works with Python versions 2.4, 2.5,
and 2.6.

The changes include:
1) The call to type() has been replaced with isinstance().
2) "while 1" has been replaced with "while True".
3) list sort methods x.sort() have been replaced with a call to sorted(x).

Booleans are instances of int, so the user function argument unit tests will be a massive mess!

bugman 2009-08-21

<< < 1 2 3 4 > >> (Page 2 of 4)
changed /1.3/generic_fns/xplor.py
changed /1.3/prompt/align_tensor.py
changed /1.3/prompt/command.py
changed /1.3/prompt/consistency_tests.py
changed /1.3/prompt/dasha.py
changed /1.3/prompt/deselect.py
changed /1.3/prompt/diffusion_tensor.py
changed /1.3/prompt/dx.py
changed /1.3/prompt/eliminate.py
changed /1.3/prompt/fix.py
changed /1.3/prompt/frame_order.py
changed /1.3/prompt/frq.py
changed /1.3/prompt/grace.py
changed /1.3/prompt/help.py
changed /1.3/prompt/interpreter.py
changed /1.3/prompt/jw_mapping.py
changed /1.3/prompt/minimisation.py
changed /1.3/prompt/model_free.py
changed /1.3/prompt/model_selection.py
changed /1.3/prompt/molecule.py
changed /1.3/prompt/molmol.py
changed /1.3/prompt/monte_carlo.py
changed /1.3/prompt/n_state_model.py
changed /1.3/prompt/noe.py
changed /1.3/prompt/palmer.py
/1.3/generic_fns/xplor.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/align_tensor.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/command.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/consistency_tests.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/dasha.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/deselect.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/diffusion_tensor.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/dx.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/eliminate.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/fix.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/frame_order.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/frq.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/grace.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/help.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/interpreter.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/jw_mapping.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/minimisation.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/model_free.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/model_selection.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/molecule.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/molmol.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/monte_carlo.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/n_state_model.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/noe.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/palmer.py Diff Switch to side-by-side view
Loading...
<< < 1 2 3 4 > >> (Page 2 of 4)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.