naatje80

Results 14 comments of naatje80

This fixed the issue for me. In make case, I've moved `code_object=CodeObjectNode(self.def_node))` below `code_object=CodeObjectNode(node))` like suggested.

I've tested it with the example from issue: #3267. It now generates both output like expected: ``` func __code__: lam __code__: ```

My apologies. One issue I still need to resolve. I've created a patch for this change. I've removed the sources, applied the patch and compiled and installed the application with:...

The issue seems to be caused by the Cython/Compiler/Code.c file that is generated during compilation of Cython when the patches are applied, If the patches are not applied, it seems...

@da-woods: Thank you for the additional information. I first indeed thought it was only failing when trying to compile a cython module. However, I noticed the whole compiled cython version...

I further debugged the issue using the python file: `Objects/codeobject.c` (not cpython in my case), and it seems to be caused by: ```` n_varnames = PyTuple_GET_SIZE(varnames); ```` ` PyTuple_GET_SIZE` does...

> So: > > 1. You don't have to compile Cython to use it. So with that in mind I would focus on identifying a minimal example of the problem,...

The issue is indeed fixed, if I replace: ``` return ''.join( '"%s\\n"\n' % line if not line.endswith('\\') or line.endswith('\\\\') else '"%s"\n' % line[:-1] for line in content.splitlines()) ``` By: ```...

I finally found more information: https://github.com/cython/cython/blob/72172c6beee5dec3539f79fddffee6ec97d5db1d/Cython/Compiler/Code.py#L582-L584 Converting this to C-code seems to go wrong at the following location: https://github.com/cython/cython/blob/72172c6beee5dec3539f79fddffee6ec97d5db1d/Cython/Compiler/ExprNodes.py#L10077-L10095 I've added some debug rules: ``` print("Position: {}\n".format(self.def_node.pos)) print("result: ", self.varnames.result())...

I finally had time to further look into this issue. If I change the previous proposed change from: `self.code_object = CodeObjectNode(self.def_node)` To this (So skip generation of Code objects for...