Closed abhinav closed 8 years ago
@blampe @breerly @junchaowu
:sheep:
why does readonly give you this function? wasn't it working before?
@junchaowu See http://docs.cython.org/src/userguide/extension_types.html
If you declare an extension type, attributes for it are available from C only by default. Marking it as readonly or public generates some extra code to make the attribute accessible from Python.
oh good to know.
This allows you to do:
If you need to access the protocol associated with the module.
Use case: If you are doing low level stuff directly with the message/etc. you want to be sure you're using the same Protocol as the generated module.