Menu

SVN archive Commit Log


Commit Date  
[r9353] by bugman

Created a base class for the user function classes.

This defines the __init__() method for creating the relax help string.

2009-08-21 15:23:56 Tree
[r9352] by bugman

Updated the 2to3 checklist for the idioms.

2009-08-21 14:55:01 Tree
[r9351] by bugman

Added a module containing functions for checking user function args.

So far this includes:
check.is_bool()
check.is_int()
check.is_str()

2009-08-21 14:54:29 Tree
[r9350] by bugman

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!

2009-08-21 10:07:01 Tree
[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
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.