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.

Author sdaoden
Recipients amaury.forgeotdarc, georg.brandl, r.david.murray, sdaoden, twouters
Date 2011-04-07.20:41:52
SpamBayes Score 3.1508807e-10
Marked as misclassified No
Message-id <20110407204144.GC85782@sherwood.local>
In-reply-to <1302194512.48.0.667616632922.issue11700@psf.upfronthosting.co.za>
Content
On Thu, Apr 07, 2011 at 04:41:52PM +0000, R. David Murray wrote:
> 
> R. David Murray <rdmurray@bitdance.com> added the comment:
> 
> I don't understand what you are saying about raising a ValueError on close.
> f = open('x'); f.close(); f.close() does not raise any error, as Amaury pointed out.
> 
> So I still don't understand the motivation for a more complex fix.

Now i've indeed looked into io.rst and i've found this:

:class:`IOBase` provides these data attributes and methods:

.. method:: close()

  Flush and close this stream. This method has no effect if the file is
  [Mojo Risin', gotta Mojo Risin']
  already closed. Once the file is closed, any operation on the file
  (e.g. reading or writing) will raise a :exc:`ValueError`.
  [I gotta, wooo, yeah, risin']
  As a convenience, it is allowed to call this method more than once;
  only the first call, however, will have an effect.

And a minute ago i've also done this:

...     def __init__(self):
...             pass
... 
>>> dir(y)

and i've found out that i should have done that first, but i'm 
still surprised how easy Python is - 'am waiting for 
'as -o mb.o mailbox.py' to produce nice x86 pseudo machine code??

So i will reimplement yeah.diff even more fancy tomorrow, 
and (urgh!) add more tests for the new input functions. 
(I'll continue to discontinue support for read1().) 
That's what i will do.
Good night.
History
Date User Action Args
2011-04-07 20:41:54sdaodensetrecipients: + sdaoden, twouters, georg.brandl, amaury.forgeotdarc, r.david.murray
2011-04-07 20:41:53sdaodenlinkissue11700 messages
2011-04-07 20:41:52sdaodencreate