Author: Alex Gaynor <[email protected]>
Branch: library-module
Changeset: r1169:a55ba8973dc5
Date: 2013-02-25 08:14 -0800
http://bitbucket.org/cffi/cffi/changeset/a55ba8973dc5/

Log:    explanatory comment

diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py
--- a/cffi/vengine_gen.py
+++ b/cffi/vengine_gen.py
@@ -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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to