Skip to content
lit edited this page Jan 2, 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)
  • *seq **kw (unpack)
  • try-else
  • for-else
  • raise-from
  • f-string (__format__)
  • async (coroutine, async_generator)
  • yield, generator comprehension

system

  • eval, exec
  • builtin methods of str, bytes, etc
  • multi herit
  • isinstance, issubclass
  • super
  • some builtin functions like
  • complex
  • memoryview (pybuffer)
  • doc-string (help)
  • import system
  • 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