shiyao.ma added the comment:
Instead of setting a MAXSIZE for the email body, rasing up the MAXLINE might be
more meaningful.
Consider the case of MAXSIZE, it's essentially the same as MAXLINE. If MAXSIZE
is relatively small, some messages won't pass through. If the MAXSIZE is
New submission from shiyao.ma:
The doc is here: https://docs.python.org/3.5/library/io.html#io.IOBase.seek
and here: https://docs.python.org/3.5/library/io.html#io.TextIOBase.seek
It is said the parameter list is in the form of:
seek(offset, whence=SEEK_SET)
But actually only:
seek(offset) or
shiyao.ma added the comment:
Thanks for your comment.
I had a read of pep457. It's still in draft status, so incorporating
the / indicator is not much a concern AFAIK.
Any further modification for me to do to get that merged?
--
title: io.[Text]IOBase.seek doesn't ta
New submission from shiyao.ma:
The parameters for io.[Text]IOBase.seek are currently positional only, as
discussed in http://bugs.python.org/issue25030.
We make the parameters to be both positional and keyword based.
--
files: patch.diff
keywords: patch
messages: 250382
nosy
shiyao.ma added the comment:
You've listed much of the benefits it can bring about.
The real problem is there are many places like iobase.seek to modify
to support keyword argument, and seems not many people think it's a
good idea to do that, per issue 8706. But I think the former i
shiyao.ma added the comment:
per serhiy's suggestion, added two aliases.
--
keywords: +patch
nosy: +introom
Added file: http://bugs.python.org/file40446/patch.diff
___
Python tracker
<http://bugs.python.org/is
shiyao.ma added the comment:
ITSM it's not the TextIOWrapper but the detect_encoding fails and throws an
error.
So I wrapped a try/catch block around that.
--
keywords: +patch
nosy: +introom
Added file: http://bugs.python.org/file38792/tokenize.
shiyao.ma added the comment:
On Wed, Apr 1, 2015 at 6:18 PM, STINNER Victor wrote:
> Oh, right. But TextIOWrapper can fail for differen reasons. For example,
> CTRL+c may send KeyboardInterrupt.
Yes. Any comment on the test?
I wil update a second patch.
Regards.
--
吾輩は猫である。ホームーペー
shiyao.ma added the comment:
Based upon the previous review.
Catch the TextWrapper, move the test into a function.
--
Added file: http://bugs.python.org/file38796/tokenizeV2.patch
___
Python tracker
<http://bugs.python.org/issue23
Changes by shiyao.ma :
--
nosy: +introom
___
Python tracker
<http://bugs.python.org/issue16991>
___
___
Python-bugs-list mailing list
Unsubscribe:
10 matches
Mail list logo