Re: Generating generations of files

2019-05-01 Thread Grant Edwards
On 2019-05-01, Dennis Lee Bieber wrote: > It showed all versions... (at least, it did two years ago before my > lay-off from GE Aviation; which was running OpenVMS in a virtual > environment on some Windows boxes, being used to cross compile Ada > for 68040; and is also what I recall from 24 year

Re: Generating generations of files

2019-05-01 Thread Gregory Ewing
Avi Gross wrote: UNIX flowed the fields together with a limit of 14 that included an actual optional period as a counted character. The Unix kernel has no notion of a filename extension; a filename is just a sequence of bytes. Using a dot-suffix to indicate a file type is just a user-level conv

Re: Generating generations of files

2019-05-01 Thread Gregory Ewing
On 2019-04-30, Cameron Simpson wrote: I'm pretty sure the VMS built in file versioning went on the scheme MRAB described: rewriting version.rpt caused the old version to become "version.rpt;n" where n counted up from 1. The version numbers certainly counted upwards. But I'm fairly sure a ver

RE: Generating generations of files

2019-04-30 Thread Avi Gross via Python-list
TOPIC: how to save, retain and retrieve files as they change. There seem to be several approaches and one proposal here involved using altered file names with a numeric suffix. Can we compare two different concepts? A typographical approach with little or no built-in support like searching for a

Re: Generating generations of files

2019-04-30 Thread Grant Edwards
On 2019-04-30, Cameron Simpson wrote: > On 30Apr2019 11:24, DL Neil wrote: >>On 30/04/19 8:17 AM, MRAB wrote: >>>Why would generation numbers result in a 'ripple' of renaming? >>> >>>You're assuming that "output.rpt.1" comes after "output.rpt.2", but >>>it could just as well come before (generat

Re: Generating generations of files

2019-04-30 Thread Grant Edwards
On 2019-04-29, DL Neil wrote: > On 30/04/19 8:12 AM, Grant Edwards wrote: >> On 2019-04-29, DL Neil wrote: >> >>> Are you aware of a library/utility which will generate and maintain the >>> file names of multiple generations of a file? >> >> Well, the FILES-11 filesystem on VAX/VMS did that aut

Re: Generating generations of files

2019-04-29 Thread Gene Heskett
On Monday 29 April 2019 20:20:50 DL Neil wrote: > On 30/04/19 11:57 AM, Chris Angelico wrote: > > On Tue, Apr 30, 2019 at 9:46 AM Eli the Bearded <*@eli.users.panix.com> wrote: > >> In comp.lang.python, DL Neil wrote: > >>> On 30/04/19 10:59 AM, Chris Angelico wrote: > > bet a FAT filesyst

Re: Generating generations of files

2019-04-29 Thread Cameron Simpson
On 30Apr2019 11:24, DL Neil wrote: On 30/04/19 8:17 AM, MRAB wrote: Why would generation numbers result in a 'ripple' of renaming? You're assuming that "output.rpt.1" comes after "output.rpt.2", but it could just as well come before (generation 1 precedes generation 2, etc.). You're just lef

Re: Generating generations of files

2019-04-29 Thread DL Neil
On 30/04/19 11:57 AM, Chris Angelico wrote: On Tue, Apr 30, 2019 at 9:46 AM Eli the Bearded <*@eli.users.panix.com> wrote: In comp.lang.python, DL Neil wrote: On 30/04/19 10:59 AM, Chris Angelico wrote: bet a FAT filesystem would produce a different error Probably it'd raise BadFileSystemE

Re: Generating generations of files

2019-04-29 Thread Chris Angelico
On Tue, Apr 30, 2019 at 9:54 AM DL Neil wrote: > > On 30/04/19 8:04 AM, Chris Angelico wrote: > > On Tue, Apr 30, 2019 at 6:00 AM DL Neil > > wrote: > >> > >> Are you aware of a library/utility which will generate and maintain the > >> file names of multiple generations of a file? > >> > > > > C

Re: Generating generations of files

2019-04-29 Thread Chris Angelico
On Tue, Apr 30, 2019 at 9:46 AM Eli the Bearded <*@eli.users.panix.com> wrote: > > In comp.lang.python, DL Neil wrote: > > On 30/04/19 10:59 AM, Chris Angelico wrote: > >>> bet a FAT filesystem would produce a different error > >> Probably it'd raise BadFileSystemError or something. Which is a >

Re: Generating generations of files

2019-04-29 Thread DL Neil
On 30/04/19 8:04 AM, Chris Angelico wrote: On Tue, Apr 30, 2019 at 6:00 AM DL Neil wrote: Are you aware of a library/utility which will generate and maintain the file names of multiple generations of a file? Commit it to a git repository. All the generations have the same name, but you can

Re: Generating generations of files

2019-04-29 Thread Eli the Bearded
In comp.lang.python, DL Neil wrote: > On 30/04/19 10:59 AM, Chris Angelico wrote: >>> bet a FAT filesystem would produce a different error >> Probably it'd raise BadFileSystemError or something. Which is a > Fortunately, it runs on a Linux 'compute server'. I mount FAT under Linux all the time.

Re: Generating generations of files

2019-04-29 Thread DL Neil
On 30/04/19 10:59 AM, Chris Angelico wrote: On Tue, Apr 30, 2019 at 8:16 AM Eli the Bearded <*@eli.users.panix.com> wrote: bet a FAT filesystem would produce a different error Probably it'd raise BadFileSystemError or something. Which is a subclass of OSError, SystemError, TimeoutError, Overfl

Re: Generating generations of files

2019-04-29 Thread DL Neil
On 30/04/19 9:04 AM, Peter J. Holzer wrote: On 2019-04-29 20:12:28 -, Grant Edwards wrote: On 2019-04-29, DL Neil wrote: Are you aware of a library/utility which will generate and maintain the file names of multiple generations of a file? Well, the FILES-11 filesystem on VAX/VMS did that

Re: Generating generations of files

2019-04-29 Thread DL Neil
On 30/04/19 8:17 AM, MRAB wrote: On 2019-04-29 20:59, DL Neil wrote: Are you aware of a library/utility which will generate and maintain the file names of multiple generations of a file? OTOH, using generation-numbers when there are many versions, (?surely) requires a 'ripple' of renaming; whe

Re: Generating generations of files

2019-04-29 Thread DL Neil
On 30/04/19 8:12 AM, Grant Edwards wrote: On 2019-04-29, DL Neil wrote: Are you aware of a library/utility which will generate and maintain the file names of multiple generations of a file? Well, the FILES-11 filesystem on VAX/VMS did that automatically, but that's probably not too helpful.

Re: Generating generations of files

2019-04-29 Thread Chris Angelico
On Tue, Apr 30, 2019 at 8:16 AM Eli the Bearded <*@eli.users.panix.com> wrote: > bet a FAT filesystem would produce a different error Probably it'd raise BadFileSystemError or something. Which is a subclass of OSError, SystemError, TimeoutError, OverflowError, BlockingIOError, and SystemExit. Chr

Re: Generating generations of files

2019-04-29 Thread Eli the Bearded
In comp.lang.python, Peter J. Holzer wrote: > On 2019-04-29 20:12:28 -, Grant Edwards wrote: >> Well, the FILES-11 filesystem on VAX/VMS did that automatically, but >> that's probably not too helpful. > Until this is finished you could use something like this: > > #!/usr/bin/python3 > > impo

Re: Generating generations of files

2019-04-29 Thread Peter J. Holzer
On 2019-04-29 20:12:28 -, Grant Edwards wrote: > On 2019-04-29, DL Neil wrote: > > Are you aware of a library/utility which will generate and maintain the > > file names of multiple generations of a file? > > Well, the FILES-11 filesystem on VAX/VMS did that automatically, but > that's proba

Re: Generating generations of files

2019-04-29 Thread MRAB
On 2019-04-29 20:59, DL Neil wrote: Are you aware of a library/utility which will generate and maintain the file names of multiple generations of a file? The system generates multiple output files. For example, one might be called "output.rpt". However, we do not want to 'lose' the output file(

Re: Generating generations of files

2019-04-29 Thread Grant Edwards
On 2019-04-29, DL Neil wrote: > Are you aware of a library/utility which will generate and maintain the > file names of multiple generations of a file? Well, the FILES-11 filesystem on VAX/VMS did that automatically, but that's probably not too helpful. Though I guess Python is actually availab

Re: Generating generations of files

2019-04-29 Thread Chris Angelico
On Tue, Apr 30, 2019 at 6:00 AM DL Neil wrote: > > Are you aware of a library/utility which will generate and maintain the > file names of multiple generations of a file? > Commit it to a git repository. All the generations have the same name, but you can compare them, explore past versions, etc,