Skip to content Skip to sidebar Skip to footer

Valueerror: Zero Length Field Name In Format With Read And Write

Does anybody know if it is possible to avoid the error ValueError: zero length field reading/writing from/to a file with Python 2.6.6 as specified in the following: File 'format.p

Solution 1:

Change

"{:<{width}}".format(col, width=widths[index])

into

"{0:<{1}}".format(col, widths[index])

Coz in older release of python, you need to point out the order of multiple format field.

Post a Comment for "Valueerror: Zero Length Field Name In Format With Read And Write"