Skip to content

elikaski/cpython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Python programming language

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.1%
  • C 34.8%
  • C++ 0.8%
  • M4 0.4%
  • HTML 0.4%
  • Batchfile 0.1%
  • Other 0.4%