Opened 3 years ago

Closed 3 years ago

#720 closed defect (fixed)

generator expression function does not follow signature changes

Reported by: scoder Owned by: vitja
Priority: major Milestone: 0.15.1
Component: Code Generation Keywords:
Cc:

Description

When the always_allow_keywords option is enabled, the call to the generator expression function still thinks it has a NOARGS signature. This leads to invalid C code as the call and the function signature are out of sync.

Example from pyregr test_bytes.py in Py2.7:

static PyObject *__pyx_pf_10test_bytes_14test_from_list_genexpr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/

 ...
 *         b = self.type2test(i for i in ints)    # <<<<<<<<<<<<<<

  __pyx_t_2 = __pyx_pf_10test_bytes_14test_from_list_genexpr(((PyObject*)__pyx_cur_scope), NULL); if /*...*/

Change History (5)

comment:1 Changed 3 years ago by vitja

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 3 years ago by vitja

  • Milestone changed from wishlist to 0.15.1

comment:3 Changed 3 years ago by scoder

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 3 years ago by scoder

  • Owner changed from somebody to vitja
  • Status changed from reopened to new

comment:5 Changed 3 years ago by scoder

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.