mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00

``` $ v3/bin/python -VV Python 3.14.0 free-threading build (main, Oct 7 2025, 15:35:12) [Clang 20.1.4 ] $ v3/bin/python -c 'import sys,msgpack; print(sys._is_gil_enabled())' False ```
12 lines
374 B
Cython
12 lines
374 B
Cython
#cython: embedsignature=True, c_string_encoding=ascii, language_level=3
|
|
#cython: freethreading_compatible = True
|
|
import cython
|
|
from cpython.datetime cimport import_datetime, datetime_new
|
|
import_datetime()
|
|
|
|
import datetime
|
|
cdef object utc = datetime.timezone.utc
|
|
cdef object epoch = datetime_new(1970, 1, 1, 0, 0, 0, 0, tz=utc)
|
|
|
|
include "_packer.pyx"
|
|
include "_unpacker.pyx"
|