Commit 0cdd445
committed
Remove indirection in threading (issue python#10968).
The public names (Thread, Condition, etc.) used to be factory functions
returning instances of hidden classes (_Thread, _Condition, etc.),
because (if Guido recalls correctly) this code pre-dates the ability to
subclass extension types.
It is now possible to inherit from Thread and other classes, without
having to import the private underscored names like multiprocessing did.
A doc update will follow: a patch is under discussion on the issue.1 parent 9bce311 commit 0cdd445
3 files changed
Lines changed: 15 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 87 | | |
99 | 88 | | |
100 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 175 | + | |
179 | 176 | | |
180 | 177 | | |
181 | 178 | | |
| |||
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 308 | + | |
315 | 309 | | |
316 | 310 | | |
317 | 311 | | |
| |||
366 | 360 | | |
367 | 361 | | |
368 | 362 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 363 | + | |
373 | 364 | | |
374 | 365 | | |
375 | | - | |
| 366 | + | |
376 | 367 | | |
377 | 368 | | |
378 | 369 | | |
379 | 370 | | |
380 | 371 | | |
381 | | - | |
| 372 | + | |
382 | 373 | | |
383 | 374 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
| 375 | + | |
388 | 376 | | |
389 | 377 | | |
390 | 378 | | |
| |||
918 | 906 | | |
919 | 907 | | |
920 | 908 | | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
| 909 | + | |
925 | 910 | | |
926 | 911 | | |
927 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
0 commit comments