Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
68ee3a59
Commit
68ee3a59
authored
Mar 25, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#868845: document <...> reprs.
parent
03bd4f04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Doc/library/functions.rst
Doc/library/functions.rst
+8
-6
No files found.
Doc/library/functions.rst
View file @
68ee3a59
..
XXX
document
all
delegations
to
__special__
methods
..
_built
-
in
-
funcs
:
Built
-
in
Functions
...
...
@@ -908,11 +908,13 @@ available. They are listed here in alphabetical order.
..
function
::
repr
(
object
)
Return
a
string
containing
a
printable
representation
of
an
object
.
This
is
the
same
value
yielded
by
conversions
(
reverse
quotes
).
It
is
sometimes
useful
to
be
able
to
access
this
operation
as
an
ordinary
function
.
For
many
types
,
this
function
makes
an
attempt
to
return
a
string
that
would
yield
an
object
with
the
same
value
when
passed
to
:
func
:`
eval
`.
Return
a
string
containing
a
printable
representation
of
an
object
.
For
many
types
,
this
function
makes
an
attempt
to
return
a
string
that
would
yield
an
object
with
the
same
value
when
passed
to
:
func
:`
eval
`,
otherwise
the
representation
is
a
string
enclosed
in
angle
brackets
that
contains
the
name
of
the
type
of
the
object
together
with
additional
information
often
including
the
name
and
address
of
the
object
.
A
class
can
control
what
this
function
returns
for
its
instances
by
defining
a
:
meth
:`
__repr__
`
method
.
..
function
::
reversed
(
seq
)
...
...
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