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 2012年02月14日 23:49 by ncoghlan, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg153376 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2012年02月14日 23:49 | |
io.TextIOWrapper acquired a new "write_through" argument for 3.3, but that is not exposed as a documented attribute. This is needed so that a text wrapper can be replaced with an equivalent that only alters selected settings (such as the Unicode error handler). |
|||
| msg153377 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2012年02月14日 23:59 | |
Updating issue title, since I realised this doesn't work in 3.2 either (the "newline" argument also isn't available for introspection - "newlines" is not the same thing) Possible API signature: _missing = object() def rewrap(self, encoding=_missing, errors=_missing, newline=_missing, line_buffering=_missing, write_through=_missing): pass That is, accept the same arguments as __init__ (excluding the buffer argument), with any arguments not explicitly supplied replaced with the values from the current instance. |
|||
| msg220628 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年06月15日 12:42 | |
@Nick would you like or even need this in 3.5? |
|||
| msg339487 - (view) | Author: Inada Naoki (methane) * (Python committer) | Date: 2019年04月05日 10:04 | |
TextIOWrapper now has reconfigure() method. Can this issue be closed? |
|||
| msg339575 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2019年04月07日 12:00 | |
Aye, let's close this for now - swapping streams out has enough other problems with stale references to the original stream that using reconfigure() to update the existing stream in place is usually going to be the better option. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:26 | admin | set | github: 58225 |
| 2019年04月07日 12:00:16 | ncoghlan | set | status: open -> closed resolution: postponed messages: + msg339575 stage: needs patch -> resolved |
| 2019年04月05日 10:04:49 | methane | set | nosy:
+ methane messages: + msg339487 |
| 2019年03月15日 23:13:27 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2014年06月15日 12:42:15 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg220628 versions: + Python 3.5, - Python 3.4 |
| 2013年01月27日 01:36:31 | ezio.melotti | set | nosy:
+ pitrou stage: needs patch type: enhancement versions: + Python 3.4, - Python 3.3 |
| 2012年02月14日 23:59:33 | ncoghlan | set | messages:
+ msg153377 title: io.TextIOWrapper should expose a documented write_through attribute -> Make it easy to create a new TextIOWrapper based on an existing |
| 2012年02月14日 23:49:33 | ncoghlan | create | |