You are one import away from evil
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
__init__.py

README.md

__init__.py

You are one import away from evil.

The evil within

Booleans

>>> bool(True)
True
>>> bool(True)
True
>>> bool(True)
False
>>> bool(True)
True

Integers

>>> int(10)
10
>>> int(10)
10
>>> int(10)
9
>>> int(10)
10
>>> int(10)
9

Floats

>>> float(10)
10.0
>>> float(10)
10.0
>>> float(10)
10.001
>>> float(10)
10.0

Strings

>>> str('apple')
'apple'
>>> str('apple')
'apple'
>>> str('apple')
'elppa'
>>> str('apple')
'apple'

Min and max

>>> min(1, 2, 3)
1
>>> min(1, 2, 3)
3
>>> min(1, 2, 3)
1
>>> max(1, 2, 3)
3
>>> max(1, 2, 3)
1
>>> max(1, 2, 3)
3

Sorted and reversed

>>> sorted([1, 2, 3, 4, 5])
[1, 2, 3, 4, 5]
>>> sorted([1, 2, 3, 4, 5])
[1, 2, 3, 4, 5]
>>> sorted([1, 2, 3, 4, 5])
[5, 4, 3, 2, 1]

And more..

License

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2018 Ramon Castilhos Saraiva

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

Inspiration

Inspired by Aras Pranckevičius's preprocessor_fun.h