I am setting out to Cythonize a function, and found that Cython does
not appear to support tuple unpacking in function arguments. This is
perfectly legal Python:
tuple_unpack_args.pyx:1:27: Expected ')', found ','
$ cython --version
Cython version 0.17.1
Whether we want to support this I don't know, but if the goal is to be
able to compile all legal python, then this is a missing feature.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
> I am setting out to Cythonize a function, and found that Cython does
> not appear to support tuple unpacking in function arguments. This is
> perfectly legal Python:
Given that it's a dead feature that requires a dedicated, non-trivial
implementation (unnamed function arguments) but that is very easy to work
around, there hasn't been any move to support it yet.
On Thu, Nov 8, 2012 at 10:57 PM, Stefan Behnel <stefan...@behnel.de> wrote:
>> not appear to support tuple unpacking in function arguments. This is
>> perfectly legal Python:
> Python 2, to be exact.
I see -- I've paid far too little attention to Python 3 -- I didn't
realize this was depreciated.
> Given that it's a dead feature that requires a dedicated, non-trivial
> implementation (unnamed function arguments) but that is very easy to work
> around, there hasn't been any move to support it yet.
Fair enough.
-thx.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
> On Thu, Nov 8, 2012 at 10:57 PM, Stefan Behnel wrote:
>>> not appear to support tuple unpacking in function arguments. This is
>>> perfectly legal Python:
>> Python 2, to be exact.
> I see -- I've paid far too little attention to Python 3 -- I didn't
> realize this was depreciated.