Menu

Commit [r3171]  Maximize  Restore  History

Bug fix for the prototype copying.

These changes cause the 'test_copy' and 'test_copy_current' unit tests of 'test_pipe.py' to pass.

The prototype '__copy__()' method has been renamed to '__clone__()' as '__copy__()' is reserved as a
replacement method for the 'copy' method of the 'copy' module. As the 'deepcopy' method was not
copying all of the objects of the pipe container correctly, the '__deepcopy__() replacement method
has been added to the prototype base class.

All subclassing of 'ListType' and 'DictType' have been replaced by 'list' and 'dict'.

bugman 2007-03-13

changed /1.3/data/__init__.py
changed /1.3/data/mol_res_spin.py
changed /1.3/data/prototype.py
changed /1.3/generic_fns/pipes.py
/1.3/data/__init__.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/prototype.py Diff Switch to side-by-side view
Loading...
/1.3/generic_fns/pipes.py Diff Switch to side-by-side view
Loading...
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.