arthrop0d

Brief articles on varied topics.

python

15 articles tagged python.

  1. Python’s Cyclic Garbage Collector

    How CPython finds unreachable reference cycles, organizes collections by age, and affects object lifetime and process memory.

    pythoncomputer science

  2. How Python asyncio Schedules Coroutines

    A practical explanation of how asyncio runs coroutines, waits for I/O readiness, and resumes tasks without one thread per operation.

    pythonconcurrencysoftware engineering

  3. Python Import Machinery and Circular Imports

    How sys.modules, finders, and loaders turn an import statement into a module—and why circular imports expose partially initialized modules.

    python

  4. Python’s Cyclic Garbage Collector

    How CPython finds unreachable reference cycles, uses generations to limit work, and introduces pauses while collecting them.

    pythoncomputer science

  5. Python Descriptors and Attribute Access

    Descriptors define how Python reads, writes, and deletes attributes, powering properties, bound methods, and ORM model fields.

    pythonsoftware engineering

  6. Python Asyncio Task Cancellation

    How asyncio delivers CancelledError at await points, propagates it through coroutines, and still runs cleanup during cancellation.

    pythonconcurrency

  7. Python Descriptors: Properties, Methods, and Slots

    How Python’s __get__, __set__, and __delete__ hooks control attribute access and power properties, bound methods, and slot-based storage.

    pythoncomputer science

  8. Python’s Vectorcall Protocol

    How CPython passes callable arguments as arrays to avoid temporary tuples, dictionaries, and bound methods on common calls.

    pythonperformance

  9. CPython’s Cyclic Garbage Collector

    How CPython finds reference cycles that reference counting cannot reclaim, and how generations and thresholds decide when to collect them.

    pythoncomputer science

  10. CPython’s Global Interpreter Lock

    How CPython’s GIL protects interpreter state, makes threads contend, and affects CPU-bound and I/O-bound programs differently.

    pythonconcurrency

  11. Python Asyncio Task Cancellation

    Understand how asyncio injects CancelledError, propagates cancellation through awaited tasks, and lets coroutines clean up safely.

    pythonconcurrencysoftware engineering

  12. Python Descriptors and Method Binding

    How Python routes attribute reads and writes through descriptors, and how the same mechanism implements properties, bound methods, and class methods.

    python

  13. Python Descriptors and Attribute Access

    Understand how Python descriptors power properties, bound methods, and ORM fields by intercepting reads, writes, and deletion.

    pythoncomputer science

  14. Inside Python’s asyncio Event Loop

    How await suspends a Task, how I/O and timers wake it, and how the event loop chooses callbacks from its ready queue.

    pythonconcurrency

  15. CPython’s Global Interpreter Lock

    How CPython’s GIL protects interpreter state, coordinates thread execution, and lets native extensions run parallel or blocking work safely.

    pythonperformanceconcurrency

← All tags