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

Mailing List Archive: Python: Bugs

[ python-Bugs-420230 ] fileinput deletes backups without warnin

 

 

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


noreply at sourceforge

Apr 30, 2001, 12:04 PM

Post #1 of 2 (28 views)
Permalink
[ python-Bugs-420230 ] fileinput deletes backups without warnin

Bugs item #420230, was updated on 2001-04-30 12:04
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420230&group_id=5470

Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bernhard Reiter (ber)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: fileinput deletes backups without warnin

Initial Comment:
When using the fileinput module with inplace=1 and a
specific
backup extension the file stays around as documented,
but if it existed before it gets overwritten without
warning.
This should be documented.

"Backup files are overriden silently."

Other possible fixes could include adding an
overwrite=0 argument
so that an exceptions is thrown when overwrite=0.


----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420230&group_id=5470


noreply at sourceforge

May 8, 2001, 8:27 PM

Post #2 of 2 (28 views)
Permalink
[ python-Bugs-420230 ] fileinput deletes backups without warnin [In reply to]

Bugs item #420230, was updated on 2001-04-30 12:04
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420230&group_id=5470

Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Bernhard Reiter (ber)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: fileinput deletes backups without warnin

Initial Comment:
When using the fileinput module with inplace=1 and a
specific
backup extension the file stays around as documented,
but if it existed before it gets overwritten without
warning.
This should be documented.

"Backup files are overriden silently."

Other possible fixes could include adding an
overwrite=0 argument
so that an exceptions is thrown when overwrite=0.


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-05-08 20:27

Message:
Logged In: YES
user_id=3066

Documentation corrected in Doc/lib/libfileinput.tex
revisions 1.6 (development trunk) and 1.5.8.1 (2.1
maintenance branch).

Specific annotation added:

"(if a file of the same name as the backup file already
exists, it will be replaced silently)"

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420230&group_id=5470

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


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.