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 alexandre.vassalotti
Recipients alexandre.vassalotti, brett.cannon, hdiogenes
Date 2008-06-11.04:22:36
SpamBayes Score 0.02989903
Marked as misclassified No
Message-id <1213158172.15.0.80264363543.issue2918@psf.upfronthosting.co.za>
In-reply-to
Content
Here's another patch fixes the failing tests. I have tried to support
the buffer attribute using following hack:

        @property
        def buffer(self):
            # XXX Hack to support the buffer attribute.
            buf = codecs.getwriter(self.encoding)(BytesIO(), self.errors)
            value = self.getvalue()
            buf.write(value[:self.tell()])
            pos = buf.stream.tell()
            buf.write(value[self.tell():])
            buf.stream.seek(pos)
            return buf.stream

but this doesn't work since some application might want to modify the
buffer. So, I removed it. Another thing that bothered me were the bogus
encoding and errors arguments. So, I also removed them.
History
Date User Action Args
2008-06-11 04:22:53alexandre.vassalottisetspambayes_score: 0.029899 -> 0.02989903
recipients: + alexandre.vassalotti, brett.cannon, hdiogenes
2008-06-11 04:22:52alexandre.vassalottisetspambayes_score: 0.029899 -> 0.029899
messageid: <1213158172.15.0.80264363543.issue2918@psf.upfronthosting.co.za>
2008-06-11 04:22:50alexandre.vassalottilinkissue2918 messages
2008-06-11 04:22:49alexandre.vassalotticreate