adtac / exterminate Goto Github PK
View Code? Open in Web Editor NEWBreak Python programs with a single import
License: MIT License
Break Python programs with a single import
License: MIT License
One of the advantages of Python over a language like C is that you can directly iterate over arrays. No more for (var i = 0; i <= my_list_length; i++)
(or was it i < my_list_length
?), just do for i in my_list
. No risk of reading off the end of an array.
…unless, of course, some dastardly person were to overwrite the __iter__()
method on your list that overran the end of the list. But who would do that?
(You could so something similar for strings, by having them continue until you "find" a null terminator.)
CPython in particular is known to cache a lot of thing in particular integers from -5 to 250something.
So technically you can swap some integers so that 69 == 42
is True
, or 41+1
is 36
(see how to do it).
That's a really bad idea though. You might not like it.
May I suggest also for the random module to always return the same value.
Have fun!
# Make the `class` statement create dicts
import builtins
def build_class(body_func, name):
namespace = {}
exec(body_func.__code__, namespace)
for key in list(namespace.keys()):
if key.startswith('__'):
del namespace[key]
return namespace
builtins.__build_class__ = build_class
class Foo:
a = 1
b = 2
print(Foo)
Hello, instead of always modifying the number you could instead modify it randomly (for example one out of every 100 numbers will be modified the other 99 will be the same). So the problematic behavior will only happen once in a while making debugging impossible!
we should definitely do this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.