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

Skip to content

Commit 7381e28

Browse files
committed
Fixed BINARY_RSHIFT documentation to indicate a right shift instead of a left
shift. Adjust whitespace around "=" in VM machine descriptions to be consistent throughout the document.
1 parent c2297c1 commit 7381e28

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/lib/libdis.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ \subsection{Python Byte Code Instructions}
204204
\end{opcodedesc}
205205

206206
\begin{opcodedesc}{BINARY_RSHIFT}{}
207-
Implements \code{TOS = TOS1 << TOS }.
207+
Implements \code{TOS = TOS1 >> TOS }.
208208
\end{opcodedesc}
209209

210210
\begin{opcodedesc}{BINARY_AND}{}
@@ -241,19 +241,19 @@ \subsection{Python Byte Code Instructions}
241241
they put nothing on the stack.
242242

243243
\begin{opcodedesc}{STORE_SLICE+0}{}
244-
Implements \code{TOS[:]=TOS1}.
244+
Implements \code{TOS[:] = TOS1}.
245245
\end{opcodedesc}
246246

247247
\begin{opcodedesc}{STORE_SLICE+1}{}
248-
Implements \code{TOS1[TOS:]=TOS2}.
248+
Implements \code{TOS1[TOS:] = TOS2}.
249249
\end{opcodedesc}
250250

251251
\begin{opcodedesc}{STORE_SLICE+2}{}
252-
Implements \code{TOS1[:TOS]=TOS2}.
252+
Implements \code{TOS1[:TOS] = TOS2}.
253253
\end{opcodedesc}
254254

255255
\begin{opcodedesc}{STORE_SLICE+3}{}
256-
Implements \code{TOS2[TOS1:TOS]=TOS3}.
256+
Implements \code{TOS2[TOS1:TOS] = TOS3}.
257257
\end{opcodedesc}
258258

259259
\begin{opcodedesc}{DELETE_SLICE+0}{}
@@ -273,7 +273,7 @@ \subsection{Python Byte Code Instructions}
273273
\end{opcodedesc}
274274

275275
\begin{opcodedesc}{STORE_SUBSCR}{}
276-
Implements \code{TOS1[TOS]=TOS2}.
276+
Implements \code{TOS1[TOS] = TOS2}.
277277
\end{opcodedesc}
278278

279279
\begin{opcodedesc}{DELETE_SUBSCR}{}

Doc/libdis.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ \subsection{Python Byte Code Instructions}
204204
\end{opcodedesc}
205205

206206
\begin{opcodedesc}{BINARY_RSHIFT}{}
207-
Implements \code{TOS = TOS1 << TOS }.
207+
Implements \code{TOS = TOS1 >> TOS }.
208208
\end{opcodedesc}
209209

210210
\begin{opcodedesc}{BINARY_AND}{}
@@ -241,19 +241,19 @@ \subsection{Python Byte Code Instructions}
241241
they put nothing on the stack.
242242

243243
\begin{opcodedesc}{STORE_SLICE+0}{}
244-
Implements \code{TOS[:]=TOS1}.
244+
Implements \code{TOS[:] = TOS1}.
245245
\end{opcodedesc}
246246

247247
\begin{opcodedesc}{STORE_SLICE+1}{}
248-
Implements \code{TOS1[TOS:]=TOS2}.
248+
Implements \code{TOS1[TOS:] = TOS2}.
249249
\end{opcodedesc}
250250

251251
\begin{opcodedesc}{STORE_SLICE+2}{}
252-
Implements \code{TOS1[:TOS]=TOS2}.
252+
Implements \code{TOS1[:TOS] = TOS2}.
253253
\end{opcodedesc}
254254

255255
\begin{opcodedesc}{STORE_SLICE+3}{}
256-
Implements \code{TOS2[TOS1:TOS]=TOS3}.
256+
Implements \code{TOS2[TOS1:TOS] = TOS3}.
257257
\end{opcodedesc}
258258

259259
\begin{opcodedesc}{DELETE_SLICE+0}{}
@@ -273,7 +273,7 @@ \subsection{Python Byte Code Instructions}
273273
\end{opcodedesc}
274274

275275
\begin{opcodedesc}{STORE_SUBSCR}{}
276-
Implements \code{TOS1[TOS]=TOS2}.
276+
Implements \code{TOS1[TOS] = TOS2}.
277277
\end{opcodedesc}
278278

279279
\begin{opcodedesc}{DELETE_SUBSCR}{}

0 commit comments

Comments
 (0)