9Py_UNICODE unicode_null_string[1] = { 0 };
11Type Object::type ()
const
13 return Type (PyObject_Type (p),
true);
18 return String (PyObject_Str (p),
true);
21String Object::repr ()
const
23 return String (PyObject_Repr (p),
true);
26std::string Object::as_string()
const
28 return static_cast<std::string
>(str());
31List Object::dir ()
const
33 return List (PyObject_Dir (p),
true);
36bool Object::isType (
const Type& t)
const
38 return type ().ptr() == t.ptr();
41Char::operator
String()
const
49bool operator==(
const Sequence::iterator& left,
const Sequence::iterator& right)
51 return left.eql( right );
54bool operator!=(
const Sequence::iterator& left,
const Sequence::iterator& right)
56 return left.neq( right );
59bool operator< (
const Sequence::iterator& left,
const Sequence::iterator& right)
61 return left.lss( right );
64bool operator> (
const Sequence::iterator& left,
const Sequence::iterator& right)
66 return left.gtr( right );
69bool operator<=(
const Sequence::iterator& left,
const Sequence::iterator& right)
71 return left.leq( right );
74bool operator>=(
const Sequence::iterator& left,
const Sequence::iterator& right)
76 return left.geq( right );
80bool operator==(
const Sequence::const_iterator& left,
const Sequence::const_iterator& right)
82 return left.eql( right );
85bool operator!=(
const Sequence::const_iterator& left,
const Sequence::const_iterator& right)
87 return left.neq( right );
90bool operator< (
const Sequence::const_iterator& left,
const Sequence::const_iterator& right)
92 return left.lss( right );
95bool operator> (
const Sequence::const_iterator& left,
const Sequence::const_iterator& right)
97 return left.gtr( right );
100bool operator<=(
const Sequence::const_iterator& left,
const Sequence::const_iterator& right)
102 return left.leq( right );
105bool operator>=(
const Sequence::const_iterator& left,
const Sequence::const_iterator& right)
107 return left.geq( right );
111bool operator==(
const Mapping::iterator& left,
const Mapping::iterator& right)
113 return left.eql( right );
116bool operator!=(
const Mapping::iterator& left,
const Mapping::iterator& right)
118 return left.neq( right );
122bool operator==(
const Mapping::const_iterator& left,
const Mapping::const_iterator& right)
124 return left.eql( right );
127bool operator!=(
const Mapping::const_iterator& left,
const Mapping::const_iterator& right)
129 return left.neq( right );
133#ifndef CXX_NO_IOSTREAMS
136std::ostream& operator<< (std::ostream& os,
const Object& ob)
138 return (os <<
static_cast<std::string
>(ob.str()));
@ List
TQValueList<TQVariant>