bdice opened a new issue, #34564:
URL: https://github.com/apache/arrow/issues/34564

   ### Describe the enhancement requested
   
   When building against PyArrow's Cython interface with Cython 3.0.0 beta 1, I 
see the following warnings:
   ```
   warning: 
/home/bdice/mambaforge/envs/cython_beta/lib/python3.10/site-packages/pyarrow/lib.pxd:33:60:
 The keyword 'nogil' should appear at the end of the function signature line. 
Placing it before 'except' or 'noexcept' will be disallowed in a future version 
of Cython.
   warning: 
/home/bdice/mambaforge/envs/cython_beta/lib/python3.10/site-packages/pyarrow/includes/libarrow.pxd:1715:24:
 Rvalue-reference as function argument not supported
   warning: 
/home/bdice/mambaforge/envs/cython_beta/lib/python3.10/site-packages/pyarrow/includes/libarrow.pxd:1740:26:
 Rvalue-reference as function argument not supported
   warning: 
/home/bdice/mambaforge/envs/cython_beta/lib/python3.10/site-packages/pyarrow/includes/libarrow.pxd:1756:23:
 Rvalue-reference as function argument not supported
   warning: 
/home/bdice/mambaforge/envs/cython_beta/lib/python3.10/site-packages/pyarrow/includes/libarrow.pxd:1770:24:
 Rvalue-reference as function argument not supported
   warning: 
/home/bdice/mambaforge/envs/cython_beta/lib/python3.10/site-packages/pyarrow/includes/libarrow.pxd:2115:20:
 Rvalue-reference as function argument not supported
   ```
   
   For the `nogil` warning, I think the fix is straightforward - just move the 
`nogil` qualifier to the end of the line.
   
   For the Rvalue-reference warnings, I discussed some similar warnings with 
@shwina, who initially contributed the [PR that added these 
warnings](https://github.com/cython/cython/pull/3821/). He said the best fix is 
to remove definitions with Rvalue references (`T&&`) as arguments, because 
Cython can't use them anyway.
   
   Let me know if a PR to fix these warnings would be helpful.
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to