summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-12-12 18:17:32 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-12-12 18:17:32 (GMT)
commite6e5ea5f2a57c1d23ae8b10533c81c325d532c1d (patch)
tree325e8647238918f661a58e2ce0254b31e7011518 /Doc
parent28dc89d1473387e5cd8bef77b94e33c29b3bc718 (diff)
downloadcpython-e6e5ea5f2a57c1d23ae8b10533c81c325d532c1d.zip
cpython-e6e5ea5f2a57c1d23ae8b10533c81c325d532c1d.tar.gz
cpython-e6e5ea5f2a57c1d23ae8b10533c81c325d532c1d.tar.bz2
Merged revisions 87184-87186 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87184 | antoine.pitrou | 2010-12-12 19:09:53 +0100 (dim., 12 déc. 2010) | 3 lines SET_LINENO was removed in 2.3 ........ r87185 | antoine.pitrou | 2010-12-12 19:12:40 +0100 (dim., 12 déc. 2010) | 3 lines Remove reference to stuff which is already obsolete in 2.x. ........ r87186 | antoine.pitrou | 2010-12-12 19:14:34 +0100 (dim., 12 déc. 2010) | 3 lines Obsolete aliases needn't be documented ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/array.rst4
-rw-r--r--Doc/library/dis.rst5
-rw-r--r--Doc/library/imp.rst82
3 files changed, 0 insertions, 91 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index 3f5f9e6..3ffc64d 100644
--- a/Doc/library/array.rst
+++ b/Doc/library/array.rst
@@ -65,10 +65,6 @@ The module defines the following type:
passed to the :meth:`extend` method.
-.. data:: ArrayType
-
- Obsolete alias for :class:`array`.
-
.. data:: typecodes
A string with all available type codes.
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 8a1b935..4aae06b 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -695,11 +695,6 @@ the more significant byte last.
storage.
-.. opcode:: SET_LINENO (lineno)
-
- This opcode is obsolete.
-
-
.. opcode:: RAISE_VARARGS (argc)
Raises an exception. *argc* indicates the number of parameters to the raise
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index 5c21ee7..2d83893 100644
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -223,88 +223,6 @@ indicate the search result of :func:`find_module`.
The module was found as a frozen module (see :func:`init_frozen`).
-The following constant and functions are obsolete; their functionality is
-available through :func:`find_module` or :func:`load_module`. They are kept
-around for backward compatibility:
-
-
-.. data:: SEARCH_ERROR
-
- Unused.
-
-
-.. function:: init_builtin(name)
-
- Initialize the built-in module called *name* and return its module object along
- with storing it in ``sys.modules``. If the module was already initialized, it
- will be initialized *again*. Re-initialization involves the copying of the
- built-in module's ``__dict__`` from the cached module over the module's entry in
- ``sys.modules``. If there is no built-in module called *name*, ``None`` is
- returned.
-
-
-.. function:: init_frozen(name)
-
- Initialize the frozen module called *name* and return its module object. If
- the module was already initialized, it will be initialized *again*. If there
- is no frozen module called *name*, ``None`` is returned. (Frozen modules are
- modules written in Python whose compiled byte-code object is incorporated
- into a custom-built Python interpreter by Python's :program:`freeze`
- utility. See :file:`Tools/freeze/` for now.)
-
-
-.. function:: is_builtin(name)
-
- Return ``1`` if there is a built-in module called *name* which can be
- initialized again. Return ``-1`` if there is a built-in module called *name*
- which cannot be initialized again (see :func:`init_builtin`). Return ``0`` if
- there is no built-in module called *name*.
-
-
-.. function:: is_frozen(name)
-
- Return ``True`` if there is a frozen module (see :func:`init_frozen`) called
- *name*, or ``False`` if there is no such module.
-
-
-.. function:: load_compiled(name, pathname, [file])
-
- .. index:: pair: file; byte-code
-
- Load and initialize a module implemented as a byte-compiled code file and return
- its module object. If the module was already initialized, it will be
- initialized *again*. The *name* argument is used to create or access a module
- object. The *pathname* argument points to the byte-compiled code file. The
- *file* argument is the byte-compiled code file, open for reading in binary mode,
- from the beginning. It must currently be a real file object, not a user-defined
- class emulating a file.
-
-
-.. function:: load_dynamic(name, pathname[, file])
-
- Load and initialize a module implemented as a dynamically loadable shared
- library and return its module object. If the module was already initialized, it
- will be initialized *again*. Re-initialization involves copying the ``__dict__``
- attribute of the cached instance of the module over the value used in the module
- cached in ``sys.modules``. The *pathname* argument must point to the shared
- library. The *name* argument is used to construct the name of the
- initialization function: an external C function called ``initname()`` in the
- shared library is called. The optional *file* argument is ignored. (Note:
- using shared libraries is highly system dependent, and not all systems support
- it.)
-
-
-.. function:: load_source(name, pathname[, file])
-
- Load and initialize a module implemented as a Python source file and return its
- module object. If the module was already initialized, it will be initialized
- *again*. The *name* argument is used to create or access a module object. The
- *pathname* argument points to the source file. The *file* argument is the
- source file, open for reading as text, from the beginning. It must currently be
- a real file object, not a user-defined class emulating a file. Note that if a
- properly matching byte-compiled file (with suffix :file:`.pyc` or :file:`.pyo`)
- exists, it will be used instead of parsing the given source file.
-
.. class:: NullImporter(path_string)