title: How to return two values in cython cdef without gil (nogil)
body: <p>I have a function and I am trying to return a number and a vector of ints. What I have is </p>
  
  <pre><code>cdef func() nogil:
      cdef vector[int] vect
      cdef int a_number
      ...
      return a_number, vect
  </code></pre>
  
  <p>but this will give errors like <code>Assignment of Python object not allowed without gil</code>. Is there a workaround?</p>