Re: Save-to-file code not quite working completely

2020-08-10 Thread dn via Python-list
On 10/08/2020 05:23, Dennis Lee Bieber wrote: On Sun, 9 Aug 2020 11:50:51 +1200, dn via Python-list declaimed the following: To be a logomach, let's talk about "update":- May I advise that a 'good practice' would be to create a new file, and thus be able to (also) maintain the old version as a

Mischief Managed: Save-to-file code not quite working completely

2020-08-08 Thread Steve
riginal Message- From: MRAB Sent: Saturday, August 8, 2020 9:08 PM To: Steve Subject: Re: Save-to-file code not quite working completely On 2020-08-09 00:51, Steve wrote: > I don't see that. What I do see is that it placing the new string but > leaving most of the old one. That

Re: Save-to-file code not quite working completely

2020-08-08 Thread dn via Python-list
On 09/08/2020 08:51, Steve wrote: I have a file containing specifications. My .py program can read and manipulate the data but I cannot seem to get it to update the original file properly. The code is simple and works except that the original line remains in the file after the new updated one h

Re: Save-to-file code not quite working completely

2020-08-08 Thread MRAB
On 2020-08-08 21:51, Steve wrote: I have a file containing specifications. My .py program can read and manipulate the data but I cannot seem to get it to update the original file properly. The code is simple and works except that the original line remains in the file after the new updated one h

Save-to-file code not quite working completely

2020-08-08 Thread Steve
I have a file containing specifications. My .py program can read and manipulate the data but I cannot seem to get it to update the original file properly. The code is simple and works except that the original line remains in the file after the new updated one has been added. My code: ==