Skip to content
lit edited this page Jan 30, 2026 · 5 revisions

syntax

  • with
  • lambda
  • decoration for class
  • inline if (conditional expression)
  • := (Walrus Operator)
  • type hint
  • **kw in def
  • /, * in def (positional-only, keyword-only arguments)
  • call non-builtin function with keyword f(k=v)
  • unpack via *seq **kw
  • try-else
  • for-else
  • raise-from
  • f-string (__format__)
  • async (coroutine, async_generator)
  • yield, generator comprehension

system

  • eval, exec, globals
  • locals that returns dict
  • locals that returns proxy
  • add missing builtin methods of str, bytes, etc
  • multi herit
  • isinstance, issubclass
  • super
  • complex
  • memoryview (pybuffer)
  • doc-string (help)
  • import package, pyc
  • stdlibs

further

  • import(load) cpython's pyd/so
  • perf non-builtin function call
  • export APIs to write npython extension module in Nim ...
  • and may allow translating to that of CPython

Clone this wiki locally