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.

classification
Title: IO libary have some error
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: kaka, pitrou
Priority: normal Keywords:

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:18:31 
收件人: lpp1985 
抄送: 
主题: [issue7235] 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:54adminsetgithub: 51484
2009-10-29 13:38:19kakasetfiles: + unnamed, unnamed

messages: + msg94668
2009-10-29 13:18:26pitrousetstatus: open -> closed

nosy: + pitrou
messages: + msg94664

resolution: not a bug
2009-10-29 13:15:49kakacreate