Menu

SVN archive Commit Log


Commit Date  
[r9349] by bugman

Added a text file documenting the changes in preparation for Python 3.x.

2009-08-21 08:54:20 Tree
[r9348] by bugman

The execfile statement has been replaced with a call to the exec(compile()) function.

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 syntax has changed from:

execfile(script_file, local)

to:

exec(compile(open(script_file).read(), script_file, 'exec'), local)

Hmmm, not much of a language simplification!

2009-08-21 08:50:08 Tree
[r9347] by bugman

The exec statement has been replaced with a call to the exec() function.

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.

2009-08-20 15:48:36 Tree
[r9346] by bugman

The dictionary keys() return value is now converted into a list.

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

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

2009-08-19 16:47:50 Tree
[r9345] by bugman

Renamed the pipe.list() user function to pipe.display().

2009-08-19 15:45:24 Tree
[r9344] by bugman

Modified the behaviour of raise statements according to http://www.python.org/dev/peps/pep-3109/.

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

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

2009-08-19 15:31:11 Tree
[r9343] by bugman

Converted all print statements into print() function calls.

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

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

2009-08-19 15:18:47 Tree
[r9342] by bugman

Removed all usages of the has_attr() dictionary method.

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

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

2009-08-19 14:09:33 Tree
[r9341] by bugman

Bug fix for the relaxation curve-fitting difference plot script.

The spin_loop blocks were missing colons!

2009-08-19 13:48:55 Tree
[r9340] by bugman

Replaced all instances of `x` with repr(x).

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

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

2009-08-19 13:37:09 Tree
Older >
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.