custom format specifications in python

Posted by anupam on Stack Overflow See other posts from Stack Overflow or by anupam
Published on 2010-03-31T16:41:51Z Indexed on 2010/03/31 16:43 UTC
Read the original article Hit count: 384

Filed under:
|
|
|

hi,

in python, how can a custom format-specification be added, to a class ? for example, if i write a matrix class, i would like to define a '%M' (or some such) which would then dump the entire contents of the matrix...

thank you kind regards anupam

© Stack Overflow or respective owner

Related posts about python

Related posts about custom