Lines Matching defs:As
38 template <> Expected<bool> python::As<bool>(Expected<PythonObject> &&obj) {
45 Expected<long long> python::As<long long>(Expected<PythonObject> &&obj) {
53 python::As<unsigned long long>(Expected<PythonObject> &&obj) {
60 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) {
844 cantFail(As<long long>(pyarginfo.get().GetAttribute("count")));
846 cantFail(As<bool>(pyarginfo.get().GetAttribute("has_varargs")));
878 // over `io.open()`, which returns some object derived from `io.IOBase`. As a
976 Expected<std::string> backtrace = As<std::string>(
994 auto readable = As<bool>(obj.CallMethod("readable"));
997 auto writable = As<bool>(obj.CallMethod("writable"));
1032 auto closed = As<bool>(m_py_obj.GetAttribute("closed"));
1193 auto bytes_written = As<long long>(m_py_obj.CallMethod("write", pybuffer));
1250 As<long long>(m_py_obj.CallMethod("write", pystring.get()));
1271 auto pystring = As<PythonString>(
1432 auto f = As<PythonCallable>(globals.GetItem("main"));