Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
7dd2bdb0
Unverified
Commit
7dd2bdb0
authored
Aug 18, 2020
by
Mosalam Ebrahimi
Committed by
GitHub
Aug 18, 2020
Browse files
docs: fix typo (#2405)
parent
64040997
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/classes.rst
docs/classes.rst
+1
-1
No files found.
docs/classes.rst
View file @
7dd2bdb0
...
@@ -74,7 +74,7 @@ Note how ``print(p)`` produced a rather useless summary of our data structure in
...
@@ -74,7 +74,7 @@ Note how ``print(p)`` produced a rather useless summary of our data structure in
>>> print(p)
>>> print(p)
<example.Pet object at 0x10cd98060>
<example.Pet object at 0x10cd98060>
To address this, we could bind a
n
utility function that returns a human-readable
To address this, we could bind a utility function that returns a human-readable
summary to the special method slot named ``__repr__``. Unfortunately, there is no
summary to the special method slot named ``__repr__``. Unfortunately, there is no
suitable functionality in the ``Pet`` data structure, and it would be nice if
suitable functionality in the ``Pet`` data structure, and it would be nice if
we did not have to change it. This can easily be accomplished by binding a
we did not have to change it. This can easily be accomplished by binding a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment