This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scott.dial
Recipients belopolsky, benjamin.peterson, gpolo, josm, loewis, pitrou, scott.dial
Date 2011-03-10.02:09:07
SpamBayes Score 1.0693113e-12
Marked as misclassified No
Message-id <1299722948.67.0.933285744162.issue1706039@psf.upfronthosting.co.za>
In-reply-to
Content
I'm well aware of the limited use of Py_UniversalNewlineFgets() in py3k, but it remains the case that it is a public API that fails to work correctly under the conditions specified by the reporter, and Alexander confirmed the original patch fixed the issue. AFAICT, there no longer are any test cases (beyond the indirect testing of the dependent code) for Py_UniversalNewlineFgets().

One of the issues with applying the patch to tip was due to commenting out some code in it:

     /* if ( c == EOF && skipnextlf )
         newlinetypes |= NEWLINE_CR; */

For issue8914, which really should've just deleted those two lines, but there was not such an extensive review of that change.

The unittests have there own merit. The file object API is supposed to behave in the manner that the tests exercise them. There are currently no tests that would inform us if any change broke this documented behavior. If you want to split the patch in two to treat them as independent items, then fine.

Otherwise, close the issue as WONTFIX due to obsolescence.
History
Date User Action Args
2011-03-10 02:09:08scott.dialsetrecipients: + scott.dial, loewis, belopolsky, pitrou, josm, benjamin.peterson, gpolo
2011-03-10 02:09:08scott.dialsetmessageid: <1299722948.67.0.933285744162.issue1706039@psf.upfronthosting.co.za>
2011-03-10 02:09:07scott.diallinkissue1706039 messages
2011-03-10 02:09:07scott.dialcreate