mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
No, __repr__() does not accept a parameter other than self.
This commit is contained in:
parent
0fbec55e23
commit
806764bee4
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ user's home directory will be read. Parse errors will raise
|
|||
name, line number, and terminating token.
|
||||
\end{classdesc}
|
||||
|
||||
|
||||
\subsection{netrc Objects \label{netrc-objects}}
|
||||
|
||||
A \class{netrc} instance has the following methods:
|
||||
|
|
@ -36,7 +37,7 @@ the `default' entry. If neither matching host nor default entry is
|
|||
available, return \code{None}.
|
||||
\end{methoddesc}
|
||||
|
||||
\begin{methoddesc}{__repr__}{host}
|
||||
\begin{methoddesc}{__repr__}{}
|
||||
Dump the class data as a string in the format of a netrc file.
|
||||
(This discards comments and may reorder the entries.)
|
||||
\end{methoddesc}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue