Subject: | How to pass named arguments from Perl to Python |
Date: | Thu, 12 Dec 2013 12:49:05 +0100 |
To: | bug-Inline-Python [...] rt.cpan.org |
From: | Ronald Hecht <ronald.hecht [...] gmx.de> |
From Perl I am trying to pass arguments by name to the constructor of a
Python class. I used the following style:
SomePackage::SomePythonClass->new(name1 => value1, name2 => value2);
It seems that the constructor is called with 4 arguments instead of 2. I
think the argument list looks as follows: 'name1', value1, 'name2', value2.
Am I doing it wrong or is it not supported?