Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fd0219

Browse files
committed
typos
1 parent ab330d4 commit 8fd0219

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/ref/ref3.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ \section{The standard type hierarchy} \label{types}
375375
function, a new class instance (also described below) is created and
376376
returned. This implies a call to the class's \verb@__init__@ method
377377
if it has one. Any arguments are passed on to the \verb@__init__@
378-
method --- if there is \verb@__init__@ method, the class must be called
378+
method --- if there is no \verb@__init__@ method, the class must be called
379379
without arguments.
380380
\ttindex{__init__}
381381
\obindex{class}
@@ -629,7 +629,7 @@ \subsection{Special methods for any type}
629629

630630
Note that \code{del x} doesn't directly call \code{x.__del__} --- the
631631
former decrements the reference count for \code{x} by one, but
632-
\code{x,__del__} is only called when its reference count reaches zero.
632+
\code{x.__del__} is only called when its reference count reaches zero.
633633

634634
\item[{\tt __repr__(self)}]
635635
Called by the \verb@repr()@ built-in function and by string conversions
@@ -666,7 +666,7 @@ \subsection{Special methods for any type}
666666
\code{hash()}. Should return a 32-bit integer usable as a hash value
667667
for dictionary operations. The only required property is that objects
668668
which compare equal have the same hash value; it is advised to somehow
669-
mix together (e.g. using exclusing or) the hash values for the
669+
mix together (e.g. using exclusive or) the hash values for the
670670
components of the object that also play a part in comparison of
671671
objects. If a class does not define a \code{__cmp__} method it should
672672
not define a \code{__hash__} operation either; if it defines

Doc/ref3.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ \section{The standard type hierarchy} \label{types}
375375
function, a new class instance (also described below) is created and
376376
returned. This implies a call to the class's \verb@__init__@ method
377377
if it has one. Any arguments are passed on to the \verb@__init__@
378-
method --- if there is \verb@__init__@ method, the class must be called
378+
method --- if there is no \verb@__init__@ method, the class must be called
379379
without arguments.
380380
\ttindex{__init__}
381381
\obindex{class}
@@ -629,7 +629,7 @@ \subsection{Special methods for any type}
629629

630630
Note that \code{del x} doesn't directly call \code{x.__del__} --- the
631631
former decrements the reference count for \code{x} by one, but
632-
\code{x,__del__} is only called when its reference count reaches zero.
632+
\code{x.__del__} is only called when its reference count reaches zero.
633633

634634
\item[{\tt __repr__(self)}]
635635
Called by the \verb@repr()@ built-in function and by string conversions
@@ -666,7 +666,7 @@ \subsection{Special methods for any type}
666666
\code{hash()}. Should return a 32-bit integer usable as a hash value
667667
for dictionary operations. The only required property is that objects
668668
which compare equal have the same hash value; it is advised to somehow
669-
mix together (e.g. using exclusing or) the hash values for the
669+
mix together (e.g. using exclusive or) the hash values for the
670670
components of the object that also play a part in comparison of
671671
objects. If a class does not define a \code{__cmp__} method it should
672672
not define a \code{__hash__} operation either; if it defines

0 commit comments

Comments
 (0)