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.
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> _______________________________________