< BACKMake Note | BookmarkCONTINUE >
152015024128143245168232148039199167010047123209178152124239215162146124202003028005215228

repr

The 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']

				


Last updated on 1/30/2002
Python Developer's Handbook, © 2002 Sams Publishing

< BACKMake Note | BookmarkCONTINUE >

Index terms contained in this section

modules
      repr
repr module

© 2002, O'Reilly & Associates, Inc.