예제 #1
0
const std::string TypeAdapter::__str__() const {
	std::ostringstream os;
	switch (type) {
		case TYPE_INT: os << getInteger(); break;
		case TYPE_DOUBLE: os << getFloatingPoint(); break;
		case TYPE_STRING: os << getString(); break;
		default: os << __repr__();
	}
	return os.str();
}
예제 #2
0
 std::string PyArrayRef<T>::__str__() const
 {
   return __repr__();
   //return PyArrayBase<T, Array>::__str__();
 }
예제 #3
0
str *pyobj::__str__() { return __repr__(); }