Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Enterprise Quality Python

Name: Anonymous 2013-11-20 5:29

import sys

class NewObjectMaker(object):
    def __init__(this, cls, *args, **kw):
        this.cls  = cls;
        this.args = args;
        this.kw   = kw;

    def delete (this):
        del this.cls;
        del this.args;
        del this.kw;
        del this;

    def makeNewObjectInstance(this):
        return this.cls(*this.args, **this.kw);

def main():
    global sys
    global newObjectMaker

    newObjectMaker = NewObjectMaker(str, 'Hello Agile Enterprise Scalable Big Data World!');
    helloWorld = newObjectMaker.makeNewObjectInstance();
    newObjectMaker.delete();

    i = 0;
    while 1 :
        helloWorldLength = len(helloWorld)

        char = helloWorld[i];
        sys.stdout.write(char);

        if i >= helloWorldLength - 1:
            break;
        else :
            i += 1;
            continue;
    del i
    del helloWorldLength
    del char
    del helloWorld

if __name__ == '__main__':
    main();

Name: Anonymous 2013-11-20 5:49

this is really beatiful, i love enterprise software. i am working ICT sector

Don't change these.
Name: Email:
Entire Thread Thread List