Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55460 - in sandbox-branches/bhy/py3k: boost/python boost/python/converter libs/python/src/object
From: divinekid_at_[hidden]
Date: 2009-08-08 05:55:13


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

Log:
remove some unused comments
Text files modified:
   sandbox-branches/bhy/py3k/boost/python/converter/builtin_converters.hpp | 3 ---
   sandbox-branches/bhy/py3k/boost/python/module_init.hpp | 3 ---
   sandbox-branches/bhy/py3k/libs/python/src/object/class.cpp | 1 -
   3 files changed, 0 insertions(+), 7 deletions(-)

Modified: sandbox-branches/bhy/py3k/boost/python/converter/builtin_converters.hpp
==============================================================================
--- sandbox-branches/bhy/py3k/boost/python/converter/builtin_converters.hpp (original)
+++ sandbox-branches/bhy/py3k/boost/python/converter/builtin_converters.hpp 2009-08-08 05:55:12 EDT (Sat, 08 Aug 2009)
@@ -124,8 +124,6 @@
 
 // using Python's macro instead of Boost's - we don't seem to get the
 // config right all the time.
-// XXX(bhy) It was PyInt_Type instead of PyLong_Type here.
-// But why PyInt_Type? PyLong_From* converter is used here!
 # ifdef HAVE_LONG_LONG
 BOOST_PYTHON_TO_PYTHON_BY_VALUE(signed BOOST_PYTHON_LONG_LONG, ::PyLong_FromLongLong(x), &PyLong_Type)
 BOOST_PYTHON_TO_PYTHON_BY_VALUE(unsigned BOOST_PYTHON_LONG_LONG, ::PyLong_FromUnsignedLongLong(x), &PyLong_Type)
@@ -144,7 +142,6 @@
 #endif
 
 #if defined(Py_USING_UNICODE) && !defined(BOOST_NO_STD_WSTRING)
-// XXX(bhy) Here, similar to the above, PyString_Type -> PyUnicode_Type
 BOOST_PYTHON_TO_PYTHON_BY_VALUE(std::wstring, ::PyUnicode_FromWideChar(x.data(),implicit_cast<ssize_t>(x.size())), &PyUnicode_Type)
 # endif
 BOOST_PYTHON_TO_PYTHON_BY_VALUE(float, ::PyFloat_FromDouble(x), &PyFloat_Type)

Modified: sandbox-branches/bhy/py3k/boost/python/module_init.hpp
==============================================================================
--- sandbox-branches/bhy/py3k/boost/python/module_init.hpp (original)
+++ sandbox-branches/bhy/py3k/boost/python/module_init.hpp 2009-08-08 05:55:12 EDT (Sat, 08 Aug 2009)
@@ -15,9 +15,6 @@
 
 }}}
 
-// TODO(bhy) Take care of this later.
-// But any reseaon we don't use BOOST_PYTHON_DECL here?
-
 # if PY_VERSION_HEX >= 0x03000000
 
 # define _BOOST_PYTHON_MODULE_INIT(name) \

Modified: sandbox-branches/bhy/py3k/libs/python/src/object/class.cpp
==============================================================================
--- sandbox-branches/bhy/py3k/libs/python/src/object/class.cpp (original)
+++ sandbox-branches/bhy/py3k/libs/python/src/object/class.cpp 2009-08-08 05:55:12 EDT (Sat, 08 Aug 2009)
@@ -355,7 +355,6 @@
           PyObject* d = type_->tp_dict;
           PyObject* instance_size_obj = PyObject_GetAttrString(d, const_cast<char*>("__instance_size__"));
 
- // TODO(bhy) ssize_t for Python 2.x
           Py_ssize_t instance_size = instance_size_obj ?
 #if PY_VERSION_HEX >= 0x03000000
               PyLong_AsSsize_t(instance_size_obj) : 0;


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