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 1 of 4)
changed /1.3/colour.py
changed /1.3/data/__init__.py
changed /1.3/data/diff_tensor.py
changed /1.3/data/mol_res_spin.py
changed /1.3/data/relax_xml.py
changed /1.3/docs/2to3_checklist
changed /1.3/docs/latex/fetch_docstrings.py
changed /1.3/float.py
changed /1.3/generic_fns/align_tensor.py
changed /1.3/generic_fns/angles.py
changed /1.3/generic_fns/diffusion_tensor.py
changed /1.3/generic_fns/grace.py
changed /1.3/generic_fns/model_selection.py
changed /1.3/generic_fns/mol_res_spin.py
changed /1.3/generic_fns/monte_carlo.py
changed /1.3/generic_fns/noesy.py
changed /1.3/generic_fns/palmer.py
changed /1.3/generic_fns/pcs.py
changed /1.3/generic_fns/rdc.py
changed /1.3/generic_fns/relax_data.py
changed /1.3/generic_fns/relax_re.py
changed /1.3/generic_fns/spectrum.py
changed /1.3/generic_fns/structure/internal.py
changed /1.3/generic_fns/structure/scientific.py
changed /1.3/generic_fns/value.py
/1.3/colour.py Diff Switch to side-by-side view
Loading...
/1.3/data/__init__.py Diff Switch to side-by-side view
Loading...
/1.3/data/diff_tensor.py Diff Switch to side-by-side view
Loading...
/1.3/data/mol_res_spin.py Diff Switch to side-by-side view
Loading...
/1.3/data/relax_xml.py Diff Switch to side-by-side view
Loading...
/1.3/docs/2to3_checklist Diff Switch to side-by-side view
Loading...
/1.3/docs/latex/fetch_docstrings.py Diff Switch to side-by-side view
Loading...
/1.3/float.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/align_tensor.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/angles.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/diffusion_tensor.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/grace.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/model_selection.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/mol_res_spin.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/monte_carlo.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/noesy.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/palmer.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/pcs.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/rdc.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/relax_data.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/relax_re.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/spectrum.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/structure/internal.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/structure/scientific.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/value.py Diff Switch to side-by-side view
Loading...
1 2 3 4 > >> (Page 1 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.