Python's operator module in TypeScript


Help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 32/55 shipped • 2 next 58%

Namespace-level inventory for Python 3.12: what we already ship, what we may still want, and what we intentionally skip or keep.

operator

Python 3.12 · Catalog source: version-pinned source manifest python:3.12:operator

94% shipped
32/34 shipped 2 next 21 explicit non-goals
Shipped (32)

Next

First-class operator helpers are strong plain-value portability targets.

  • index
  • matmul
Explicit non-goals (21)
  • attrgetter Skip Getter factories return callable objects rather than plain values.
  • call Skip Indirect call wrappers add little value beyond direct JS invocation.
  • delitem Skip Container mutation is outside Locutus' value-only model.
  • iadd Skip In-place operator wrappers imply mutation semantics.
  • iand Skip In-place operator wrappers imply mutation semantics.
  • iconcat Skip In-place operator wrappers imply mutation semantics.
  • ifloordiv Skip In-place operator wrappers imply mutation semantics.
  • ilshift Skip In-place operator wrappers imply mutation semantics.
  • imatmul Skip In-place operator wrappers imply mutation semantics.
  • imod Skip In-place operator wrappers imply mutation semantics.
  • imul Skip In-place operator wrappers imply mutation semantics.
  • ior Skip In-place operator wrappers imply mutation semantics.
  • ipow Skip In-place operator wrappers imply mutation semantics.
  • irshift Skip In-place operator wrappers imply mutation semantics.
  • isub Skip In-place operator wrappers imply mutation semantics.
  • itemgetter Skip Getter factories return callable objects rather than plain values.
  • itruediv Skip In-place operator wrappers imply mutation semantics.
  • ixor Skip In-place operator wrappers imply mutation semantics.
  • length_hint Skip Size-hint probing adds little value beyond direct JS length checks.
  • methodcaller Skip Method-caller factories return callable objects rather than plain values.
  • setitem Skip Container mutation is outside Locutus' value-only model.

« More Python functions