Author: Armin Rigo <[email protected]>
Branch:
Changeset: r69419:1a6a0914772c
Date: 2014-02-25 14:16 +0100
http://bitbucket.org/pypy/pypy/changeset/1a6a0914772c/
Log: Write down a good idea found in
module/_rawffi/alt/interp_ffitype.py.
diff --git a/pypy/module/_cffi_backend/ctypeobj.py
b/pypy/module/_cffi_backend/ctypeobj.py
--- a/pypy/module/_cffi_backend/ctypeobj.py
+++ b/pypy/module/_cffi_backend/ctypeobj.py
@@ -14,6 +14,8 @@
_immutable_fields_ = ['size?', 'name', 'name_position']
# note that 'size' is not strictly immutable, because it can change
# from -1 to the real value in the W_CTypeStruct subclass.
+ # XXX this could be improved with an elidable method get_size()
+ # that raises in case it's still -1...
cast_anything = False
is_primitive_integer = False
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit