Skip to content

nishu-builder/cpython-elifnt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

119,385 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elifnt 3.13.0a1-0.0.6

Elifnt is a fork of the CPython interpreter. It is a dialect that supports additional features not present in the standard Python interpreter.

It is currently on version 3.13.0a1 (base CPython version)-0.0.6 (Elifnt version).

Features

Elifnt introduces the following new features:

  • Safe attribute access: ?.
  • Safe subscript access: ?[...]
  • Native methods on lists: list.map, list.reduce, list.filter
  • Native parallelized map and filter on lists: list.pmap, list.pfilter
  • Until statements: till
  • An alternative conditional statement: elifnt
  • A new garbage collection debug flag: gc.DEBUG_COLLECTED_TYPES. When set, gc callbacks will be supplied with the count of collected objects by type after each collection

Using Elifnt

Visit the Elifnt website for an in-browser Elifnt interpreter: https://python-elifnt.org

Elifnt base docker images can be found here: https://hub.docker.com/r/nishubuilder/python-elifnt

You can download the latest version with brew, after which it will be available as python-elifnt:

brew tap nishu-builder/elifnt
brew install python-elifnt

You can also build Elifnt from source. See the Build Instructions section for more details.

Build Instructions

Build and install as python-elifnt:

# Clone the repository
git clone git@github.com:nishu-builder/cpython-elifnt.git
cd cpython-elifnt

# Build and install
./configure --prefix=/usr/local/python-elifnt
make
sudo make install

It should then be available as python-elifnt

Contributing

Feel free to open issues and submit pull requests to this repository. See the implementation of Safe Subscript for an example.

License

Elifnt is released under the same license as CPython. See the LICENSE file for more details. This project is a fork of CPython. Original copyright and license details can be found in their respective files and documentation. All modifications in Elifnt are made in accordance with the original license and copyright terms of CPython.

About

The Elifnt dialect of Python

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Languages

  • Python 63.5%
  • C 34.6%
  • C++ 0.6%
  • M4 0.4%
  • HTML 0.4%
  • Batchfile 0.1%
  • Other 0.4%