a few typographical changes (e.g. -- => ---) and lots of new stuff in the WWW chapter

This commit is contained in:
Guido van Rossum 1995-02-28 17:14:32 +00:00
parent e4be9be99a
commit 8675115e5f
46 changed files with 958 additions and 60 deletions

View file

@ -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}.

View file

@ -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}