Did I find the right examples for you? yes no

All Samples(2487)  |  Call(2366)  |  Derive(10)  |  Import(111)

        def error(position, message):
    #print "Errors.error:", repr(position), repr(message) ###
    if position is None:
        raise InternalError(message)
    err = CompileError(position, message)
    if DebugFlags.debug_exception_on_error: raise Exception(err) # debug
    report_error(err)
    return err
        


src/c/y/Cython-0.20.1/Cython/Compiler/ExprNodes.py   Cython(Download)
import operator
 
from Errors import error, warning, warn_once, InternalError, CompileError
from Errors import hold_errors, release_errors, held_errors, report_error
from Code import UtilityCode, TempitaUtilityCode
    def compile_time_value(self, denv):
        #  Return value of compile-time expression, or report error.
        error(self.pos, "Invalid compile-time expression")
 
    def compile_time_value_error(self, e):
        error(self.pos, "Error in compile-time expression: %s: %s" % (
    def analyse_target_declaration(self, env):
        error(self.pos, "Cannot assign to or delete this")
 
    # ------------- Expression Analysis ----------------
 
    def gil_assignment_check(self, env):
        if env.nogil and self.type.is_pyobject:
            error(self.pos, "Assignment of Python object not allowed without gil")
 
    def check_const(self):

src/c/y/cython-HEAD/Cython/Compiler/ExprNodes.py   cython(Download)
import operator
 
from Errors import error, warning, warn_once, InternalError, CompileError
from Errors import hold_errors, release_errors, held_errors, report_error
from Code import UtilityCode, TempitaUtilityCode
    def compile_time_value(self, denv):
        #  Return value of compile-time expression, or report error.
        error(self.pos, "Invalid compile-time expression")
 
    def compile_time_value_error(self, e):
        error(self.pos, "Error in compile-time expression: %s: %s" % (
    def analyse_target_declaration(self, env):
        error(self.pos, "Cannot assign to or delete this")
 
    # ------------- Expression Analysis ----------------
 
    def gil_assignment_check(self, env):
        if env.nogil and self.type.is_pyobject:
            error(self.pos, "Assignment of Python object not allowed without gil")
 
    def check_const(self):

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/ExprNodes.py   CythonCTypesBackend(Download)
import operator
 
from Errors import error, warning, warn_once, InternalError, CompileError
from Errors import hold_errors, release_errors, held_errors, report_error
from Code import UtilityCode, TempitaUtilityCode
    def compile_time_value(self, denv):
        #  Return value of compile-time expression, or report error.
        error(self.pos, "Invalid compile-time expression")
 
    def compile_time_value_error(self, e):
        error(self.pos, "Error in compile-time expression: %s: %s" % (
    def analyse_target_declaration(self, env):
        error(self.pos, "Cannot assign to or delete this")
 
    # ------------- Expression Analysis ----------------
 
    def gil_assignment_check(self, env):
        if env.nogil and self.type.is_pyobject:
            error(self.pos, "Assignment of Python object not allowed without gil")
 
    def check_const(self):

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/ExprNodes.py   essig(Download)
import operator
 
from Errors import error, warning, warn_once, InternalError
from Errors import hold_errors, release_errors, held_errors, report_error
from Code import UtilityCode
    def compile_time_value(self, denv):
        #  Return value of compile-time expression, or report error.
        error(self.pos, "Invalid compile-time expression")
 
    def compile_time_value_error(self, e):
        error(self.pos, "Error in compile-time expression: %s: %s" % (
    def analyse_target_declaration(self, env):
        error(self.pos, "Cannot assign to or delete this")
 
    # ------------- Expression Analysis ----------------
 
    def gil_assignment_check(self, env):
        if env.nogil and self.type.is_pyobject:
            error(self.pos, "Assignment of Python object not allowed without gil")
 
    def check_const(self):

src/p/y/pylibs-HEAD/Cython/Compiler/ExprNodes.py   pylibs(Download)
import operator
 
from Errors import error, warning, warn_once, InternalError
from Errors import hold_errors, release_errors, held_errors, report_error
from Code import UtilityCode
    def compile_time_value(self, denv):
        #  Return value of compile-time expression, or report error.
        error(self.pos, "Invalid compile-time expression")
 
    def compile_time_value_error(self, e):
        error(self.pos, "Error in compile-time expression: %s: %s" % (
    def analyse_target_declaration(self, env):
        error(self.pos, "Cannot assign to or delete this")
 
    # ------------- Expression Analysis ----------------
 
    def gil_assignment_check(self, env):
        if env.nogil and self.type.is_pyobject:
            error(self.pos, "Assignment of Python object not allowed without gil")
 
    def check_const(self):

src/p/l/plexnet-HEAD/third_party/python/Cython/Compiler/ExprNodes.py   plexnet(Download)
from string import join
 
from Errors import error, warning, InternalError
from Errors import hold_errors, release_errors, held_errors, report_error
from Cython.Utils import UtilityCode
    def compile_time_value(self, denv):
        #  Return value of compile-time expression, or report error.
        error(self.pos, "Invalid compile-time expression")
 
    def compile_time_value_error(self, e):
        error(self.pos, "Error in compile-time expression: %s: %s" % (
    def analyse_target_declaration(self, env):
        error(self.pos, "Cannot assign to or delete this")
 
    # ------------- Expression Analysis ----------------
 
    def gil_assignment_check(self, env):
        if env.nogil and self.type.is_pyobject:
            error(self.pos, "Assignment of Python object not allowed without gil")
 
    def check_const(self):

src/c/y/Cython-0.20.1/Cython/Compiler/Nodes.py   Cython(Download)
 
import Builtin
from Errors import error, warning, InternalError, CompileError
import Naming
import PyrexTypes
    def gil_error(self, env=None):
        error(self.pos, "%s not allowed without gil" % self.gil_message)
 
    cpp_message = "Operation"
 
    def cpp_error(self):
        error(self.pos, "%s only allowed in c++" % self.cpp_message)
 
    def clone_node(self):
        """Clone the node. This is defined as a shallow copy, except for member lists
    def analyse(self, base_type, env, nonempty = 0):
        if nonempty and self.name == '':
            # May have mistaken the name for the type.
            if base_type.is_ptr or base_type.is_array or base_type.is_buffer:
                error(self.pos, "Missing argument name")
            elif base_type.is_void:
                error(self.pos, "Use spam() rather than spam(void) to declare a function with no arguments.")

src/c/y/cython-HEAD/Cython/Compiler/Nodes.py   cython(Download)
 
import Builtin
from Errors import error, warning, InternalError, CompileError
import Naming
import PyrexTypes
    def gil_error(self, env=None):
        error(self.pos, "%s not allowed without gil" % self.gil_message)
 
    cpp_message = "Operation"
 
    def cpp_error(self):
        error(self.pos, "%s only allowed in c++" % self.cpp_message)
 
    def clone_node(self):
        """Clone the node. This is defined as a shallow copy, except for member lists
    def analyse(self, base_type, env, nonempty = 0):
        if nonempty and self.name == '':
            # May have mistaken the name for the type.
            if base_type.is_ptr or base_type.is_array or base_type.is_buffer:
                error(self.pos, "Missing argument name")
            elif base_type.is_void:
                error(self.pos, "Use spam() rather than spam(void) to declare a function with no arguments.")

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Nodes.py   CythonCTypesBackend(Download)
 
import Builtin
from Errors import error, warning, InternalError, CompileError
import Naming
import PyrexTypes
    def gil_error(self, env=None):
        error(self.pos, "%s not allowed without gil" % self.gil_message)
 
    cpp_message = "Operation"
 
    def cpp_error(self):
        error(self.pos, "%s only allowed in c++" % self.cpp_message)
 
    def clone_node(self):
        """Clone the node. This is defined as a shallow copy, except for member lists
    def analyse(self, base_type, env, nonempty = 0):
        if nonempty and self.name == '':
            # May have mistaken the name for the type.
            if base_type.is_ptr or base_type.is_array or base_type.is_buffer:
                error(self.pos, "Missing argument name")
            elif base_type.is_void:
                error(self.pos, "Use spam() rather than spam(void) to declare a function with no arguments.")

src/c/y/Cython-0.20.1/Cython/Compiler/Symtab.py   Cython(Download)
import copy
import re
from Errors import warning, error, InternalError
from StringEncoding import EncodedString
import Options, Naming
    def redeclared(self, pos):
        error(pos, "'%s' does not match previous declaration" % self.name)
        error(self.pos, "Previous declaration is here")
 
    def all_alternatives(self):
        # declared.
        if type.is_buffer and not isinstance(self, LocalScope): # and not is_type:
            error(pos, 'Buffer types only allowed as function local variables')
        if not self.in_cinclude and cname and re.match("^_[_A-Z]+$", cname):
            # See http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names
                warning(pos, "'%s' redeclared " % name, 0)
            elif visibility != 'ignore':
                error(pos, "'%s' redeclared " % name)
        entry = Entry(name, cname, type, pos = pos)
        entry.in_cinclude = self.in_cinclude

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next