Tom Lynn added the comment:

I think the default has to be 0 for consistency with how other empty numeric 
fields are handled.

In theory spaces and NULs are supposed to be equivalent terminators in numeric 
fields, but I've just noticed that plexus-archiver is also using leading spaces 
rather than leading zeros (against the spec), e.g. ' 10422\x00 '.  tarfile 
currently supports this, which I think is good, so I think the right approach 
is to lstrip(' ') fields and then treat space as a terminator.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15858>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to