robertwb / issues-import-test

0 stars 0 forks source link

Python object arguments are copied when used as C++ container reference parameters #991

Closed robertwb closed 9 years ago

robertwb commented 10 years ago

Example:

cdef extern from *:
    cdef foo(vector& passed_by_ref)

cdef object o
foo(o) # should be a warning

This should print a warning because o will not be passed by reference as the function dictates, it will instead be passed by copy since it is a python object.

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

robertwb commented 10 years ago

bigfav changed component from Code Generation to Error Reporting

robertwb commented 9 years ago

scoder changed milestone from wishlist to 0.22 owner from somebody to scoder status from new to assigned

robertwb commented 9 years ago

scoder changed resolution to fixed status from assigned to closed