nimpy
nimpy copied to clipboard
Exported type does not have attributes and python default functions.
I have a type in nim
type PyHttpResponse = ref object of PyNimObjectExperimental
content*: string
status*: string
headers*: TableRef[string, seq[string]]
version*: string
But in python code when I try to do the below it does not work:
instance.__dict__ #PyHttpResponse python instance
instance.content
Why is this?