You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def createDict(key, value):
return {key: value}
v = createDict("k", "v")
if str(v) != "{'k': 'v'}":
raise Exception("Dict wrong")
else:
print v
Both python and pyjaco produce this:
{'k': 'v'}
Can you check if you are using the newest release? If it's still a problem, can you please send the generated code? Let me know if you need any help with this.
Example code:
def createDict(key, value):
return {key: value}
if str(createDict("k", "v")) != "{'k': 'v'}":
raise Exception("Dict wrong")
The result is:
{'key': 'v'}
And it should be:
{'k': 'v'}
The text was updated successfully, but these errors were encountered: