commit | e30fd55188c2857aa6fa763324840652a6720512 | [log] [tgz] |
---|---|---|
author | Mitar <mitar.github@tnode.com> | Tue Aug 15 03:05:32 2017 -0700 |
committer | Ivan Levkivskyi <levkivskyi@gmail.com> | Tue Aug 15 12:05:32 2017 +0200 |
tree | e31057bdb39221787d309c0f0f01a4c93036d622 | |
parent | 4e7c4b61acd36e6e3615810ffa46abbd7a54f9ab [diff] |
Make sure copy and deepcopy are returning same class (#460) This should hold on Python 3.3 and newer (it does not hold on 3.2 and 2.7). From documentation: It does "copy" functions and classes (shallow and deeply), by returning the original object unchanged; this is compatible with the way these are treated by the pickle module.