Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7235] IO libary have some error

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Oct 29, 2009, 6:15 AM

Post #1 of 3 (67 views)
Permalink
[issue7235] IO libary have some error

New submission from lpp1985 <lpp1985[at]yahoo.com.cn>:

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.

----------
components: Library (Lib)
messages: 94663
nosy: kaka
severity: normal
status: open
title: IO libary have some error

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue7235>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Oct 29, 2009, 6:18 AM

Post #2 of 3 (58 views)
Permalink
[issue7235] IO libary have some error [In reply to]

Antoine Pitrou <pitrou[at]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[at]bugs.python.org>
<http://bugs.python.org/issue7235>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Oct 29, 2009, 6:38 AM

Post #3 of 3 (57 views)
Permalink
[issue7235] IO libary have some error [In reply to]

lpp1985 <lpp1985[at]yahoo.com.cn> added the comment:

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[at]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[at]bugs.python.org>
<http://bugs.python.org/issue7235>
_______________________________________

----------
Added file: http://bugs.python.org/file15226/unnamed
Added file: http://bugs.python.org/file15227/unnamed

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue7235>
_______________________________________
Attachments: unnamed (3.41 KB)
  unnamed (0.10 KB)

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.