summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-05-02 19:47:52 (GMT)
committerGuido van Rossum <guido@python.org>2006-05-02 19:47:52 (GMT)
commitda5b701aeef755f2317a41e36cc950cfdc0c95cb (patch)
tree11a37e4e8714ffbccce921aa0ef1878b7dc779b2 /Objects
parent8f6cbe150228f175b57b7a774d0a630febe72244 (diff)
downloadcpython-da5b701aeef755f2317a41e36cc950cfdc0c95cb.zip
cpython-da5b701aeef755f2317a41e36cc950cfdc0c95cb.tar.gz
cpython-da5b701aeef755f2317a41e36cc950cfdc0c95cb.tar.bz2
Get rid of __context__, per the latest changes to PEP 343 and python-dev
discussion. There are two places of documentation that still mention __context__: Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without spending a whole lot of time thinking about it; and whatsnew, which Andrew usually likes to change himself.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 25b3361..0f166cd 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -1706,9 +1706,6 @@ PyDoc_STRVAR(close_doc,
PyDoc_STRVAR(isatty_doc,
"isatty() -> true or false. True if the file is connected to a tty device.");
-PyDoc_STRVAR(context_doc,
- "__context__() -> self.");
-
PyDoc_STRVAR(enter_doc,
"__enter__() -> self.");
@@ -1729,7 +1726,6 @@ static PyMethodDef file_methods[] = {
{"flush", (PyCFunction)file_flush, METH_NOARGS, flush_doc},
{"close", (PyCFunction)file_close, METH_NOARGS, close_doc},
{"isatty", (PyCFunction)file_isatty, METH_NOARGS, isatty_doc},
- {"__context__", (PyCFunction)file_self, METH_NOARGS, context_doc},
{"__enter__", (PyCFunction)file_self, METH_NOARGS, enter_doc},
{"__exit__", (PyCFunction)file_close, METH_VARARGS, close_doc},
{NULL, NULL} /* sentinel */
@@ -2445,4 +2441,3 @@ Py_UniversalNewlineFread(char *buf, size_t n,
#ifdef __cplusplus
}
#endif
-