A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-September/149355.html below:

[Python-Dev] PEP 552: deterministic pycs

[Python-Dev] PEP 552: deterministic pycs [Python-Dev] PEP 552: deterministic pycsAntoine Pitrou solipsis at pitrou.net
Fri Sep 8 06:04:52 EDT 2017
On Thu, 7 Sep 2017 18:47:20 -0700
Nick Coghlan <ncoghlan at gmail.com> 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:
> 
> * number & 0x1FFF -> the traditional magic number
> * number & 0x8000 -> timestamp or hash?
> * number & 0x4000 -> checked or not?
> * number & 0x2000 -> reserved for future format changes

I'd rather a single magic number and a separate bitfield that tells
what the header encodes exactly.  We don't *have* to fight for a tiny
size reduction of pyc files.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4