[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4f43f87b6246e13e0eefc793a2c5415c915723c3 by Xiang Zhang in branch '3.5': bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) (#1151)

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset d5fa5f3ce7d9003bbd3975d1bf634043305ae18f by Xiang Zhang in branch '3.6': bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) (#1150)

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 5fbdfc36f397ad46f4057d527855dfacb77242ce by Xiang Zhang in branch '2.7': bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1152) https://github.com/python/cpython/commit/5fbdfc36f397ad46f4057d527855dfacb77242ce

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1283 ___ Python tracker ___ ___

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1282 ___ Python tracker ___ ___

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1281 ___ Python tracker ___ ___

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 026435ce49419a3366171416c68114dd8a1144c7 by Xiang Zhang in branch 'master': bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) https://github.com/python/cpython/commit/026435ce49419a3366171416c68114dd8a1144c7

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson, serhiy.storchaka, stutzbach ___ Python tracker ___

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1264 ___ Python tracker ___ ___

[issue30068] missing iter(self) in _io._IOBase.readlines

2017-04-14 Thread Xiang Zhang
New submission from Xiang Zhang: In _io._IOBase.readlines, it straightly uses PyIter_Next(self). But iter(_io._IOBase) does more work than just returning itself. >>> import _io >>> f = _io._IOBase() >>> f.close() >>> f.readlines() Traceback (most recent call last): File "", line 1, in