mirror of
https://github.com/python/cpython.git
synced 2025-11-09 06:01:05 +00:00
Some style changes and typo fixes.
This commit is contained in:
parent
3eedf718b3
commit
ef7d08a661
1 changed files with 9 additions and 6 deletions
|
|
@ -189,12 +189,15 @@ def my_import(name):
|
||||||
dictionary.
|
dictionary.
|
||||||
For example, these all return a dictionary equal to
|
For example, these all return a dictionary equal to
|
||||||
\code{\{1: 2, 2: 3\}}:
|
\code{\{1: 2, 2: 3\}}:
|
||||||
\code{dictionary(\{1: 2, 2: 3\})},
|
|
||||||
\code{dictionary(\{1: 2, 2: 3\}.items()},
|
\begin{itemize}
|
||||||
\code{dictionary(\{1: 2, 2: 3\}.iteritems()},
|
\item \code{dictionary(\{1: 2, 2: 3\})}
|
||||||
\code{dictionary(zip((1, 2), (2, 3)))},
|
\item \code{dictionary(\{1: 2, 2: 3\}.items())}
|
||||||
\code{dictionary([[2, 3], [1, 2]])}, and
|
\item \code{dictionary(\{1: 2, 2: 3\}.iteritems())}
|
||||||
\code{dictionary([(i-1, i) for i in (2, 3)])}.
|
\item \code{dictionary(zip((1, 2), (2, 3)))}
|
||||||
|
\item \code{dictionary([[2, 3], [1, 2]])}
|
||||||
|
\item \code{dictionary([(i-1, i) for i in (2, 3)])}
|
||||||
|
\end{itemize}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{dir}{\optional{object}}
|
\begin{funcdesc}{dir}{\optional{object}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue