Closed eec4f671-2f5a-4677-b514-f82fb54fb035 closed 14 years ago
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.
It's by design. If you want to split on arbitrary characters, use the split() method on string and bytes objects.
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 抄送: 主题: [bpo-7235] 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\
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields: ```python assignee = None closed_at =
created_at =
labels = ['invalid', 'library']
title = 'IO libary have some error'
updated_at =
user = 'https://bugs.python.org/kaka'
```
bugs.python.org fields:
```python
activity =
actor = 'kaka'
assignee = 'none'
closed = True
closed_date =
closer = 'pitrou'
components = ['Library (Lib)']
creation =
creator = 'kaka'
dependencies = []
files = ['15226', '15227']
hgrepos = []
issue_num = 7235
keywords = []
message_count = 3.0
messages = ['94663', '94664', '94668']
nosy_count = 2.0
nosy_names = ['pitrou', 'kaka']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue7235'
versions = []
```