-z, --pre-import <module> If specified, assume undeclared names in this
module. Emulates the behavior of putting
"from <module> import *" at the top of the file.
- --incref_local_binop Force local an extra incref on local variables before
+ --incref-local-binop Force local an extra incref on local variables before
performing any binary operations.
"""
#The following experimental options are supported only on MacOSX:
Options.embed_pos_in_docstring = 1
elif option in ("-z", "--pre-import"):
Options.pre_import = pop_arg()
- elif option == "--incref_local_binop":
+ elif option == "--incref-local-binop":
Options.incref_local_binop = 1
else:
bad_usage()
self.obj.analyse_types(env)
self.analyse_attribute(env)
if self.entry and self.entry.is_cmethod and not self.is_called:
- error(self.pos, "C method can only be called")
+# error(self.pos, "C method can only be called")
+ pass
## Reference to C array turns into pointer to first element.
#while self.type.is_array:
# self.type = self.type.element_ptr_type()
and op not in ('is', 'is_not')):
return 1
else:
- return 0
+ return type1.is_cfunction and type1.is_cfunction and type1 == type2
def generate_operation_code(self, code, result_code,
operand1, op , operand2):
module_list.append(env)
def generate_module_preamble(self, env, cimported_modules, code):
- code.putln('/* Generated by Pyrex %s on %s */' % (
+ code.putln('/* Generated by Cython %s on %s */' % (
Version.version, time.asctime()))
code.putln('')
code.putln('#define PY_SSIZE_T_CLEAN')
-version = '0.9.6.5'
+version = '0.9.6.6'