[Twisted-Python] Re: plus mode was Re: how winnt fileops workand what to do about it
Cory Dodt
corydodt at twistedmatrix.com
Sat Dec 31 18:34:07 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Fair enough. In that case, the test itself is broken, since it doesn't
do seeks or flushes.
C
James Y Knight wrote:
>
> On Dec 31, 2005, at 4:57 PM, Paul G wrote:
>
>> oh, it makes perfect sense to have a workaround in twisted, i'm not
>> suggesting otherwise. however, it should be just that - a temporary
>> workaround until cpython has a fix for the issue, because (outside of
>> the offending libc implementation), that is the right place to fix it.
>
>
> As I wrote in the bug report:
>
>> It's not a python bug except perhaps that python should raise an
>> exception.
>> Doing a read and write without a seek in between is illegal in C.
>>
>> "ANSI C requires that a file positioning function intervene between
>> output and
>> input, unless an input operation encounters end-of-file."
>
>
> I am against including any sort of workaround besides raising an
> exception if the situation occurs. And I don't think even that is
> particularly warranted.
>
> James
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDtxVu3A5SrXAiHQcRApqwAJ0Ywaxg9qxs2QZQxB8NIILUFnTXUgCfaNHl
QVcMaluKYVx0cf5+mWHo2mU=
=9NK8
-----END PGP SIGNATURE-----
More information about the Twisted-Python
mailing list