Esempio n. 1
0
 def __init__( self, name, base_classes, body_stmts ):
     PepValue.__init__( self )
     self.name = name
     self.base_classes = base_classes
     self.body_stmts = body_stmts
     assert( len( self.body_stmts ) > 0 ) # TODO: not just assert
     self.namespace = None
Esempio n. 2
0
 def __init__(
         self, variable_type, variable_name, iterator, body_stmts ):
     PepValue.__init__( self )
     self.variable_type = variable_type
     self.variable_name = variable_name
     self.iterator = iterator
     self.body_stmts = body_stmts
Esempio n. 3
0
    def __init__( self, clazz, name ):
        type_isinstance( PepTypeMatcher, clazz )
        type_is(         str,            name )

        PepValue.__init__( self )
        self.clazz = clazz
        self.name = name
        self.namespace = self.clazz.runtime_namespace( self, False )
Esempio n. 4
0
    def __init__( self ):
        PepValue.__init__( self )

        self.namespace = {
            "argv"     : PepSysArgv(),
            "copyright": PepString(
                "Copyright (C) 2010-2012 Andy Balaam and the Pepper developers"
            ),
        }
Esempio n. 5
0
 def __init__( self,  str_int ):
     PepValue.__init__( self )
     self.value = str( str_int )
Esempio n. 6
0
 def __init__(self, var, mod_value):
     PepValue.__init__(self)
     self.var = var
     self.mod_value = mod_value
Esempio n. 7
0
 def __init__( self, expression, body_stmts ):
     PepValue.__init__( self )
     self.expression = expression
     self.body_stmts = body_stmts
Esempio n. 8
0
 def __init__( self, value ):
     PepValue.__init__( self )
     self.value = value
Esempio n. 9
0
 def __init__(self, body_stmts):
     PepValue.__init__(self)
     self.body_stmts = body_stmts
Esempio n. 10
0
 def __init__( self, initial_list ):
     PepValue.__init__( self )
     self._list = initial_list
Esempio n. 11
0
 def __init__( self, user_function, args, namespace_name ):
     PepValue.__init__( self )
     # TODO: check arg types
     self.user_function = user_function
     self.args = args
     self.namespace_name = namespace_name
Esempio n. 12
0
 def __init__( self, ret_type, name, arg_types_and_names ):
     PepValue.__init__( self )
     self.ret_type = ret_type
     self.name = name
     self.arg_types_and_names = arg_types_and_names
Esempio n. 13
0
 def __init__( self, instance, args, init_fn ):
     PepValue.__init__( self )
     # TODO: check arg types
     self.instance = instance
     self.args = args
     self.init_fn = init_fn
Esempio n. 14
0
 def __init__( self, begin, end, step ):
     PepValue.__init__( self )
     self.begin = begin
     self.end   = end
     self.step  = step
Esempio n. 15
0
 def __init__( self, items ):
     PepValue.__init__( self )
     self.items = items
Esempio n. 16
0
 def __init__( self, clazz ):
     PepValue.__init__( self )
     self.clazz = clazz
     self.namespace = PepInstanceNamespace(
         self, self.clazz.get_namespace() )
Esempio n. 17
0
 def __init__( self ):
     PepValue.__init__( self )
Esempio n. 18
0
 def __init__( self, return_type, arg_types ):
     PepValue.__init__( self )
     self.return_type = return_type
     self.arg_types = arg_types
Esempio n. 19
0
 def __init__( self, name, base_classes, body_stmts ):
     PepValue.__init__( self )
     self.name = name
     self.base_classes = base_classes
     self.body_stmts = body_stmts
 def __init__( self, userclass ):
     PepValue.__init__( self )
     self.userclass = userclass