DecoreExceptionexpects an optional parameter fp to be a file-like object with tell() function. In the C extension however the exception is initialised with the integer position in the stream. This means that currently exceptions raised via C extension never show stream offset.
Potential fixes:
Allow for DecoreException to accept either an integer or file-like object as argument
Update pure Python version to supply integer offset, change DecoderException to expect an integer rather than file-like object.
DecoreException
expects an optional parameterfp
to be a file-like object withtell()
function. In the C extension however the exception is initialised with the integer position in the stream. This means that currently exceptions raised via C extension never show stream offset.Potential fixes:
DecoreException
to accept either an integer or file-like object as argumentDecoderException
to expect an integer rather than file-like object.