newbie Q: delete list few lines in file

Bengt Richter bokr at oz.net
Sun Jun 30 19:00:47 EDT 2002


On Sun, 30 Jun 2002 20:44:22 +0100, Jonathan Hogg <jonathan at onegoodidea.com> wrote:

>On 30/6/2002 5:33, in article 3D1E8A08.53DD2272 at engcorp.com, "Peter Hansen"
><peter at engcorp.com> wrote:
>
>> Hans Nowak wrote:
>>> 
>>> Peter Hansen wrote:
>>> 
>>>> You cannot write files in place.
>>> 
>>> <nitpick>
>>> 
>>> Sure you can:
>> 
>> [snip proof]
>> 
>> Of course, but we were answering a newbie's questions, right?
>
>I think that it is unclear from Xah's original post whether the files or the
>lines are to be deleted. Certainly, asking how to write to files in place
>suggests that the lines are to be deleted.
> 
>> -trying-not-to-complicate-things-ly yr's,
>
>If you want to say "that's complicated, are you sure you want to do that?",
>go ahead. But it's not helpful to tell someone that something cannot be done
>when it can. That's just misdirection.
>
>-newbies-aren't-children-ly y'rs,
>
Some of them probably are, for which case misdirection is _extra_ pernicious IMO.

Regards,
Bengt Richter



More information about the Python-list mailing list