comparison src/if_py_both.h @ 8967:df5f9284fcba v7.4.1769

commit https://github.com/vim/vim/commit/6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 21 20:00:56 2016 +0200 patch 7.4.1769 Problem: No "closed", "errors" and "encoding" attribute on Python output. Solution: Add attributes and more tests. (Roland Puntaier, closes https://github.com/vim/vim/issues/622)
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Apr 2016 20:15:05 +0200
parents c3e7cc135754
children 39cc63e8df7c
comparison
equal deleted inserted replaced
8966:2aff38480967 8967:df5f9284fcba
501 {"close", (PyCFunction)AlwaysNone, METH_NOARGS, ""}, 501 {"close", (PyCFunction)AlwaysNone, METH_NOARGS, ""},
502 {"isatty", (PyCFunction)AlwaysFalse, METH_NOARGS, ""}, 502 {"isatty", (PyCFunction)AlwaysFalse, METH_NOARGS, ""},
503 {"readable", (PyCFunction)AlwaysFalse, METH_NOARGS, ""}, 503 {"readable", (PyCFunction)AlwaysFalse, METH_NOARGS, ""},
504 {"seekable", (PyCFunction)AlwaysFalse, METH_NOARGS, ""}, 504 {"seekable", (PyCFunction)AlwaysFalse, METH_NOARGS, ""},
505 {"writable", (PyCFunction)AlwaysTrue, METH_NOARGS, ""}, 505 {"writable", (PyCFunction)AlwaysTrue, METH_NOARGS, ""},
506 {"closed", (PyCFunction)AlwaysFalse, METH_NOARGS, ""},
506 {"__dir__", (PyCFunction)OutputDir, METH_NOARGS, ""}, 507 {"__dir__", (PyCFunction)OutputDir, METH_NOARGS, ""},
507 { NULL, NULL, 0, NULL} 508 { NULL, NULL, 0, NULL}
508 }; 509 };
509 510
510 static OutputObject Output = 511 static OutputObject Output =