See All Titles |
![]() ![]() reprThe repr module is an alternate repr() function implementation that produces object representations that limit the size of resulting strings. >>> import repr >>> var = ["Spam" * 10] >>> print var ['SpamSpamSpamSpamSpamSpamSpamSpamSpamSpam'] >>> print repr.repr(var) ['SpamSpamSpam…mSpamSpamSpam']
|
Index terms contained in this sectionmodulesrepr repr module |
© 2002, O'Reilly & Associates, Inc. |