Skip to content

Exported type does not have attributes and python default functions. #270

@thatrandomperson5

Description

@thatrandomperson5

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions