Menu

SVN archive Commit Log


Commit Date  
[r26535] by bugman

Python 3 fixes via 2to3 - the "while 1" construct has been replaces with "while True".

The command used was:
2to3 -j 4 -w -f idioms .

2014-11-11 15:51:21 Tree
[r26534] by bugman

Manual Python 3 fixes for the dict.key() function which returns a list or iterator in Python 2 or 3.

This matches r26519 in trunk.

2014-11-11 15:41:51 Tree
[r26533] by bugman

Merged revisions 26531 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r26531 | bugman | 2014-11-11 16:37:13 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - the filter() function in Python 3 now returns an iterator.

The command used was:
2to3 -j 4 -w -f filter .
........

2014-11-11 15:38:42 Tree
[r26532] by bugman

Merged revisions 26531 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r26531 | bugman | 2014-11-11 16:37:13 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - the filter() function in Python 3 now returns an iterator.

The command used was:
2to3 -j 4 -w -f filter .
........

2014-11-11 15:38:39 Tree
[r26531] by bugman

Python 3 fixes via 2to3 - the filter() function in Python 3 now returns an iterator.

The command used was:
2to3 -j 4 -w -f filter .

2014-11-11 15:37:13 Tree
[r26530] by bugman

Merged revisions 26516-26528 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r26516 | bugman | 2014-11-11 12:13:52 +0100 (Tue, 11 Nov 2014) | 5 lines

The ImportErrors in unit tests are now correctly handled by the relax test suite.

If an ImportError occurred, this was previously killing the entire test suite.
........
r26517 | bugman | 2014-11-11 13:39:57 +0100 (Tue, 11 Nov 2014) | 3 lines

The target_function.relax_fit module unit tests are now skipped if the C module is not compiled.
........
r26518 | bugman | 2014-11-11 14:10:47 +0100 (Tue, 11 Nov 2014) | 3 lines

Expanded the Python 2 to 3 conversion document.
........
r26519 | bugman | 2014-11-11 14:26:23 +0100 (Tue, 11 Nov 2014) | 10 lines

Manual Python 3 fixes for the dict.key() function which returns a list or iterator in Python 2 or 3.

This involves a number of changes. The biggest is the conversion of the "x in y.keys()" statements
to "x in y". For code which requires a list of keys, the function calls "list(y.keys())" or
preferably "sorted(y.keys())" are used throughout (sorted() ensures that the list will be of the
same order on all operating systems and Python implementations). A number of "x in list(y.keys())"
statements were simplified to "x in y", some list() calls changed to sorted(), and some unnecessary
list() calls were removed.
........
r26520 | bugman | 2014-11-11 14:34:12 +0100 (Tue, 11 Nov 2014) | 9 lines

Python 3 fixes via 2to3 - elimination of all apply() calls.

This only affects the GUI which cannot run in Python 3 yet as wxPython is not Python 3 compatible
yet.

The command used was:
2to3 -j 4 -w -f apply .
........
r26521 | bugman | 2014-11-11 14:34:56 +0100 (Tue, 11 Nov 2014) | 3 lines

Small update to the 2to3_checklist document - the print statement conversion has been added.
........
r26522 | bugman | 2014-11-11 14:43:25 +0100 (Tue, 11 Nov 2014) | 9 lines

Python 3 fixes via 2to3 - proper handling of the dict.items() and dict.values() functions.

These are now all wrapped in list() function calls to ensure that the Python 3 iterators are
converted to list objects before they are accessed.

The command used was:
2to3 -j 4 -w -f dict .
........
r26523 | bugman | 2014-11-11 14:55:38 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - the execfile() function does not exist in Python 3.

The command used was:
2to3 -j 4 -w -f execfile .
........
r26524 | bugman | 2014-11-11 15:52:43 +0100 (Tue, 11 Nov 2014) | 6 lines

The lib.errors module is now importing lib.compat.pickle for better Python 2 and 3 support.

This shifts the compatibility code from lib.errors into lib.compat so that the 2to3 program will not
touch the lib.errors module.
........
r26525 | bugman | 2014-11-11 15:58:45 +0100 (Tue, 11 Nov 2014) | 7 lines

Better Python 3 compatibility in some test suite shared data profiling scripts.

These changes invert the logic, importing the Python 3 builtins module and aliasing xrange() to
range(), and passing if an ImporError occurs. The code will now no longer be modified by the 2to3
program.
........
r26526 | bugman | 2014-11-11 16:06:36 +0100 (Tue, 11 Nov 2014) | 5 lines

Unicode fixes for the "\u" string in "\usepackage" in the module docstring.

This requires escaping as "\\usepackage" to avoid the unicode character '\u'.
........
r26527 | bugman | 2014-11-11 16:13:25 +0100 (Tue, 11 Nov 2014) | 5 lines

The lib.check_types now imports io.IOBase from the lib.compat module.

This is to shift more Python 2 vs. 3 compatibility into lib.compat and out of all other modules.
........
r26528 | bugman | 2014-11-11 16:21:12 +0100 (Tue, 11 Nov 2014) | 7 lines

Python 3 improvements - changed how the Python 3 absent builtins.unicode() function is handled.

The aliased builtins.str() function is now referenced as lib.compat.unicode(). The Python 2
__builtin__.unicode() function is also aliased to lib.compat.unicode(). The GUI using this function
now import it from lib.compat.
........

2014-11-11 15:31:33 Tree
[r26529] by bugman

Merged revisions 26516-26528 via svnmerge from
svn+ssh://bugman@.../svn/relax/trunk

........
r26516 | bugman | 2014-11-11 12:13:52 +0100 (Tue, 11 Nov 2014) | 5 lines

The ImportErrors in unit tests are now correctly handled by the relax test suite.

If an ImportError occurred, this was previously killing the entire test suite.
........
r26517 | bugman | 2014-11-11 13:39:57 +0100 (Tue, 11 Nov 2014) | 3 lines

The target_function.relax_fit module unit tests are now skipped if the C module is not compiled.
........
r26518 | bugman | 2014-11-11 14:10:47 +0100 (Tue, 11 Nov 2014) | 3 lines

Expanded the Python 2 to 3 conversion document.
........
r26519 | bugman | 2014-11-11 14:26:23 +0100 (Tue, 11 Nov 2014) | 10 lines

Manual Python 3 fixes for the dict.key() function which returns a list or iterator in Python 2 or 3.

This involves a number of changes. The biggest is the conversion of the "x in y.keys()" statements
to "x in y". For code which requires a list of keys, the function calls "list(y.keys())" or
preferably "sorted(y.keys())" are used throughout (sorted() ensures that the list will be of the
same order on all operating systems and Python implementations). A number of "x in list(y.keys())"
statements were simplified to "x in y", some list() calls changed to sorted(), and some unnecessary
list() calls were removed.
........
r26520 | bugman | 2014-11-11 14:34:12 +0100 (Tue, 11 Nov 2014) | 9 lines

Python 3 fixes via 2to3 - elimination of all apply() calls.

This only affects the GUI which cannot run in Python 3 yet as wxPython is not Python 3 compatible
yet.

The command used was:
2to3 -j 4 -w -f apply .
........
r26521 | bugman | 2014-11-11 14:34:56 +0100 (Tue, 11 Nov 2014) | 3 lines

Small update to the 2to3_checklist document - the print statement conversion has been added.
........
r26522 | bugman | 2014-11-11 14:43:25 +0100 (Tue, 11 Nov 2014) | 9 lines

Python 3 fixes via 2to3 - proper handling of the dict.items() and dict.values() functions.

These are now all wrapped in list() function calls to ensure that the Python 3 iterators are
converted to list objects before they are accessed.

The command used was:
2to3 -j 4 -w -f dict .
........
r26523 | bugman | 2014-11-11 14:55:38 +0100 (Tue, 11 Nov 2014) | 6 lines

Python 3 fixes via 2to3 - the execfile() function does not exist in Python 3.

The command used was:
2to3 -j 4 -w -f execfile .
........
r26524 | bugman | 2014-11-11 15:52:43 +0100 (Tue, 11 Nov 2014) | 6 lines

The lib.errors module is now importing lib.compat.pickle for better Python 2 and 3 support.

This shifts the compatibility code from lib.errors into lib.compat so that the 2to3 program will not
touch the lib.errors module.
........
r26525 | bugman | 2014-11-11 15:58:45 +0100 (Tue, 11 Nov 2014) | 7 lines

Better Python 3 compatibility in some test suite shared data profiling scripts.

These changes invert the logic, importing the Python 3 builtins module and aliasing xrange() to
range(), and passing if an ImporError occurs. The code will now no longer be modified by the 2to3
program.
........
r26526 | bugman | 2014-11-11 16:06:36 +0100 (Tue, 11 Nov 2014) | 5 lines

Unicode fixes for the "\u" string in "\usepackage" in the module docstring.

This requires escaping as "\\usepackage" to avoid the unicode character '\u'.
........
r26527 | bugman | 2014-11-11 16:13:25 +0100 (Tue, 11 Nov 2014) | 5 lines

The lib.check_types now imports io.IOBase from the lib.compat module.

This is to shift more Python 2 vs. 3 compatibility into lib.compat and out of all other modules.
........
r26528 | bugman | 2014-11-11 16:21:12 +0100 (Tue, 11 Nov 2014) | 7 lines

Python 3 improvements - changed how the Python 3 absent builtins.unicode() function is handled.

The aliased builtins.str() function is now referenced as lib.compat.unicode(). The Python 2
__builtin__.unicode() function is also aliased to lib.compat.unicode(). The GUI using this function
now import it from lib.compat.
........

2014-11-11 15:31:32 Tree
[r26528] by bugman

Python 3 improvements - changed how the Python 3 absent builtins.unicode() function is handled.

The aliased builtins.str() function is now referenced as lib.compat.unicode(). The Python 2
__builtin__.unicode() function is also aliased to lib.compat.unicode(). The GUI using this function
now import it from lib.compat.

2014-11-11 15:21:12 Tree
[r26527] by bugman

The lib.check_types now imports io.IOBase from the lib.compat module.

This is to shift more Python 2 vs. 3 compatibility into lib.compat and out of all other modules.

2014-11-11 15:13:25 Tree
[r26526] by bugman

Unicode fixes for the "\u" string in "\usepackage" in the module docstring.

This requires escaping as "\\usepackage" to avoid the unicode character '\u'.

2014-11-11 15:06:36 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.