[pypy-svn] rev 927 - pypy/trunk/doc

anna at codespeak.net anna at codespeak.net
Sun Jun 22 13:03:20 CEST 2003


Author: anna
Date: Sun Jun 22 13:03:20 2003
New Revision: 927

Removed:
   pypy/trunk/doc/ObSpIntfc.txt
Log:
removed obsolete file

Deleted: pypy/trunk/doc/ObSpIntfc.txt
==============================================================================
--- pypy/trunk/doc/ObSpIntfc.txt	Sun Jun 22 13:03:20 2003
+++ (empty file)
@@ -1,111 +0,0 @@
-================================
-PyPython ObjectSpaceInterface
-================================
-
-Note this is only a draft version of the ObjectSpace_ interface. The reality of the interface depends on the particular implementation you are using. Consult the code for details.
-
-class ObjSpace
-=================
-
-Data Members
------------------
-
-+ ObjSpace.MethodTable:
-   List of tuples (method name, symbol, number of arguments) for the regular part of the interface. (Tuples are interpreter level.)
-
-+ self.w_builtins
-+ self.w_modules
-+ self.appfile_helpers
-+ self.w_None: The ObjectSpace's None
-+ self.w_True: The ObjectSpace's True
-+ self.w_False: The ObjectSpace's False
-
-Administrative Functions
-----------------------------
-
-**initialize():**
-  Function which initializes w_builtins and the other w_constants.
-
-**getexecutioncontext():**
-  Return current active execution context.
-
-**gethelper(applicationfile):**
-  Get helper for applicationfile.
-
-Operations on Objects in ObjectSpace
------------------------------------------
-
-These functions both take and return "wrapped" objects.
-
-*The following functions implement the same operations as those in CPython:*
-
-``id, type, issubtype, iter, repr, str, len, hash,``
-
-``getattr, setattr, delattr, getitem, setitem, delitem,``
-
-``pos, neg, not_, abs, invert, add, sub, mul, truediv, floordiv, div, mod, divmod, pow, lshift, rshift, and_, or_, xor,``
-
-``lt, le, eq, ne, gt, ge, contains,``
-
-``inplace_add, inplace_sub, inplace_mul, inplace_truediv, inplace_floordiv, inplace_div, inplace_mod, inplace_pow, inplace_lshift, inplace_rshift, inplace_and, inplace_or, inplace_xor``
-
-**next(w):**
-  Call the next function for iterator w.
-
-**call(callable, args, kwds):**
-  Call a function with the given args and keywords.
-
-**is_(w_x, w_y):**
-  Implements 'w_x is w_y'.
-
-**exception_match(w_exc_type, w_check_class):**
-  Checks if the given exception type matches 'w_check_class'. Used in matching the actual exception raised with the list of those to catch in an except clause. Returns a bool.
-
-Creation of Application Level objects
----------------------------------------
-
-**wrap(x):**
-  Return ObjectSpace equivalent of x.
-
-**newbool(b):**
-  Creates a Bool Object from an interpreter level object.
-
-**newtuple([..]):**
-  Take an interpreter level list of wrapped objects.
-
-**newlist([..]):**
-  Takes an interpreter level list of wrapped objects.
-
-**newdict([..]):**
-  Takes an interpreter level list of interpreter level pairs of wrapped key:wrapped value entries.
-
-**newslice(w_start, w_end, w_step):**
-  Makes a new slice object.
-
-**newfunction(w_code, w_globals, w_defaultarguments, w_closure=None):**
-  Creates a new function object.
-
-**newstring(asciilist):**
-  Creates a string from a list of integers.
-
-**newmodule(w_name):**
-  Creates a new module with a given name.
-
-Conversions from Application Level to Interpreter Level
-----------------------------------------------------------
-
-**unwrap(w_x):**
-  Return Interpreter Level equivalent of w_x
-
-**is_true(w_x):**
-  Return a interpreter level bool (True or False).
-
-**unpackiterable(w_iterable, expected_length=None):**
-  Unpack an iterable object into a real (interpreter level) list. Raise a real ValueError if the expected_length is wrong.
-
-**unpacktuple(w_tuple, expected_length=None):**
-  Same as unpackiterable(), but only for tuples.
-
----------------------------
-
-.. _ObjectSpace: ObjSpcDoc.html


More information about the Pypy-commit mailing list