python
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python [2026/04/01 20:31] – carl | python [2026/09/09 19:44] (current) – carl | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| * For socket fds, reconnecting causes the remote endpoint to burn resources as well. | * For socket fds, reconnecting causes the remote endpoint to burn resources as well. | ||
| * For file fds, its not possible to synchronize access to them. (if Python had better shared memory support and the correct atomics to modify the memory, this may be possible). | * For file fds, its not possible to synchronize access to them. (if Python had better shared memory support and the correct atomics to modify the memory, this may be possible). | ||
| + | |||
| + | |||
| + | ==== Problems with Multi Interpreters ==== | ||
| + | Very few Python modules support it. It's hard to tell which ones do support it, and the support seems arbitrary. | ||
| Line 63: | Line 67: | ||
| Python does not have a compacting garbage collector, so memory allocations eventually fill up RSS. When a mixture of long lived and short lived objects are allocated around the same time, Python (pymalloc) allocates them possibly in the same arena. | Python does not have a compacting garbage collector, so memory allocations eventually fill up RSS. When a mixture of long lived and short lived objects are allocated around the same time, Python (pymalloc) allocates them possibly in the same arena. | ||
| + | |||
| + | |||
| + | ==== Misc. APIs ==== | ||
| + | List and Tuple types have an '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | >>> | ||
| + | >>> | ||
| + | >>> | ||
| + | Traceback (most recent call last): | ||
| + | File "< | ||
| + | TypeError: ' | ||
| + | |||
| + | |||
| + | '' | ||
| + | |||
| + | The '' | ||
| + | |||
| + | >>> | ||
| + | ... | ||
| + | 1 9 | ||
| + | 2 8 | ||
| + | 3 7 | ||
| + | |||
| + | I would have expected this to return 2 total elements instead: | ||
| + | |||
| + | ... | ||
| + | 1 8 | ||
| + | 2 7 | ||
| + | |||
| + | |||
| + | |||
python.1775075470.txt.gz · Last modified: by carl
