Opened 16 years ago

Closed 16 years ago

Last modified 8 years ago

#717 deleted Library Submissions (Accepted)

Add operator for __repr__ similar to __str__

Reported by: chromosom Owned by: david_abrahams
Milestone: Website 1.X Component: xpressive
Version: None Severity: Not Applicable
Keywords: Cc:

Description

Useful in interactive mode.

I use it together with the str operator

   class_ < ... > ()
     ...
     .def(self_ns::str(self))
     .def(self_ns::repr(self))
   ;

Change History (3)

comment:1 by david_abrahams, 16 years ago

Logged In: YES 
user_id=52572

Accepted into CVS HEAD.  FYI, it's redundant to define both
__repr__ and __str__, since __str__ defaults to calling
__repr__.

Thanks very much; please contribute the accompanying
documentation patch next time :)

comment:2 by david_abrahams, 16 years ago

Status: assignedclosed

comment:3 by Smithe103, 8 years ago

Component: Pythonxpressive
Milestone: Website 1.X
Severity: Not Applicable
Type: PatchesLibrary Submissions

Hi Dear, are you in fact visiting this website daily, if so then you will definitely take fastidious knowledge. gdbkaeacdkadedkd

Note: See TracTickets for help on using tickets.