<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/pytime.c, branch enum-lost-fixes</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-37205: time.time() cannot fail with fatal error (GH-23314)</title>
<updated>2020-11-16T15:08:05+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-11-16T15:08:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ae6cd7cfdab0599139002c526953d907696d9eef'/>
<id>ae6cd7cfdab0599139002c526953d907696d9eef</id>
<content type='text'>
time.time(), time.perf_counter() and time.monotonic() functions can
no longer fail with a Python fatal error, instead raise a regular
Python exception on failure.

Remove _PyTime_Init(): don't check system, monotonic and perf counter
clocks at startup anymore.

On error, _PyTime_GetSystemClock(), _PyTime_GetMonotonicClock() and
_PyTime_GetPerfCounter() now silently ignore the error and return 0.
They cannot fail with a Python fatal error anymore.

Add py_mach_timebase_info() and win_perf_counter_frequency()
sub-functions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
time.time(), time.perf_counter() and time.monotonic() functions can
no longer fail with a Python fatal error, instead raise a regular
Python exception on failure.

Remove _PyTime_Init(): don't check system, monotonic and perf counter
clocks at startup anymore.

On error, _PyTime_GetSystemClock(), _PyTime_GetMonotonicClock() and
_PyTime_GetPerfCounter() now silently ignore the error and return 0.
They cannot fail with a Python fatal error anymore.

Add py_mach_timebase_info() and win_perf_counter_frequency()
sub-functions.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37205: time.perf_counter() and time.monotonic() are system-wide (GH-23284)</title>
<updated>2020-11-16T12:21:45+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-11-16T12:21:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3df5c68487df9d1d20ab0cd06e7942a4f96d40a4'/>
<id>3df5c68487df9d1d20ab0cd06e7942a4f96d40a4</id>
<content type='text'>
time.perf_counter() on Windows and time.monotonic() on macOS are now
system-wide. Previously, they used an offset computed at startup to
reduce the precision loss caused by the float type. Use
time.perf_counter_ns() and time.monotonic_ns() added in Python 3.7 to
avoid this precision loss.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
time.perf_counter() on Windows and time.monotonic() on macOS are now
system-wide. Previously, they used an offset computed at startup to
reduce the precision loss caused by the float type. Use
time.perf_counter_ns() and time.monotonic_ns() added in Python 3.7 to
avoid this precision loss.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)</title>
<updated>2020-11-08T09:05:27+00:00</updated>
<author>
<name>Ronald Oussoren</name>
<email>ronaldoussoren@mac.com</email>
</author>
<published>2020-11-08T09:05:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=41761933c1c30bb6003b65eef1ba23a83db4eae4'/>
<id>41761933c1c30bb6003b65eef1ba23a83db4eae4</id>
<content type='text'>
Co-authored-by:  Lawrence D’Anna &lt;lawrence_danna@apple.com&gt;

* Add support for macOS 11 and Apple Silicon (aka arm64)
   
  As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy

* Support building on recent versions of macOS while deploying to older versions

  This allows building installers on macOS 11 while still supporting macOS 10.9.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by:  Lawrence D’Anna &lt;lawrence_danna@apple.com&gt;

* Add support for macOS 11 and Apple Silicon (aka arm64)
   
  As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy

* Support building on recent versions of macOS while deploying to older versions

  This allows building installers on macOS 11 while still supporting macOS 10.9.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)</title>
<updated>2020-05-18T16:22:53+00:00</updated>
<author>
<name>Minmin Gong</name>
<email>gongminmin@msn.com</email>
</author>
<published>2020-05-18T16:22:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f660567937277cc3a2cd53af77bbb18e905427e8'/>
<id>f660567937277cc3a2cd53af77bbb18e905427e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release mode. (GH-16329)</title>
<updated>2020-03-09T18:49:52+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-03-09T18:49:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=eebaa9bfc593d5a46b293c1abd929fbfbfd28199'/>
<id>eebaa9bfc593d5a46b293c1abd929fbfbfd28199</id>
<content type='text'>
Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39502: Fix 64-bit Python PyTime_localtime() on AIX  (GH-18285)</title>
<updated>2020-02-07T17:56:16+00:00</updated>
<author>
<name>Michael Felt</name>
<email>aixtools@users.noreply.github.com</email>
</author>
<published>2020-02-07T17:56:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=de6f38db4859f7b8fe4da4556f06c52675fff24a'/>
<id>de6f38db4859f7b8fe4da4556f06c52675fff24a</id>
<content type='text'>
Fix time.localtime() on 64-bit AIX to support years before 1902 and after 2038.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix time.localtime() on 64-bit AIX to support years before 1902 and after 2038.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38068: Clean up gettimeofday configure logic. (GH-15775)</title>
<updated>2019-09-10T10:37:59+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2019-09-10T10:37:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f1c19031fd5f4cf6faad539e30796b42954527db'/>
<id>f1c19031fd5f4cf6faad539e30796b42954527db</id>
<content type='text'>
Assume gettimeofday exists and takes two arguments.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assume gettimeofday exists and takes two arguments.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34373: Fix time.mktime() on AIX (GH-12726)</title>
<updated>2019-04-09T17:12:26+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-04-09T17:12:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8709490f48fc27b3dd1a16acb33bea2299c6a575'/>
<id>8709490f48fc27b3dd1a16acb33bea2299c6a575</id>
<content type='text'>
Fix time.mktime() error handling on AIX for year before 1970.

Other changes:

* mktime(): rename variable 'buf' to 'tm'.
* _PyTime_localtime():

  * Use "localtime" rather than "ctime" in the error message
    (specific to AIX).
  * Always initialize errno to 0 just in case if localtime_r()
    doesn't set errno on error.
  * On AIX, avoid abs() which is limited to int type.
  * EINVAL constant is now always available.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix time.mktime() error handling on AIX for year before 1970.

Other changes:

* mktime(): rename variable 'buf' to 'tm'.
* _PyTime_localtime():

  * Use "localtime" rather than "ctime" in the error message
    (specific to AIX).
  * Always initialize errno to 0 just in case if localtime_r()
    doesn't set errno on error.
  * On AIX, avoid abs() which is limited to int type.
  * EINVAL constant is now always available.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726)</title>
<updated>2018-12-28T13:57:37+00:00</updated>
<author>
<name>Michael Felt</name>
<email>aixtools@users.noreply.github.com</email>
</author>
<published>2018-12-28T13:57:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e2926b72488596f59e43c27f3b7cedf0c5b9e88e'/>
<id>e2926b72488596f59e43c27f3b7cedf0c5b9e88e</id>
<content type='text'>
* Fix test_mktime on AIX by adding code to get mktime to behave the
  same way as it does on other *nix systems
* Fix test_pthread_getcpuclickid in AIX by adjusting the test case
  expectations when running on AIX in 32-bit mode

Patch by Michael Felt.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix test_mktime on AIX by adding code to get mktime to behave the
  same way as it does on other *nix systems
* Fix test_pthread_getcpuclickid in AIX by adjusting the test case
  expectations when running on AIX in 32-bit mode

Patch by Michael Felt.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix miscellaneous typos (#4275)</title>
<updated>2017-11-05T13:37:50+00:00</updated>
<author>
<name>luzpaz</name>
<email>luzpaz@users.noreply.github.com</email>
</author>
<published>2017-11-05T13:37:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a5293b4ff2c1b5446947b4986f98ecf5d52432d4'/>
<id>a5293b4ff2c1b5446947b4986f98ecf5d52432d4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
