Re: [Python-Dev] PEP 552: single magic number

2017-09-08 Thread Guido van Rossum
I also like having the header fixed-size, so it might be possible to rewrite headers (e.g. to flip the source bit) without moving the rest of the file. On Fri, Sep 8, 2017 at 3:38 AM, Antoine Pitrou wrote: > On Fri, 8 Sep 2017 12:04:52 +0200 > Antoine Pitrou wrote: > > On Thu, 7 Sep 2017 18:47:

Re: [Python-Dev] PEP 552: single magic number

2017-09-08 Thread Antoine Pitrou
On Fri, 8 Sep 2017 12:04:52 +0200 Antoine Pitrou wrote: > On Thu, 7 Sep 2017 18:47:20 -0700 > Nick Coghlan wrote: > > However, I do wonder whether we could encode *all* the mode settings > > into the magic number, such that we did something like reserving the > > top 3 bits for format flags: > >