Beispiel #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
Beispiel #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
Beispiel #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 )
Beispiel #4
0
    def __init__( self ):
        PepValue.__init__( self )

        self.namespace = {
            "argv"     : PepSysArgv(),
            "copyright": PepString(
                "Copyright (C) 2010-2012 Andy Balaam and the Pepper developers"
            ),
        }
Beispiel #5
0
 def __init__( self,  str_int ):
     PepValue.__init__( self )
     self.value = str( str_int )
Beispiel #6
0
 def __init__(self, var, mod_value):
     PepValue.__init__(self)
     self.var = var
     self.mod_value = mod_value
Beispiel #7
0
 def __init__( self, expression, body_stmts ):
     PepValue.__init__( self )
     self.expression = expression
     self.body_stmts = body_stmts
Beispiel #8
0
 def __init__( self, value ):
     PepValue.__init__( self )
     self.value = value
Beispiel #9
0
 def __init__(self, body_stmts):
     PepValue.__init__(self)
     self.body_stmts = body_stmts
 def __init__( self, initial_list ):
     PepValue.__init__( self )
     self._list = initial_list
 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
Beispiel #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
Beispiel #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
Beispiel #14
0
 def __init__( self, begin, end, step ):
     PepValue.__init__( self )
     self.begin = begin
     self.end   = end
     self.step  = step
Beispiel #15
0
 def __init__( self, items ):
     PepValue.__init__( self )
     self.items = items
Beispiel #16
0
 def __init__( self, clazz ):
     PepValue.__init__( self )
     self.clazz = clazz
     self.namespace = PepInstanceNamespace(
         self, self.clazz.get_namespace() )
Beispiel #17
0
 def __init__( self ):
     PepValue.__init__( self )
Beispiel #18
0
 def __init__( self, return_type, arg_types ):
     PepValue.__init__( self )
     self.return_type = return_type
     self.arg_types = arg_types
Beispiel #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