Repository navigation
Commit e30fd55
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.1 parent 4e7c4b6 commit e30fd55
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1072 | 1079 | | |
1073 | 1080 | | |
1074 | 1081 | | |
| |||
0 commit comments