Skip to content
Snippets Groups Projects
Commit a55ba8973dc5 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

explanatory comment

parent 64a35d32512c
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,10 @@
# the C compiler
self._load(module, 'loading')
# build the FFILibrary class and instance
# build the FFILibrary class and instance, this is a module subclass
# because modules are expected to have usually-constant-attributes and
# in PyPy this means the JIT is able to treat attributes as constant,
# which we want.
class FFILibrary(types.ModuleType):
_cffi_generic_module = module
_cffi_ffi = self.ffi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment