Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cascaded list unpacking into typed targets crashes #1027

Closed
robertwb opened this issue Dec 9, 2009 · 3 comments
Closed

cascaded list unpacking into typed targets crashes #1027

robertwb opened this issue Dec 9, 2009 · 3 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Dec 9, 2009

See extended_unpacking_T409 test:

  long __pyx_t_2;
  long __pyx_t_3;
  /*
 *     a, *b, c = d = e = [1,2]             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = PyList_New(2); if /* ... */
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(((PyObject *)1));
  PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)1));
  __Pyx_GIVEREF(((PyObject *)1));
  __Pyx_INCREF(((PyObject *)2));
  PyList_SET_ITEM(__pyx_t_1, 1, ((PyObject *)2));
  __Pyx_GIVEREF(((PyObject *)2));
  __pyx_t_2 = 1;
  __pyx_t_3 = 2;

Migrated from http://trac.cython.org/ticket/466

@robertwb
Copy link
Contributor Author

robertwb commented Dec 9, 2009

scoder changed component from Type Analysis to Code Generation
summary from

full type inference breaks cascaded list unpacking

to

cascaded list unpacking into typed targets crashes
commented

@robertwb
Copy link
Contributor Author

scoder changed milestone from wishlist to 0.12.1
owner from somebody to scoder
status from new to assigned
commented

Fixed here:

http://hg.cython.org/cython-devel/rev/aadf319caf5d

@robertwb
Copy link
Contributor Author

scoder changed resolution to fixed
status from assigned to closed
commented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant