Issue 7235: IO libary have some error (original) (raw)

Issue7235

Created on 2009-10-29 13:15 by kaka, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
unnamed kaka,2009-10-29 13:38
unnamed kaka,2009-10-29 13:38
Messages (3)
msg94663 - (view) Author: lpp1985 (kaka) Date: 2009-10-29 13:15
The parameter 'newline' in os.open() functiion in the condition of input could ought to be set to any character.But if I set anythin else '','\n','\r\n',and '\r',there will be a error raise.This is maybe a bug in this libary.
msg94664 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-10-29 13:18
It's by design. If you want to split on arbitrary characters, use the split() method on string and bytes objects.
msg94668 - (view) Author: lpp1985 (kaka) Date: 2009-10-29 13:38
But sometimes the content of file in too large to put into memory,So I need a tool to solve this problem.Just only modify a subclass in Io could solve this problem.To me ,it is difficult,but simple to your team! 2009-10-29 李澎鹏 发件人: Antoine Pitrou 发送时间: 2009-10-29 21🔞31 收件人: lpp1985 抄送: 主题: [] IO libary have some error Antoine Pitrou <pitrou@free.fr> added the comment: It's by design. If you want to split on arbitrary characters, use the split() method on string and bytes objects. ---------- nosy: +pitrou resolution: -> invalid status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue7235> _______________________________________
History
Date User Action Args
2022-04-11 14:56:54 admin set github: 51484
2009-10-29 13:38:19 kaka set files: + unnamed, unnamedmessages: +
2009-10-29 13🔞26 pitrou set status: open -> closednosy: + pitroumessages: + resolution: not a bug
2009-10-29 13:15:49 kaka create