nimpy icon indicating copy to clipboard operation
nimpy copied to clipboard

Exported type does not have attributes and python default functions.

Open thatrandomperson5 opened this issue 1 year ago • 1 comments

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?

thatrandomperson5 avatar Aug 28 '22 20:08 thatrandomperson5