1. Python CFFI
  2. Untitled project
  3. cffi
Issue #113 resolved

Values of anonymous enums are not exposed

Tyler Wade
created an issue

An example:

import cffi
cdef = """
enum
{
    anon_enum_val
};
"""

ffi = cffi.FFI()
ffi.cdef(cdef)
clib = ffi.verify(cdef)

print dir(clib)
print clib.anon_enum_val

'''
% python enumtest.py
[]
Traceback (most recent call last):
  File "enumtest.py", line 14, in <module>
    print clib.anon_enum_val
AttributeError: 'FFILibrary' object has no attribute 'anon_enum_val'
'''

Comments (1)

  1. Log in to comment