From: <pj...@us...> - 2009-10-18 18:59:38
|
Revision: 6870 http://jython.svn.sourceforge.net/jython/?rev=6870&view=rev Author: pjenvey Date: 2009-10-18 18:59:19 +0000 (Sun, 18 Oct 2009) Log Message: ----------- cache TYPE Modified Paths: -------------- trunk/jython/src/org/python/core/PyCell.java Modified: trunk/jython/src/org/python/core/PyCell.java =================================================================== --- trunk/jython/src/org/python/core/PyCell.java 2009-10-17 17:07:38 UTC (rev 6869) +++ trunk/jython/src/org/python/core/PyCell.java 2009-10-18 18:59:19 UTC (rev 6870) @@ -6,16 +6,21 @@ /** * The Python cell type. - * - * Cells are used to implement variables referenced by multiple - * scopes. + * + * Cells are used to implement variables referenced by multiple scopes. */ @ExposedType(name = "cell", isBaseType = false) public class PyCell extends PyObject { + public static final PyType TYPE = PyType.fromClass(PyCell.class); + /** The underlying content of the cell, or null. */ public PyObject ob_ref; + public PyCell() { + super(TYPE); + } + @ExposedGet(name = "cell_contents") public PyObject getCellContents() { if (ob_ref == null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |