Menu

SVN archive Commit Log


Commit Date  
[r9359] by bugman

Fixed the calls to checks.is_*().

2009-08-21 16:34:29 Tree
[r9358] by bugman

Changed all the default can_be_none keywords to False.

This is so you have to explicitly say if None is allowed, rather than the other way around.

2009-08-21 16:32:25 Tree
[r9357] by bugman

Added 2 more arg checking functions, is_float() and is_num_tuple().

2009-08-21 16:30:04 Tree
[r9356] by bugman

Added a new error class, RelaxTupleNumError.

2009-08-21 16:27:29 Tree
[r9355] by bugman

Removed the num_types module as this is redundant with the new check module.

2009-08-21 15:45:36 Tree
[r9354] by bugman

Simplified the sequence user function class by using the check and base_class modules.

2009-08-21 15:25:00 Tree
[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
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.