Hi,
How can I control the number of digits after the decimal
point using the %g format specifier. I am not able to get more than 3 digits as
shown below.
>>> a = 1.234e-5
>>> '%g' % a
'1.234e-005'
>>> '%.2g' % a
'1.2e-005'
>>> '%.4g' % a
'1.234e-005'
>>> '%.5g' % a
'1.234e-0
Hi,
I need your help in this. What is the type of
os.lstat(fileName)[stat.ST_SIZE]. In python 2.0 I am getting it as int and in
2.3 it is long. Because it is an int in 2.0 the file size reported is negative for
file sizes > INT_MAX. Do you know if this is a bug in 2.0. Are there other
w