Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork959
Commit602de0c
committed
Begin multiprocessing misadventure
There is no per-instance state involved in USE_SHELL, so picklingis far less directly relevant than usual to multiprocessing: thespawn and forkserver methods will not preserve a subsequentlychanged attribute value unless side effects of loading a module (orother unpickling of a function or its arguments that are submittedto run on a worker subprocess) causes it to run again; the forkmethod will.This will be (automatically) the same with any combination ofmetaclasses, properties, and custom descriptors as in the morestraightforward case of a simple class attribute. Subtleties arisein the code that uses GitPython and multiprocessing, but should notarise unintentionally from the change in implementation of USE_SHELLdone to add deprecation warnings, except possibly with respect towhether warnings will be repeated in worker processes, which isless important than whether the actual state is preserved.1 parentbf13888 commit602de0c
1 file changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
206 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
207 | 225 | | |
208 | 226 | | |
209 | 227 | | |
| |||
0 commit comments
Comments
(0)