rest25/library/new.rst => rest262/library/new.rst
n1- 
2:mod:`new` --- Creation of runtime internal objects
3===================================================
4
5.. module:: new
6   :synopsis: Interface to the creation of runtime implementation objects.
n6+   :deprecated:
7+ 
8+.. deprecated:: 2.6
9+   The :mod:`new` module has been removed in Python 3.0.  Use the :mod:`types`
10+   module's classes instead.
11+ 
7.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
8
9
10The :mod:`new` module allows an interface to the interpreter object creation
11functions. This is for use primarily in marshal-type functions, when a new
12object needs to be created "magically" and not by using the regular creation
13functions. This module provides a low-level interface to the interpreter, so
n14-care must be exercised when using this module. It is possible to supply non-
n19+care must be exercised when using this module. It is possible to supply
15-sensical arguments which crash the interpreter when the object is used.
20+non-sensical arguments which crash the interpreter when the object is used.
16
17The :mod:`new` module defines the following functions:
18
19
20.. function:: instance(class[, dict])
21
22   This function creates an instance of *class* with dictionary *dict* without
23   calling the :meth:`__init__` constructor.  If *dict* is omitted or ``None``, a
40   values of parameters.  If *closure* is given, it must be ``None`` or a tuple of
41   cell objects containing objects to bind to the names in ``code.co_freevars``.
42
43
44.. function:: code(argcount, nlocals, stacksize, flags, codestring, constants, names, varnames, filename, name, firstlineno, lnotab)
45
46   This function is an interface to the :cfunc:`PyCode_New` C function.
47
t48-   .. % XXX This is still undocumented!!!!!!!!!!!
t53+   .. XXX This is still undocumented!
49
50
51.. function:: module(name[, doc])
52
53   This function returns a new module object with name *name*. *name* must be a
54   string. The optional *doc* argument can have any type.
55
56
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op