Giter VIP home page Giter VIP logo

exterminate's People

Contributors

adtac avatar jhotujec avatar sils avatar xfxf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

exterminate's Issues

A suggestion to make this even more destructive

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!

Swap some integers ?

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.

4 is a good one

Inspiration: allow iterating over lists to overrun

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.)

Inspiration: make the `class` statement create dicts instead of classes

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.