-
-
Save moritz/54e2fb94687784679eb1f053bbd40dcc to your computer and use it in GitHub Desktop.
Inline::Python does not work with datetime.date?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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