Re: formatting number of bytes to human readable format

2008-08-12 Thread [EMAIL PROTECTED]
On Tue, Aug 12, 2008 at 7:31 PM, Rob Weir <[EMAIL PROTECTED]> wrote: > On 13 Aug 2008, rkmr wrote: > > is there any library / function that prints number of bytes in human > > readable format? > > for example > > > > a=XX(1048576) > > print a > > > > should output > > 1 MB > > http://mail.python.

Re: formatting number of bytes to human readable format

2008-08-12 Thread Rob Weir
On 13 Aug 2008, rkmr wrote: > is there any library / function that prints number of bytes in human > readable format? > for example > > a=XX(1048576) > print a > > should output > 1 MB http://mail.python.org/pipermail/python-list/1999-December/018519.html is a good start - just need to change the

formatting number of bytes to human readable format

2008-08-12 Thread [EMAIL PROTECTED]
is there any library / function that prints number of bytes in human readable format? for example a=XX(1048576) print a should output 1 MB thanks! -- http://mail.python.org/mailman/listinfo/python-list