Ticket #111 (closed enhancement: fixed)
[with patch, positive review] def copy -- they should all be def __copy__
| Reported by: | was | Owned by: | AlexGhitza |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.1.1 |
| Component: | user interface | Keywords: | |
| Cc: | robertwb, mhansen | Author(s): | Alex Ghitza |
| Report Upstream: | Reviewer(s): | David Loeffler | |
| Merged in: | sage-4.1.1.alpha0 | Work issues: |
Description
There are many instances of copy methods in SAGE. They should all be copy, which is what gets called by the standard copy module (part of the standard Python library).
sage: search_sage('def copy')
matrix/sparse_matrix.py: def copy(self):
modules/free_module_element.py: def copy(self):
plot/graph.py: def copy(self, name):
rings/finite_field_element.py: def copy(self):
rings/fraction_field_element.py: def copy(self):
rings/laurent_series_ring_element.py: def copy(self):
rings/padic.py: def copy(self):
rings/polynomial_element.py: def copy(self):
rings/polynomial_element.py: def copy(self):
rings/polynomial_element.py: def copy(self):
rings/polynomial_element.py: def copy(self):
rings/power_series_ring_element.py: def copy(self):
rings/power_series_ring_element.py: def copy(self):
rings/quotient_ring_element.py: def copy(self):
libs/pari/functional.py:def copy(self): return pari(self).copy()
modular/modsym/manin_symbols.py: def copy(self):
server/server1/server1.py: def copyfile(self, source, outputfile):
matrix/dense_matrix_pyx.pyx: def copy(self):
matrix/matrix_generic.pyx: def copy(self):
matrix/matrix_integer_dense.pyx: def copy(self):
matrix/matrix_modn_dense.pyx: def copy(Matrix_modn_dense self):
matrix/matrix_modn_sparse.pyx: def copy(self):
matrix/matrix_rational_dense.pyx: def copy(self):
matrix/sparse_matrix_pyx.pyx: def copy(self):
matrix/sparse_matrix_pyx.pyx: def copy(self):
matrix/sparse_matrix_pyx.pyx: def copy(self):
rings/integer.pyx: def copy(self):
rings/integer_mod.pyx: def copy(IntegerMod_gmp self):
rings/integer_mod.pyx: def copy(IntegerMod_int self):
rings/integer_mod.pyx: def copy(IntegerMod_int64 self):
rings/mpc.pyx: def copy(self):
rings/polynomial_pyx.pyx: def copy(self):
rings/polynomial_pyx.pyx: def copy(self):
rings/rational.pyx: def copy(self):
rings/real_double.pyx: def copy(self):
rings/real_mpfr.pyx: def copy(self):
rings/sparse_poly.pyx: def copy(self):
rings/sparse_poly.pyx: def copy(self):
libs/linbox/finite_field_givaro.pyx: def copy(self):
libs/ntl/ntl.pyx: def copy(self):
libs/ntl/ntl.pyx: def copy(self):
libs/ntl/ntl.pyx: def copy(ntl_GF2E self):
libs/pari/_py_pari_orig.pyx: def copy(gen self):
libs/pari/gen.pyx: def copy(gen self):
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

