A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-November/058197.html below:

[Python-Dev] Iterating a closed StringIO

[Python-Dev] Iterating a closed StringIO [Python-Dev] Iterating a closed StringIOWalter Dörwald walter at livinglogic.de
Fri Nov 18 11:29:17 CET 2005
Am 18.11.2005 um 02:16 schrieb Guido van Rossum:

> On 11/17/05, Walter Dörwald <walter at livinglogic.de> wrote:
>> Am 17.11.2005 um 22:03 schrieb Guido van Rossum:
>>
>>> On 11/17/05, Walter Dörwald <walter at livinglogic.de> wrote:
>>>> [...]
>>>> Should they raise the same exception? Should this be fixed for 2.5?
>>>
>>> I think cStringIO is doing the right thing; "real" files behave the
>>> same way.
>>>
>>> Submit a patch for StringIO (also docs please) and assign it to  
>>> me and
>>> I'll make sure it goes in.
>>
>> http://www.python.org/sf/1359365
>
> Thanks!
>
>> Doc/lib/libstringio.tex only states "See the description of file
>> objects for operations", so I'm not sure how to update the
>> documentation.
>
> OK, so that's a no-op.
>
> I hope there isn't anyone here who believes this patch would be a  
> bad idea?

I wonder whether we should introduce a new exception class for these  
kinds or error. IMHO ValueError is much to unspecific.

What about StateError?

Bye,
    Walter Dörwald

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4