Commit 2b866f62 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2142 from luzpaz/misc-typos

Misc typos
parents 942953a4 69b11a3d
...@@ -370,7 +370,7 @@ def put_assign_to_buffer(lhs_cname, rhs_cname, buf_entry, ...@@ -370,7 +370,7 @@ def put_assign_to_buffer(lhs_cname, rhs_cname, buf_entry,
pybuffernd_struct = buffer_aux.buflocal_nd_var.cname pybuffernd_struct = buffer_aux.buflocal_nd_var.cname
flags = get_flags(buffer_aux, buffer_type) flags = get_flags(buffer_aux, buffer_type)
code.putln("{") # Set up necesarry stack for getbuffer code.putln("{") # Set up necessary stack for getbuffer
code.putln("__Pyx_BufFmt_StackElem __pyx_stack[%d];" % buffer_type.dtype.struct_nesting_depth()) code.putln("__Pyx_BufFmt_StackElem __pyx_stack[%d];" % buffer_type.dtype.struct_nesting_depth())
getbuffer = get_getbuffer_call(code, "%s", buffer_aux, buffer_type) # fill in object below getbuffer = get_getbuffer_call(code, "%s", buffer_aux, buffer_type) # fill in object below
......
...@@ -440,7 +440,7 @@ class UtilityCode(UtilityCodeBase): ...@@ -440,7 +440,7 @@ class UtilityCode(UtilityCodeBase):
hashes/equals by instance hashes/equals by instance
proto C prototypes proto C prototypes
impl implemenation code impl implementation code
init code to call on module initialization init code to call on module initialization
requires utility code dependencies requires utility code dependencies
proto_block the place in the resulting file where the prototype should proto_block the place in the resulting file where the prototype should
...@@ -1639,7 +1639,7 @@ class CCodeWriter(object): ...@@ -1639,7 +1639,7 @@ class CCodeWriter(object):
as well as well
- labels, temps, exc_vars: One must construct a scope in which these can - labels, temps, exc_vars: One must construct a scope in which these can
exist by calling enter_cfunc_scope/exit_cfunc_scope (these are for exist by calling enter_cfunc_scope/exit_cfunc_scope (these are for
sanity checking and forward compatabilty). Created insertion points sanity checking and forward compatibility). Created insertion points
looses this scope and cannot access it. looses this scope and cannot access it.
- marker: Not copied to insertion point - marker: Not copied to insertion point
- filename_table, filename_list, input_file_contents: All codewriters - filename_table, filename_list, input_file_contents: All codewriters
......
...@@ -27,7 +27,7 @@ class CythonScope(ModuleScope): ...@@ -27,7 +27,7 @@ class CythonScope(ModuleScope):
entry.in_cinclude = True entry.in_cinclude = True
def is_cpp(self): def is_cpp(self):
# Alow C++ utility code in C++ contexts. # Allow C++ utility code in C++ contexts.
return self.context.cpp return self.context.cpp
def lookup_type(self, name): def lookup_type(self, name):
......
...@@ -276,7 +276,7 @@ class FusedCFuncDefNode(StatListNode): ...@@ -276,7 +276,7 @@ class FusedCFuncDefNode(StatListNode):
def _fused_instance_checks(self, normal_types, pyx_code, env): def _fused_instance_checks(self, normal_types, pyx_code, env):
""" """
Genereate Cython code for instance checks, matching an object to Generate Cython code for instance checks, matching an object to
specialized types. specialized types.
""" """
for specialized_type in normal_types: for specialized_type in normal_types:
......
...@@ -509,7 +509,7 @@ def run_pipeline(source, options, full_module_name=None, context=None): ...@@ -509,7 +509,7 @@ def run_pipeline(source, options, full_module_name=None, context=None):
class CompilationSource(object): class CompilationSource(object):
""" """
Contains the data necesarry to start up a compilation pipeline for Contains the data necessary to start up a compilation pipeline for
a single compilation unit. a single compilation unit.
""" """
def __init__(self, source_desc, full_module_name, cwd): def __init__(self, source_desc, full_module_name, cwd):
......
...@@ -1942,7 +1942,7 @@ class FuncDefNode(StatNode, BlockNode): ...@@ -1942,7 +1942,7 @@ class FuncDefNode(StatNode, BlockNode):
code.put_var_incref(entry) code.put_var_incref(entry)
# Note: defaults are always incref-ed. For def functions, we # Note: defaults are always incref-ed. For def functions, we
# we acquire arguments from object converstion, so we have # we acquire arguments from object conversion, so we have
# new references. If we are a cdef function, we need to # new references. If we are a cdef function, we need to
# incref our arguments # incref our arguments
elif is_cdef and entry.type.is_memoryviewslice and len(entry.cf_assignments) > 1: elif is_cdef and entry.type.is_memoryviewslice and len(entry.cf_assignments) > 1:
......
...@@ -122,7 +122,7 @@ class Entry(object): ...@@ -122,7 +122,7 @@ class Entry(object):
# #
# buffer_aux BufferAux or None Extra information needed for buffer variables # buffer_aux BufferAux or None Extra information needed for buffer variables
# inline_func_in_pxd boolean Hacky special case for inline function in pxd file. # inline_func_in_pxd boolean Hacky special case for inline function in pxd file.
# Ideally this should not be necesarry. # Ideally this should not be necessary.
# might_overflow boolean In an arithmetic expression that could cause # might_overflow boolean In an arithmetic expression that could cause
# overflow (used for type inference). # overflow (used for type inference).
# utility_code_definition For some Cython builtins, the utility code # utility_code_definition For some Cython builtins, the utility code
...@@ -2421,7 +2421,7 @@ class CppClassScope(Scope): ...@@ -2421,7 +2421,7 @@ class CppClassScope(Scope):
# to work with this type. # to work with this type.
for base_entry in \ for base_entry in \
base_scope.inherited_var_entries + base_scope.var_entries: base_scope.inherited_var_entries + base_scope.var_entries:
#contructor/destructor is not inherited #constructor/destructor is not inherited
if base_entry.name in ("<init>", "<del>"): if base_entry.name in ("<init>", "<del>"):
continue continue
#print base_entry.name, self.entries #print base_entry.name, self.entries
......
...@@ -378,7 +378,7 @@ class SimpleAssignmentTypeInferer(object): ...@@ -378,7 +378,7 @@ class SimpleAssignmentTypeInferer(object):
self.set_entry_type(entry, py_object_type) self.set_entry_type(entry, py_object_type)
return return
# Set of assignemnts # Set of assignments
assignments = set() assignments = set()
assmts_resolved = set() assmts_resolved = set()
dependencies = {} dependencies = {}
......
...@@ -488,7 +488,7 @@ class SourceFileDescriptor(object): ...@@ -488,7 +488,7 @@ class SourceFileDescriptor(object):
class CyGDBError(gdb.GdbError): class CyGDBError(gdb.GdbError):
""" """
Base class for Cython-command related erorrs Base class for Cython-command related errors
""" """
def __init__(self, *args): def __init__(self, *args):
......
...@@ -352,7 +352,7 @@ For a 3D C contiguous array:: ...@@ -352,7 +352,7 @@ For a 3D C contiguous array::
Out[6]: (12, 4, 1) Out[6]: (12, 4, 1)
A Fortran contiguous array has the opposite memory ordering, with the elements A Fortran contiguous array has the opposite memory ordering, with the elements
on the first axis closest togther in memory:: on the first axis closest together in memory::
In [7]: f_contig = np.array(c_contig, order='F') In [7]: f_contig = np.array(c_contig, order='F')
In [8]: np.all(f_contig == c_contig) In [8]: np.all(f_contig == c_contig)
......
...@@ -82,7 +82,7 @@ def _info(message, *args): ...@@ -82,7 +82,7 @@ def _info(message, *args):
# already built. It might be more efficient to only do it when the # already built. It might be more efficient to only do it when the
# mod time of the .pyx is newer than the mod time of the .so but # mod time of the .pyx is newer than the mod time of the .so but
# the question is how to get distutils to tell me the name of the .so # the question is how to get distutils to tell me the name of the .so
# before it builds it. Maybe it is easy...but maybe the peformance # before it builds it. Maybe it is easy...but maybe the performance
# issue isn't real. # issue isn't real.
def _load_pyrex(name, filename): def _load_pyrex(name, filename):
"Load a pyrex file given a name and filename." "Load a pyrex file given a name and filename."
......
# mode: error # mode: error
# cython: nonexistant = True # cython: nonexistent = True
# cython: boundscheck = true # cython: boundscheck = true
# cython: boundscheck = 9 # cython: boundscheck = 9
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment