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 3 of 4)
changed /1.3/prompt/pcs.py
changed /1.3/prompt/pipe.py
changed /1.3/prompt/pymol.py
changed /1.3/prompt/rdc.py
changed /1.3/prompt/relax_data.py
changed /1.3/prompt/relax_fit.py
changed /1.3/prompt/residue.py
changed /1.3/prompt/results.py
changed /1.3/prompt/select.py
changed /1.3/prompt/sequence.py
changed /1.3/prompt/spectrum.py
changed /1.3/prompt/spin.py
changed /1.3/prompt/state.py
changed /1.3/prompt/structure.py
changed /1.3/prompt/temperature.py
changed /1.3/prompt/value.py
changed /1.3/relax_io.py
changed /1.3/sample_scripts/full_analysis.py
changed /1.3/specific_fns/base_class.py
changed /1.3/specific_fns/consistency_tests.py
changed /1.3/specific_fns/frame_order.py
changed /1.3/specific_fns/jw_mapping.py
changed /1.3/specific_fns/model_free/mf_minimise.py
changed /1.3/specific_fns/n_state_model.py
changed /1.3/specific_fns/relax_fit.py
/1.3/prompt/pcs.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/pipe.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/pymol.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/rdc.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/relax_data.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/relax_fit.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/residue.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/results.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/select.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/sequence.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/spectrum.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/spin.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/state.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/structure.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/temperature.py Diff Switch to side-by-side view
Loading...
/1.3/prompt/value.py Diff Switch to side-by-side view
Loading...
/1.3/relax_io.py Diff Switch to side-by-side view
Loading...
/1.3/sample_scripts/full_analysis.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/base_class.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/consistency_tests.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/frame_order.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/jw_mapping.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/model_free/mf_minimise.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/n_state_model.py Diff Switch to side-by-side view
Loading...
/1.3/specific_fns/relax_fit.py Diff Switch to side-by-side view
Loading...
<< < 1 2 3 4 > >> (Page 3 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.