google / grumpy

Grumpy is a Python to Go source code transcompiler and runtime.
Apache License 2.0
10.56k stars 652 forks source link

conversion type not yet supported: c #401

Open mewmew opened 6 years ago

mewmew commented 6 years ago

Works:

import datetime
now = datetime.datetime.now()
now2 = datetime.datetime.now()
print now2-now

// Output: 0:00:00.000198

Does not work (contents of hello.py):

import datetime
now = datetime.datetime.now()
print now
[u@x220 grumpy]$ grumpc -modname=hello $GOPATH/src/__python__/hello.py >     $GOPATH/src/__python__/hello/module.go
[u@x220 grumpy]$ echo 'import hello' | grumprun
NotImplementedError: conversion type not yet supported: c