Exemplo n.º 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();
}
Exemplo n.º 2
0
 std::string PyArrayRef<T>::__str__() const
 {
   return __repr__();
   //return PyArrayBase<T, Array>::__str__();
 }
Exemplo n.º 3
0
str *pyobj::__str__() { return __repr__(); }