[pypy-svn] r75187 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Tue Jun 8 01:53:55 CEST 2010
Author: afa
Date: Tue Jun 8 01:53:54 2010
New Revision: 75187
Modified:
pypy/trunk/pypy/module/cpyext/listobject.py
pypy/trunk/pypy/module/cpyext/sequence.py
pypy/trunk/pypy/module/cpyext/stringobject.py
pypy/trunk/pypy/module/cpyext/unicodeobject.py
Log:
Remove 64bit compatibility sentence from docstrings
Modified: pypy/trunk/pypy/module/cpyext/listobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/listobject.py (original)
+++ pypy/trunk/pypy/module/cpyext/listobject.py Tue Jun 8 01:53:54 2010
@@ -72,9 +72,7 @@
@cpython_api([PyObject], Py_ssize_t, error=CANNOT_FAIL)
def PyList_GET_SIZE(space, w_list):
"""Macro form of PyList_Size() without error checking.
-
- This macro returned an int. This might require changes in your
- code for properly supporting 64-bit systems."""
+ """
assert isinstance(w_list, W_ListObject)
return len(w_list.wrappeditems)
@@ -83,9 +81,7 @@
def PyList_Size(space, ref):
"""Return the length of the list object in list; this is equivalent to
len(list) on a list object.
-
- This function returned an int. This might require changes in
- your code for properly supporting 64-bit systems."""
+ """
if not PyList_Check(space, ref):
raise OperationError(space.w_TypeError,
space.wrap("expected list object"))
Modified: pypy/trunk/pypy/module/cpyext/sequence.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/sequence.py (original)
+++ pypy/trunk/pypy/module/cpyext/sequence.py Tue Jun 8 01:53:54 2010
@@ -10,9 +10,7 @@
def PySequence_Repeat(space, w_obj, count):
"""Return the result of repeating sequence object o count times, or NULL on
failure. This is the equivalent of the Python expression o * count.
-
- This function used an int type for count. This might require
- changes in your code for properly supporting 64-bit systems."""
+ """
return space.mul(w_obj, space.wrap(count))
@cpython_api([PyObject], rffi.INT_real, error=CANNOT_FAIL)
Modified: pypy/trunk/pypy/module/cpyext/stringobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/stringobject.py (original)
+++ pypy/trunk/pypy/module/cpyext/stringobject.py Tue Jun 8 01:53:54 2010
@@ -180,9 +180,7 @@
the address in *string may differ from its input value. If the reallocation
fails, the original string object at *string is deallocated, *string is
set to NULL, a memory exception is set, and -1 is returned.
-
- This function used an int type for newsize. This might
- require changes in your code for properly supporting 64-bit systems."""
+ """
# XXX always create a new string so far
py_str = rffi.cast(PyStringObject, ref[0])
if not py_str.c_buffer:
Modified: pypy/trunk/pypy/module/cpyext/unicodeobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/unicodeobject.py (original)
+++ pypy/trunk/pypy/module/cpyext/unicodeobject.py Tue Jun 8 01:53:54 2010
@@ -105,10 +105,7 @@
@cpython_api([PyObject], Py_ssize_t, error=CANNOT_FAIL)
def PyUnicode_GET_SIZE(space, w_obj):
"""Return the size of the object. o has to be a PyUnicodeObject (not
- checked).
-
- This function returned an int type. This might require changes
- in your code for properly supporting 64-bit systems."""
+ checked)."""
assert isinstance(w_obj, unicodeobject.W_UnicodeObject)
return space.int_w(space.len(w_obj))
More information about the Pypy-commit
mailing list