Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55459 - sandbox-branches/bhy/py3k/libs/python/src
From: divinekid_at_[hidden]
Date: 2009-08-08 05:33:44


Author: bhy
Date: 2009-08-08 05:33:44 EDT (Sat, 08 Aug 2009)
New Revision: 55459
URL: http://svn.boost.org/trac/boost/changeset/55459

Log:
remove comment nolonger valid since there is no PyLong_AsSsize_t API in python 2.5
Text files modified:
   sandbox-branches/bhy/py3k/libs/python/src/list.cpp | 3 ---
   1 files changed, 0 insertions(+), 3 deletions(-)

Modified: sandbox-branches/bhy/py3k/libs/python/src/list.cpp
==============================================================================
--- sandbox-branches/bhy/py3k/libs/python/src/list.cpp (original)
+++ sandbox-branches/bhy/py3k/libs/python/src/list.cpp 2009-08-08 05:33:44 EDT (Sat, 08 Aug 2009)
@@ -48,9 +48,6 @@
 long list_base::index(object_cref value) const
 {
     object result_obj(this->attr("index")(value));
- // TODO(bhy) In Python 2.5, PyInt_AsSsize_t did the same thing as PyLong_AsSsize_t,
- // i.e., it can accepts both int and long. So we may have a better way to do this,
- // so we can support ssize_t with Python 2.x.
 #if PY_VERSION_HEX >= 0x03000000
     ssize_t result = PyLong_AsSsize_t(result_obj.ptr());
 #else


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk