returnlist reimplements copy.deepcopy
Bug #398360 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
Wishlist
|
Jonathan Lange |
Bug Description
The comment before returnlist() says:
#Return a copy of the list and avoid a to keep the same object
#It handles multilple dimension matrix through recursion
(Incidentally, shouldn't that be a docstring?)
Python already comes with a way to do this. It's called 'deepcopy' and it's in the 'copy' module of the standard library.
Related branches
lp:~jml/gtg/deepcopy-398360
- Gtg developers: Pending requested
- Diff: None lines
lp:~jml/gtg/returnlist-to-list
- Gtg developers: Pending requested
- Diff: None lines
Changed in gtg: | |
milestone: | none → 0.2 |
status: | In Progress → Fix Committed |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've submitted a patch for this.