Ticket #467 (closed defect: fixed)
cascaded assignments mixed with complete sequence assignments have side-effects
| Reported by: | scoder | Owned by: | scoder |
|---|---|---|---|
| Priority: | blocker | Milestone: | 0.13 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description
This code:
cdef int ai,bi
ai, bi = c = [intval(1), intval(2)]
print ai, bi, c
cdef int intval(int x):
return x
evaluates intval() four times instead of twice: once when building the list and once when assigning to ai/bi.
Change History
Note: See
TracTickets for help on using
tickets.
