|
From: SourceForge.net <no...@so...> - 2009-05-25 13:12:20
|
Feature Requests item #2796419, was opened at 2009-05-25 15:12 Message generated for change (Tracker Item Submitted) made by mfrasca You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=746846&aid=2796419&group_id=140566 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Mario Frasca (mfrasca) Assigned to: Nobody/Anonymous (nobody) Summary: exception decoding ^@ padded numeric field Initial Comment: we've got a dbf where numeric fields are padded with <NUL> characters. on these the library crashes: File "/usr/local/lib/python2.6/dist-packages/dbfpy/fields.py", line 240, in decodeValue # a float (has decimal separator) ValueError: null byte in argument for float() I would add this line just after stripping the value, before converting it to float/integer: value = value.replace('\0', '') ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=746846&aid=2796419&group_id=140566 |