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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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