(cls)
| 533 | |
| 534 | @classmethod |
| 535 | def _select_for_exit(cls): |
| 536 | # Return live finalizers marked for exit, oldest first |
| 537 | L = [(f,i) for (f,i) in cls._registry.items() if i.atexit] |
| 538 | L.sort(key=lambda item:item[1].index) |
| 539 | return [f for (f,i) in L] |
| 540 | |
| 541 | @classmethod |
| 542 | def _exitfunc(cls): |