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.
Created on 2008年03月13日 04:32 by netzhen, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue2282.diff | jeff.balogh, 2008年03月17日 15:59 | Fixes the seekable method and adds a test. | ||
| Messages (4) | |||
|---|---|---|---|
| msg63494 - (view) | Author: zhen (netzhen) | Date: 2008年03月13日 04:32 | |
The seekable() method of TextIOWrapper always returns False, for it does't override the seekable method of IOBase class in which just returns False. But, there is a method named _seekable(self) in TextIOWrapper(in io.py line 1211): def _seekable(self): return self._seekable which should be seekable(self), and _seekable method is overwrited by line 1190 in the __init__ method as a bool object: self._seekable = self._telling = self.buffer.seekable() |
|||
| msg63660 - (view) | Author: Jeff Balogh (jeff.balogh) * | Date: 2008年03月17日 15:59 | |
Attaching a patch that fixes this issue and adds a regression test. |
|||
| msg63663 - (view) | Author: Guido van Rossum (gvanrossum) * (Python committer) | Date: 2008年03月17日 16:15 | |
Confirmed. Ping, since you're looking at io.py anyway, can you fix this too? |
|||
| msg63762 - (view) | Author: Ka-Ping Yee (ping) * (Python committer) | Date: 2008年03月17日 20:35 | |
Patch committed. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:31 | admin | set | github: 46535 |
| 2008年03月17日 20:35:52 | ping | set | status: open -> closed resolution: accepted messages: + msg63762 |
| 2008年03月17日 16:15:27 | gvanrossum | set | priority: high assignee: ping messages: + msg63663 nosy: + ping |
| 2008年03月17日 16:02:24 | benjamin.peterson | set | nosy: + gvanrossum |
| 2008年03月17日 15:59:43 | jeff.balogh | set | files:
+ issue2282.diff nosy: + jeff.balogh messages: + msg63660 keywords: + patch |
| 2008年03月13日 04:32:29 | netzhen | create | |