Skip to content

Latest commit

 

History

History
123 lines (59 loc) · 2.86 KB

README.rst

File metadata and controls

123 lines (59 loc) · 2.86 KB

Playing Around With Python

This is a fork of the official CPython project.

The good old fashioned Python, now with the ++ operator!

Example Loop Code

Can be found in the plusplus branch.

Introducing a brand new Bytecode instruction - UNARY_COLLATZ

Example Bytecode

Can be found in the Collatz branch.

Some Python scripts that take advantage of undefined behaviours

Crash in Python 3.7

Can be found in the Bugs branch.

Some Python scripts that show self-modifying code

ADD to SUB

A script that replaces the ADD instruction with a SUB instruction

And result of running this script

ADD to SUB result

Can be found in the Self Modifying Code branch.

Replace the old boring string representation of booleans

With the brand new Aladeen!

Example Code

Can be found in the Aladeen branch.

Allow division of zero by zero

Example Code

Can be found in the Zero branch.

If an addition of numbers result in 21 - change the result to 42

Example Code

Can be found in the Never21 branch.