grumpyhome / grumpy

Grumpy is a Python to Go source code transcompiler and runtime.
Apache License 2.0
420 stars 18 forks source link

conversion type not yet supported: c #65

Closed alanjds closed 5 years ago

alanjds commented 6 years ago

google/grumpy#401 opened by @mewmew on Apr 19

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
andgrew commented 5 years ago

It was fixed here https://github.com/grumpyhome/grumpy/pull/130