Re: [Python-Dev] "format" builtin function, docstring improvement

2017-02-09 Thread Alexander Belopolsky
On Thu, Feb 9, 2017 at 1:18 PM, Hugo PROD HOMME wrote: > > I have made a template of the docstring to begin with, that I send as an attached file, but I am not familiar with docstring format. Please open an issue at bugs.python.org. We did something similar in issue #9650, [1] so I think this wi

[Python-Dev] "format" builtin function, docstring improvement

2017-02-09 Thread Hugo PROD HOMME
Dear python developpers,   First I'd like to thank you for your work, you're making the world simple !   Then I would like to share a very light suggestion for the improvement of python, I hope I am using the right way for this. (I am using python 3.4.3)   I am from the science side, more pre

Re: [Python-Dev] Deterministic builds of the interpreter

2017-02-09 Thread INADA Naoki
On Fri, Feb 10, 2017 at 2:45 AM, Freddy Rietdijk wrote: > Correct, that was an older version from before I patched > `_bootstrap_external.py`. A more recent diff can be found at > > https://gist.github.com/anonymous/d40f24fd6b636ba40d345ff3f12a0aaa > > These all seem to be sets. Maybe, PYTHONHASH

Re: [Python-Dev] Deterministic builds of the interpreter

2017-02-09 Thread Freddy Rietdijk
Correct, that was an older version from before I patched `_bootstrap_external.py`. A more recent diff can be found at https://gist.github.com/anonymous/d40f24fd6b636ba40d345ff3f12a0aaa These all seem to be sets. On Thu, Feb 9, 2017 at 6:04 PM, INADA Naoki wrote: > As reading [4], mtime is not

Re: [Python-Dev] Deterministic builds of the interpreter

2017-02-09 Thread INADA Naoki
As reading [4], mtime is not 0. data = bytearray(MAGIC_NUMBER) data.extend(_w_long(mtime)) data.extend(_w_long(source_size)) data.extend(marshal.dumps(code)) First 4 bytes are magic. Next 4 bytes are mtime. │ │ │ │ -: 160d 0d0a 6b2e 9c58 6c21 e300 k..Xl!

[Python-Dev] Deterministic builds of the interpreter

2017-02-09 Thread Freddy Rietdijk
Hi, I'm attempting to make the builds of the Python interpreters for Nixpkgs [1] deterministic. In the case of Python 2.7 we have a patch [2] that fixes the timestamp used in .pyc files in case the env var `DETERMINISTIC_BUILD` is set. We also remove `wininst*.exe`. This works fine, although ther

Re: [Python-Dev] GitHub migration scheduled for Friday

2017-02-09 Thread Ihor Kalnytskyi
Brett Cannon wrote: > Because other core devs wanted a linear history. This preference was very > strong to the point people were willing to forgo the Merge button in > GitHub's web UI to enforce it until GitHub added the squash merge support > for the Merge button. Actually, there's a third optio

Re: [Python-Dev] GitHub migration scheduled for Friday

2017-02-09 Thread Maciej Szulik
On Wed, Feb 8, 2017 at 8:52 AM, Senthil Kumaran wrote: > On Tue, Feb 7, 2017 at 11:38 PM, Victor Stinner > wrote: > > I know that different people have different expectation on GitHub. I > > would like to take the opportunity of migrating to Git to use the > > "author" and "committer" fields. If