Skip to content
/ -ython Public

Adding a reasonable keyword to the Python programming language

License

Notifications You must be signed in to change notification settings

Bocchio/-ython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

934d49b · Dec 16, 2024
Nov 5, 2024
Sep 26, 2024
Dec 11, 2024
Oct 25, 2024
Dec 16, 2024
Dec 16, 2024
Dec 15, 2024
Dec 10, 2024
Dec 16, 2024
Nov 12, 2024
Dec 16, 2024
Dec 16, 2024
Dec 13, 2024
Nov 12, 2024
Nov 26, 2024
Dec 16, 2024
Nov 15, 2024
Dec 16, 2024
Dec 16, 2024
Dec 12, 2024
Aug 6, 2023
Feb 12, 2024
Sep 12, 2024
Mar 19, 2024
Apr 30, 2023
Dec 10, 2024
Aug 2, 2024
Nov 12, 2024
Dec 12, 2024
Dec 16, 2024
Nov 13, 2024
Nov 25, 2021
Feb 26, 2024
Dec 9, 2024
Dec 9, 2024
May 3, 2021
Dec 6, 2024
Dec 16, 2024

Repository files navigation

λython

What's this?

A Python fork that adds λ as an additional keyword that works in the exact same way lambda does.

Why?

Because reading and typing lambda is just too much work.

Why is the repo named -ython instead of λython?

GitHub doesn't like non-ASCII names :(

Steps

Before compiling, you can run:

make regen-keyword && make regen-pegen

to ensure Lib/keywords.py and Parser/parser.c are properly generated.

Then you can compile as usual.

Please refer to the cpython repo for any additional details.

What to try

Now you can write things like:

f = λ a: a('hello')
f(print)

Add to pyenv

In this repo there's a build file to use with pyenv.

Copy the build version with:

cp ./λython ${PYENV_ROOT}/plugins/python-build/share/python-build
pyenv install λython

Then I'm confident you'll want to use this version as your global version:

pyenv global λython

About

Adding a reasonable keyword to the Python programming language

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published