diff options
author | Guido van Rossum <guido@python.org> | 1995-02-28 17:14:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-28 17:14:32 (GMT) |
commit | 8675115e5f55e69fdb30ebba95e7a6a5216e133c (patch) | |
tree | d09dfc7242177a6061808ab9866d418efbeea0ed /Doc/ref | |
parent | e4be9be99a7fb0f30e57803fda355321f64b0b05 (diff) | |
download | cpython-8675115e5f55e69fdb30ebba95e7a6a5216e133c.zip cpython-8675115e5f55e69fdb30ebba95e7a6a5216e133c.tar.gz cpython-8675115e5f55e69fdb30ebba95e7a6a5216e133c.tar.bz2 |
a few typographical changes (e.g. -- => ---) and lots of new stuff in the WWW chapter
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref3.tex | 6 | ||||
-rw-r--r-- | Doc/ref/ref4.tex | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 67848bb8..35b4ecf 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -374,7 +374,7 @@ Class objects are described below. When a class object is called as a function, a new class instance (also described below) is created and returned. This implies a call to the class's \verb@__init__@ method if it has one. Any arguments are passed on to the \verb@__init__@ -method -- if there is \verb@__init__@ method, the class must be called +method --- if there is \verb@__init__@ method, the class must be called without arguments. \ttindex{__init__} \obindex{class} @@ -617,7 +617,7 @@ reference is deleted. It is not guaranteed that \code{__del__} methods are called for objects that still exist when the interpreter exits. -Note that \code{del x} doesn't directly call \code{x.__del__} -- the +Note that \code{del x} doesn't directly call \code{x.__del__} --- the former decrements the reference count for \code{x} by one, but \code{x,__del__} is only called when its reference count reaches zero. @@ -694,7 +694,7 @@ attribute). \code{name} is the attribute name, \code{value} is the value to be assigned to it. If \code{__setattr__} wants to assign to an instance attribute, it -should not simply execute \code{self.\var{name} = value} -- this would +should not simply execute \code{self.\var{name} = value} --- this would cause a recursive call. Instead, it should insert the value in the dictionary of instance attributes, e.g. \code{self.__dict__[name] = value}. diff --git a/Doc/ref/ref4.tex b/Doc/ref/ref4.tex index 0198117..2f2e1c8 100644 --- a/Doc/ref/ref4.tex +++ b/Doc/ref/ref4.tex @@ -82,7 +82,7 @@ The following table lists the meaning of the local and global name space for various types of code blocks. The name space for a particular module is automatically created when the module is first referenced. Note that in almost all cases, the global name space is -the name space of the containing module -- scopes in Python do not +the name space of the containing module --- scopes in Python do not nest! \begin{center} |