@@ -1118,31 +1118,6 @@ PyDoc_STRVAR(hex_doc,
11181118Return the hexadecimal representation of an integer or long integer." );
11191119
11201120
1121- static PyObject *
1122- builtin_intern (PyObject * self , PyObject * args )
1123- {
1124- PyObject * s ;
1125- if (!PyArg_ParseTuple (args , "S:intern" , & s ))
1126- return NULL ;
1127- if (!PyString_CheckExact (s )) {
1128- PyErr_SetString (PyExc_TypeError ,
1129- "can't intern subclass of string" );
1130- return NULL ;
1131- }
1132- Py_INCREF (s );
1133- PyString_InternInPlace (& s );
1134- return s ;
1135- }
1136-
1137- PyDoc_STRVAR (intern_doc ,
1138- "intern(string) -> string\n\
1139- \n\
1140- ``Intern'' the given string. This enters the string in the (global)\n\
1141- table of interned strings whose purpose is to speed up dictionary lookups.\n\
1142- Return the string itself or the previously interned string object with the\n\
1143- same value." );
1144-
1145-
11461121static PyObject *
11471122builtin_iter (PyObject * self , PyObject * args )
11481123{
@@ -2069,7 +2044,6 @@ static PyMethodDef builtin_methods[] = {
20692044 {"hash" , builtin_hash , METH_O , hash_doc },
20702045 {"hex" , builtin_hex , METH_O , hex_doc },
20712046 {"id" , builtin_id , METH_O , id_doc },
2072- {"intern" , builtin_intern , METH_VARARGS , intern_doc },
20732047 {"isinstance" , builtin_isinstance , METH_VARARGS , isinstance_doc },
20742048 {"issubclass" , builtin_issubclass , METH_VARARGS , issubclass_doc },
20752049 {"iter" , builtin_iter , METH_VARARGS , iter_doc },
0 commit comments