Skip to content

Instantly share code, notes, and snippets.

@moritz
Created March 8, 2017 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moritz/54e2fb94687784679eb1f053bbd40dcc to your computer and use it in GitHub Desktop.
Save moritz/54e2fb94687784679eb1f053bbd40dcc to your computer and use it in GitHub Desktop.
Inline::Python does not work with datetime.date?
use v6;
use Inline::Python;
my $py = Inline::Python.new;
$py.run('import datetime');
$py.run('import collections');
say $py.call('collections', 'defaultdict', Any); # works as expected
say $py.call('datetime', 'date', 2017, 1, 1); # (Any)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment