mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Fix markup error
This commit is contained in:
parent
d576e9df5f
commit
3cdb5761c5
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ by 2, equivalent to the slightly lengthier
|
|||
|
||||
The full list of supported assignment operators is \code{+=},
|
||||
\code{-=}, \code{*=}, \code{/=}, \code{\%=}, \code{**=}, \code{\&=},
|
||||
\code{|=}, \code{^=}, \code{>>=}, and \code{<<=}. Python classes can
|
||||
\code{|=}, \verb|^=|, \code{>>=}, and \code{<<=}. Python classes can
|
||||
override the augmented assignment operators by defining methods named
|
||||
\method{__iadd__}, \method{__isub__}, etc. For example, the following
|
||||
\class{Number} class stores a number and supports using += to create a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue