forked frompythonnet/pythonnet
- Notifications
You must be signed in to change notification settings - Fork0
Commit7bc2495
committed
Switch to using TrueDivide instead of Divide everywhere
Fixespythonnet#802.TrueDivide is supported in both Python 2 and 3 while Divide exists onlyin Python 2. This does mean that a simple division of numbers willbehave differently in C# vs Python for Python 2, but it will at leastbehave the same way in C# independent of the Python version being used.1 parentd3ca2e8 commit7bc2495
2 files changed
+8
-8
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 |
| - | |
| 104 | + | |
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
| |||
1121 | 1121 |
| |
1122 | 1122 |
| |
1123 | 1123 |
| |
1124 |
| - | |
| 1124 | + | |
1125 | 1125 |
| |
1126 | 1126 |
| |
1127 |
| - | |
| 1127 | + | |
1128 | 1128 |
| |
1129 | 1129 |
| |
1130 | 1130 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 |
| - | |
| 177 | + | |
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
| |||
1188 | 1188 |
| |
1189 | 1189 |
| |
1190 | 1190 |
| |
1191 |
| - | |
| 1191 | + | |
1192 | 1192 |
| |
1193 | 1193 |
| |
1194 | 1194 |
| |
| |||
1221 | 1221 |
| |
1222 | 1222 |
| |
1223 | 1223 |
| |
1224 |
| - | |
| 1224 | + | |
1225 | 1225 |
| |
1226 | 1226 |
| |
1227 | 1227 |
| |
|
0 commit comments
Comments
(0)