Keyboard shortcuts

/ or ⌘/Ctrl K
Find a note
j / k
Next / previous section or linked note
h / l
Collapse or go to parent / expand or enter
e or Alt-click
Read a linked note here
o
Open focused note on its own
g g / G
First / last section or linked note
g h / g a
Home / all notes
g b / g t
Backlinks / table of contents
t
Cycle System, Light, Dark
? / Esc
Show / close this reference

Search: ↑/↓ or Ctrl N/P, Enter to open. Shortcuts pause while typing.

python [9217175f]

Tags: computers

Context sensitivity: groups.google.com/g/comp.theory/c/nJzOyRnAP3k/m/AInZxo48FNIJ?pli=1

1. Performance Python

1.1. Vectorcall

  • peps.python.org/pep-0590/
  • C API to optimize calling of objects
  • tp_call too slow

    • Also one function pointer per class, rather than per object. So classes create a lot of intermediate objects

2. Cpython

  • Every object is defined by a C struct called PyTypeObject. This struct contains slots.

3. Parsing PDF's in Python

4. Difflib

  • docs.python.org/3/library/difflib.html
  • generates diffs

    • has a series of diffs that allow for fleixible computing of sequences including:

      • html
      • pure strings (get_close_matches)
      • number type diffs

5. OS

6. Discussion Forum Changing from Mailing List

  • lwn.net/Articles/901744/

    • Scattered community upon mailing lists, was scattered between PR's, Issues, python-dev, python-committers, etc
    • Unification on Discourse

7. Python Concurrency

8. Python JIT