Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thank you. I'd like to note that I wanted a wrapper class for a more pythonic interface, even inside a Cython module. Could you provide an example of a simple Cython wrapper? I've modeled the solution that I referenced in the UPD after GSL (that's also how I figured out about __init__.py), but it's too complex, and I've probably overengineered something. Commented Dec 2, 2015 at 21:17
  • 1
    It looks OK - you've fitted it to work broadly like a dict which I think is as Pythonic as you can get. Unfortunately, Cython does involve wrapping every function independently, which gives you quite long interfaces, so I'd say next time just cut it down to the bits you need. I can't see a whole lot else. Commented Dec 3, 2015 at 7:29