Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension types lack a dict to assign arbitrary attributes #1301

Closed
robertwb opened this issue Oct 10, 2011 · 1 comment
Closed

extension types lack a dict to assign arbitrary attributes #1301

robertwb opened this issue Oct 10, 2011 · 1 comment

Comments

@robertwb
Copy link
Contributor

It should be possible to do this:

cdef class MyType(object):
    cdef dict __dict__

m = MyType()
m.xyz = 5

Currently, extension types do not support the assignment of arbitrary attributes at all.

http://thread.gmane.org/gmane.comp.python.cython.devel/9638

Migrated from http://trac.cython.org/ticket/745

@scoder
Copy link
Contributor

scoder commented Feb 23, 2018

Supported since Cython 0.25.

@scoder scoder closed this as completed Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants