Ticket #720 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by vitja

  • status changed from new to closed
  • resolution set to fixed

Changed 3 years ago by vitja

  • milestone changed from wishlist to 0.15.1

Changed 3 years ago by scoder

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 3 years ago by scoder

  • owner changed from somebody to vitja
  • status changed from reopened to new

Changed 3 years ago by scoder

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