Changes between Initial Version and Version 1 of Ticket #20461


Ignore:
Timestamp:
04/19/16 04:10:07 (6 years ago)
Author:
mkoeppe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20461 – Description

    initial v1  
    88sage: q.<newx,newy> = p.copy()
    99}}}
     10and the less magical syntax
     11{{{
     12sage: q, newx, newy = p.copy([x, y])
     13}}}
    1014 * `copy` and `__copy__` (and `__deepcopy__`) should make a copy of _default_variable (this requires writing a `__copy__` method for `MIPVariable`)
    11  * if `MixedIntegerLinearProgram.new_variable` has been called, it should set a flag and then if __copy__ (or __deepcopy__) are called, it should display a warning (deprecation??) and refer the user to the new `copy` method.
     15 * if `MixedIntegerLinearProgram.new_variable` has been called, it should set a flag and then if `__copy__` (or `__deepcopy__`) are called, it should display a warning (deprecation??) and refer the user to the new `copy` method.