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

Mailing List Archive: Python: Dev
Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added
 

Index | Next | Previous | View Flat


solipsis at pitrou

Jun 28, 2012, 4:07 AM


Views: 188
Permalink
Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added

On Thu, 28 Jun 2012 12:59:02 +0200
petri.lehtinen <python-checkins [at] python> wrote:
> http://hg.python.org/cpython/rev/c37cb11b546f
> changeset: 77832:c37cb11b546f
> branch: 2.7
> parent: 77823:73710ae9fedc
> user: Petri Lehtinen <petri [at] digip>
> date: Thu Jun 28 13:48:17 2012 +0300
> summary:
> #9559: Append data to single-file mailbox files if messages are only added
>
> If messages were only added, a new file is no longer created and
> renamed over the old file when flush() is called on an mbox, MMDF or
> Babyl mailbox.

Why so? Appending is not atomic and, if it fails in the middle, you
could get a corrupt mbox file.
Furthermore, I disagree that it's a bugfix: IMO it should wait for 3.4.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Subject User Time
Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added solipsis at pitrou Jun 28, 2012, 4:07 AM
    Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added petri at digip Jun 28, 2012, 6:16 AM
        Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added rdmurray at bitdance Jun 28, 2012, 8:08 AM
            Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added petri at digip Jun 28, 2012, 11:09 AM
        Re: cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added solipsis at pitrou Jun 28, 2012, 9:07 AM

  Index | Next | Previous | View Flat
 
 


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