Ejemplo n.º 1
0
                    print("    " + a)

            else:
                print("Type data for %s" % c[1])
                exec("a = " + c[1] + ".__init__")

                if a.__arg_types__:
                    print("__arg_types__:")
                    for t in a.__arg_types__:
                        print("    " + str(t))

                if a.__kwarg_types__:
                    print("__kwarg_types__:")
                    for t in a.__kwarg_types__:
                        print("    " + t)

        elif c[0] == "send":
            c = " ".join(c[1::])
            print("Exec string: " + c)
            s = exec(c)
            exec(game.sendSignal(s))

        elif c[0] == "exit":
            exit(0)

        else:
            try:
                exec(" ".join(c))
            except:
                pass
Ejemplo n.º 2
0
                    print("    " + a)

            else:
                print("Type data for %s" % c[1])
                exec("a = " + c[1] + ".__init__")

                if (a.__arg_types__):
                    print("__arg_types__:")
                    for t in a.__arg_types__:
                        print("    " + str(t))

                if (a.__kwarg_types__):
                    print("__kwarg_types__:")
                    for t in a.__kwarg_types__:
                        print("    " + t)

        elif (c[0] == "send"):
            c = ' '.join(c[1::])
            print("Exec string: " + c)
            s = exec(c)
            exec(game.sendSignal(s))

        elif (c[0] == 'exit'):
            exit(0)

        else:
            try:
                exec(' '.join(c))
            except:
                pass