Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Repr() function
#4
fishhook provided comprehensive answer, but you can always start from built-in help and work from that. In many cases built-in help is all you need.

>>> help(repr)
Help on built-in function repr in module builtins:

repr(obj, /)
    Return the canonical string representation of the object.
    
    For many object types, including most builtins, eval(repr(obj)) == obj.
(END)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Repr() function - by Valentina - Aug-19-2019, 01:28 PM
RE: Repr() function - by fishhook - Aug-19-2019, 01:50 PM
RE: Repr() function - by Valentina - Aug-22-2019, 11:13 AM
RE: Repr() function - by perfringo - Aug-22-2019, 11:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ascii() (repr() in py2) Skaperen 1 4,550 Jun-05-2017, 10:32 PM
Last Post: Ofnuts
  str vs repr Skaperen 9 7,534 Jun-05-2017, 01:04 AM
Last Post: Skaperen
  when repr() fails Skaperen 8 8,155 May-03-2017, 02:48 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020