Cython 3.3.0__cp315-cp315-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. Cython/Build/BuildExecutable.py +156 -0
  2. Cython/Build/Cache.py +199 -0
  3. Cython/Build/Cythonize.py +349 -0
  4. Cython/Build/Dependencies.py +1281 -0
  5. Cython/Build/Distutils.py +1 -0
  6. Cython/Build/Inline.py +467 -0
  7. Cython/Build/IpythonMagic.py +559 -0
  8. Cython/Build/SharedModule.py +165 -0
  9. Cython/Build/Tests/TestCyCache.py +195 -0
  10. Cython/Build/Tests/TestCythonizeArgsParser.py +480 -0
  11. Cython/Build/Tests/TestDependencies.py +133 -0
  12. Cython/Build/Tests/TestInline.py +177 -0
  13. Cython/Build/Tests/TestIpythonMagic.py +303 -0
  14. Cython/Build/Tests/TestRecythonize.py +212 -0
  15. Cython/Build/Tests/TestStripLiterals.py +155 -0
  16. Cython/Build/Tests/__init__.py +1 -0
  17. Cython/Build/__init__.py +11 -0
  18. Cython/CodeWriter.py +825 -0
  19. Cython/Compiler/AnalysedTreeTransforms.py +97 -0
  20. Cython/Compiler/Annotate.py +328 -0
  21. Cython/Compiler/AutoDocTransforms.py +320 -0
  22. Cython/Compiler/Buffer.py +679 -0
  23. Cython/Compiler/Builtin.py +1102 -0
  24. Cython/Compiler/CmdLine.py +373 -0
  25. Cython/Compiler/Code.cp315-win_amd64.pyd +0 -0
  26. Cython/Compiler/Code.pxd +154 -0
  27. Cython/Compiler/Code.py +3760 -0
  28. Cython/Compiler/CodeGeneration.py +33 -0
  29. Cython/Compiler/CythonScope.py +208 -0
  30. Cython/Compiler/Dataclass.py +890 -0
  31. Cython/Compiler/DebugFlags.py +24 -0
  32. Cython/Compiler/Errors.py +310 -0
  33. Cython/Compiler/ExprNodes.py +16273 -0
  34. Cython/Compiler/FlowControl.cp315-win_amd64.pyd +0 -0
  35. Cython/Compiler/FlowControl.pxd +112 -0
  36. Cython/Compiler/FlowControl.py +1573 -0
  37. Cython/Compiler/FusedNode.cp315-win_amd64.pyd +0 -0
  38. Cython/Compiler/FusedNode.py +978 -0
  39. Cython/Compiler/Future.py +16 -0
  40. Cython/Compiler/Interpreter.py +57 -0
  41. Cython/Compiler/Lexicon.py +422 -0
  42. Cython/Compiler/LineTable.cp315-win_amd64.pyd +0 -0
  43. Cython/Compiler/LineTable.py +114 -0
  44. Cython/Compiler/Main.py +856 -0
  45. Cython/Compiler/MatchCaseNodes.py +2200 -0
  46. Cython/Compiler/MemoryView.py +930 -0
  47. Cython/Compiler/ModuleNode.py +4548 -0
  48. Cython/Compiler/Naming.py +370 -0
  49. Cython/Compiler/Nodes.py +11304 -0
  50. Cython/Compiler/Optimize.py +5564 -0
  51. Cython/Compiler/Options.py +840 -0
  52. Cython/Compiler/ParseTreeTransforms.pxd +80 -0
  53. Cython/Compiler/ParseTreeTransforms.py +4808 -0
  54. Cython/Compiler/Parsing.cp315-win_amd64.pyd +0 -0
  55. Cython/Compiler/Parsing.pxd +9 -0
  56. Cython/Compiler/Parsing.py +4809 -0
  57. Cython/Compiler/Pipeline.py +439 -0
  58. Cython/Compiler/PyrexTypes.py +6588 -0
  59. Cython/Compiler/Pythran.py +232 -0
  60. Cython/Compiler/Scanning.cp315-win_amd64.pyd +0 -0
  61. Cython/Compiler/Scanning.pxd +70 -0
  62. Cython/Compiler/Scanning.py +720 -0
  63. Cython/Compiler/StringEncoding.cp315-win_amd64.pyd +0 -0
  64. Cython/Compiler/StringEncoding.py +354 -0
  65. Cython/Compiler/Symtab.py +3121 -0
  66. Cython/Compiler/Tests/TestBuffer.py +105 -0
  67. Cython/Compiler/Tests/TestBuiltin.py +196 -0
  68. Cython/Compiler/Tests/TestCmdLine.py +652 -0
  69. Cython/Compiler/Tests/TestCode.py +145 -0
  70. Cython/Compiler/Tests/TestFlowControl.py +65 -0
  71. Cython/Compiler/Tests/TestGrammar.py +202 -0
  72. Cython/Compiler/Tests/TestMemView.py +71 -0
  73. Cython/Compiler/Tests/TestParseTreeTransforms.py +285 -0
  74. Cython/Compiler/Tests/TestScanning.py +132 -0
  75. Cython/Compiler/Tests/TestSignatureMatching.py +73 -0
  76. Cython/Compiler/Tests/TestStringEncoding.py +20 -0
  77. Cython/Compiler/Tests/TestTreeFragment.py +63 -0
  78. Cython/Compiler/Tests/TestTreePath.py +103 -0
  79. Cython/Compiler/Tests/TestTypes.py +119 -0
  80. Cython/Compiler/Tests/TestUtilityLoad.py +112 -0
  81. Cython/Compiler/Tests/TestVisitor.py +119 -0
  82. Cython/Compiler/Tests/Utils.py +36 -0
  83. Cython/Compiler/Tests/__init__.py +1 -0
  84. Cython/Compiler/TreeFragment.py +279 -0
  85. Cython/Compiler/TreePath.py +303 -0
  86. Cython/Compiler/TypeInference.py +611 -0
  87. Cython/Compiler/TypeSlots.py +1329 -0
  88. Cython/Compiler/UFuncs.py +317 -0
  89. Cython/Compiler/UtilNodes.py +389 -0
  90. Cython/Compiler/UtilityCode.py +354 -0
  91. Cython/Compiler/Version.py +8 -0
  92. Cython/Compiler/Visitor.cp315-win_amd64.pyd +0 -0
  93. Cython/Compiler/Visitor.pxd +52 -0
  94. Cython/Compiler/Visitor.py +914 -0
  95. Cython/Compiler/__init__.py +1 -0
  96. Cython/Coverage.py +448 -0
  97. Cython/Debugger/Cygdb.py +214 -0
  98. Cython/Debugger/DebugWriter.py +82 -0
  99. Cython/Debugger/Tests/TestLibCython.py +280 -0
  100. Cython/Debugger/Tests/__init__.py +1 -0
  101. Cython/Debugger/Tests/cfuncs.c +8 -0
  102. Cython/Debugger/Tests/codefile +49 -0
  103. Cython/Debugger/Tests/test_libcython_in_gdb.py +580 -0
  104. Cython/Debugger/Tests/test_libpython_in_gdb.py +90 -0
  105. Cython/Debugger/__init__.py +1 -0
  106. Cython/Debugger/libcython.py +1548 -0
  107. Cython/Debugger/libpython.py +2821 -0
  108. Cython/Debugging.py +20 -0
  109. Cython/Distutils/__init__.py +2 -0
  110. Cython/Distutils/build_ext.py +143 -0
  111. Cython/Distutils/extension.py +96 -0
  112. Cython/Distutils/old_build_ext.py +351 -0
  113. Cython/Includes/cpython/__init__.pxd +173 -0
  114. Cython/Includes/cpython/array.pxd +152 -0
  115. Cython/Includes/cpython/bool.pxd +37 -0
  116. Cython/Includes/cpython/buffer.pxd +112 -0
  117. Cython/Includes/cpython/bytearray.pxd +33 -0
  118. Cython/Includes/cpython/bytes.pxd +200 -0
  119. Cython/Includes/cpython/cellobject.pxd +35 -0
  120. Cython/Includes/cpython/ceval.pxd +8 -0
  121. Cython/Includes/cpython/codecs.pxd +121 -0
  122. Cython/Includes/cpython/complex.pxd +60 -0
  123. Cython/Includes/cpython/contextvars.pxd +145 -0
  124. Cython/Includes/cpython/conversion.pxd +36 -0
  125. Cython/Includes/cpython/datetime.pxd +395 -0
  126. Cython/Includes/cpython/descr.pxd +26 -0
  127. Cython/Includes/cpython/dict.pxd +268 -0
  128. Cython/Includes/cpython/exc.pxd +263 -0
  129. Cython/Includes/cpython/fileobject.pxd +57 -0
  130. Cython/Includes/cpython/float.pxd +56 -0
  131. Cython/Includes/cpython/frozendict.pxd +37 -0
  132. Cython/Includes/cpython/function.pxd +65 -0
  133. Cython/Includes/cpython/genobject.pxd +25 -0
  134. Cython/Includes/cpython/getargs.pxd +12 -0
  135. Cython/Includes/cpython/instance.pxd +25 -0
  136. Cython/Includes/cpython/iterator.pxd +36 -0
  137. Cython/Includes/cpython/iterobject.pxd +24 -0
  138. Cython/Includes/cpython/list.pxd +144 -0
  139. Cython/Includes/cpython/long.pxd +180 -0
  140. Cython/Includes/cpython/longintrepr.pxd +14 -0
  141. Cython/Includes/cpython/mapping.pxd +63 -0
  142. Cython/Includes/cpython/marshal.pxd +66 -0
  143. Cython/Includes/cpython/mem.pxd +120 -0
  144. Cython/Includes/cpython/memoryview.pxd +50 -0
  145. Cython/Includes/cpython/method.pxd +49 -0
  146. Cython/Includes/cpython/module.pxd +208 -0
  147. Cython/Includes/cpython/number.pxd +258 -0
  148. Cython/Includes/cpython/object.pxd +430 -0
  149. Cython/Includes/cpython/pycapsule.pxd +143 -0
  150. Cython/Includes/cpython/pylifecycle.pxd +68 -0
  151. Cython/Includes/cpython/pyport.pxd +8 -0
  152. Cython/Includes/cpython/pystate.pxd +95 -0
  153. Cython/Includes/cpython/pythread.pxd +53 -0
  154. Cython/Includes/cpython/ref.pxd +141 -0
  155. Cython/Includes/cpython/sentinel.pxd +17 -0
  156. Cython/Includes/cpython/sequence.pxd +134 -0
  157. Cython/Includes/cpython/set.pxd +119 -0
  158. Cython/Includes/cpython/slice.pxd +70 -0
  159. Cython/Includes/cpython/time.pxd +129 -0
  160. Cython/Includes/cpython/tuple.pxd +72 -0
  161. Cython/Includes/cpython/type.pxd +146 -0
  162. Cython/Includes/cpython/unicode.pxd +639 -0
  163. Cython/Includes/cpython/version.pxd +32 -0
  164. Cython/Includes/cpython/weakref.pxd +78 -0
  165. Cython/Includes/libc/__init__.pxd +1 -0
  166. Cython/Includes/libc/complex.pxd +35 -0
  167. Cython/Includes/libc/errno.pxd +127 -0
  168. Cython/Includes/libc/float.pxd +43 -0
  169. Cython/Includes/libc/limits.pxd +28 -0
  170. Cython/Includes/libc/locale.pxd +46 -0
  171. Cython/Includes/libc/math.pxd +209 -0
  172. Cython/Includes/libc/setjmp.pxd +10 -0
  173. Cython/Includes/libc/signal.pxd +64 -0
  174. Cython/Includes/libc/stddef.pxd +9 -0
  175. Cython/Includes/libc/stdint.pxd +105 -0
  176. Cython/Includes/libc/stdio.pxd +80 -0
  177. Cython/Includes/libc/stdlib.pxd +72 -0
  178. Cython/Includes/libc/string.pxd +50 -0
  179. Cython/Includes/libc/threads.pxd +234 -0
  180. Cython/Includes/libc/time.pxd +52 -0
  181. Cython/Includes/libcpp/__init__.pxd +4 -0
  182. Cython/Includes/libcpp/algorithm.pxd +320 -0
  183. Cython/Includes/libcpp/any.pxd +16 -0
  184. Cython/Includes/libcpp/atomic.pxd +59 -0
  185. Cython/Includes/libcpp/barrier.pxd +22 -0
  186. Cython/Includes/libcpp/bit.pxd +29 -0
  187. Cython/Includes/libcpp/cast.pxd +12 -0
  188. Cython/Includes/libcpp/cmath.pxd +518 -0
  189. Cython/Includes/libcpp/complex.pxd +106 -0
  190. Cython/Includes/libcpp/condition_variable.pxd +322 -0
  191. Cython/Includes/libcpp/deque.pxd +165 -0
  192. Cython/Includes/libcpp/exception.pxd +216 -0
  193. Cython/Includes/libcpp/execution.pxd +15 -0
  194. Cython/Includes/libcpp/forward_list.pxd +63 -0
  195. Cython/Includes/libcpp/functional.pxd +26 -0
  196. Cython/Includes/libcpp/future.pxd +103 -0
  197. Cython/Includes/libcpp/iterator.pxd +34 -0
  198. Cython/Includes/libcpp/latch.pxd +17 -0
  199. Cython/Includes/libcpp/limits.pxd +61 -0
  200. Cython/Includes/libcpp/list.pxd +117 -0
  201. Cython/Includes/libcpp/map.pxd +252 -0
  202. Cython/Includes/libcpp/memory.pxd +115 -0
  203. Cython/Includes/libcpp/mutex.pxd +387 -0
  204. Cython/Includes/libcpp/numbers.pxd +15 -0
  205. Cython/Includes/libcpp/numeric.pxd +131 -0
  206. Cython/Includes/libcpp/optional.pxd +34 -0
  207. Cython/Includes/libcpp/pair.pxd +1 -0
  208. Cython/Includes/libcpp/queue.pxd +25 -0
  209. Cython/Includes/libcpp/random.pxd +166 -0
  210. Cython/Includes/libcpp/semaphore.pxd +43 -0
  211. Cython/Includes/libcpp/set.pxd +228 -0
  212. Cython/Includes/libcpp/shared_mutex.pxd +96 -0
  213. Cython/Includes/libcpp/span.pxd +87 -0
  214. Cython/Includes/libcpp/stack.pxd +11 -0
  215. Cython/Includes/libcpp/stop_token.pxd +117 -0
  216. Cython/Includes/libcpp/string.pxd +355 -0
  217. Cython/Includes/libcpp/string_view.pxd +183 -0
  218. Cython/Includes/libcpp/typeindex.pxd +15 -0
  219. Cython/Includes/libcpp/typeinfo.pxd +10 -0
  220. Cython/Includes/libcpp/unordered_map.pxd +193 -0
  221. Cython/Includes/libcpp/unordered_set.pxd +152 -0
  222. Cython/Includes/libcpp/utility.pxd +30 -0
  223. Cython/Includes/libcpp/vector.pxd +186 -0
  224. Cython/Includes/numpy/math.pxd +150 -0
  225. Cython/Includes/openmp.pxd +50 -0
  226. Cython/Includes/posix/__init__.pxd +1 -0
  227. Cython/Includes/posix/dlfcn.pxd +14 -0
  228. Cython/Includes/posix/fcntl.pxd +86 -0
  229. Cython/Includes/posix/ioctl.pxd +4 -0
  230. Cython/Includes/posix/mman.pxd +101 -0
  231. Cython/Includes/posix/resource.pxd +57 -0
  232. Cython/Includes/posix/select.pxd +21 -0
  233. Cython/Includes/posix/signal.pxd +73 -0
  234. Cython/Includes/posix/stat.pxd +98 -0
  235. Cython/Includes/posix/stdio.pxd +37 -0
  236. Cython/Includes/posix/stdlib.pxd +29 -0
  237. Cython/Includes/posix/strings.pxd +9 -0
  238. Cython/Includes/posix/time.pxd +71 -0
  239. Cython/Includes/posix/types.pxd +30 -0
  240. Cython/Includes/posix/uio.pxd +26 -0
  241. Cython/Includes/posix/unistd.pxd +271 -0
  242. Cython/Includes/posix/wait.pxd +38 -0
  243. Cython/LZSS.cp315-win_amd64.pyd +0 -0
  244. Cython/LZSS.py +184 -0
  245. Cython/Plex/Actions.cp315-win_amd64.pyd +0 -0
  246. Cython/Plex/Actions.pxd +24 -0
  247. Cython/Plex/Actions.py +119 -0
  248. Cython/Plex/DFA.cp315-win_amd64.pyd +0 -0
  249. Cython/Plex/DFA.pxd +14 -0
  250. Cython/Plex/DFA.py +164 -0
  251. Cython/Plex/Errors.py +48 -0
  252. Cython/Plex/Lexicons.py +178 -0
  253. Cython/Plex/Machines.cp315-win_amd64.pyd +0 -0
  254. Cython/Plex/Machines.pxd +36 -0
  255. Cython/Plex/Machines.py +238 -0
  256. Cython/Plex/Regexps.py +535 -0
  257. Cython/Plex/Scanners.cp315-win_amd64.pyd +0 -0
  258. Cython/Plex/Scanners.pxd +45 -0
  259. Cython/Plex/Scanners.py +328 -0
  260. Cython/Plex/Transitions.cp315-win_amd64.pyd +0 -0
  261. Cython/Plex/Transitions.pxd +14 -0
  262. Cython/Plex/Transitions.py +239 -0
  263. Cython/Plex/__init__.py +34 -0
  264. Cython/Runtime/__init__.py +1 -0
  265. Cython/Runtime/refnanny.cp315-win_amd64.pyd +0 -0
  266. Cython/Runtime/refnanny.pyx +237 -0
  267. Cython/Shadow.py +1174 -0
  268. Cython/StringIOTree.cp315-win_amd64.pyd +0 -0
  269. Cython/StringIOTree.py +169 -0
  270. Cython/Tempita/__init__.py +4 -0
  271. Cython/Tempita/_looper.py +154 -0
  272. Cython/Tempita/_tempita.cp315-win_amd64.pyd +0 -0
  273. Cython/Tempita/_tempita.py +1087 -0
  274. Cython/TestUtils.py +472 -0
  275. Cython/Tests/TestCodeWriter.py +128 -0
  276. Cython/Tests/TestCythonUtils.py +202 -0
  277. Cython/Tests/TestJediTyper.py +223 -0
  278. Cython/Tests/TestShadow.py +125 -0
  279. Cython/Tests/TestStringIOTree.py +68 -0
  280. Cython/Tests/TestTestUtils.py +89 -0
  281. Cython/Tests/__init__.py +1 -0
  282. Cython/Tests/xmlrunner.py +390 -0
  283. Cython/Utility/AsyncGen.c +1152 -0
  284. Cython/Utility/Buffer.c +866 -0
  285. Cython/Utility/BufferFormatFromTypeInfo.pxd +2 -0
  286. Cython/Utility/Builtins.c +1068 -0
  287. Cython/Utility/CConvert.pyx +153 -0
  288. Cython/Utility/CMath.c +104 -0
  289. Cython/Utility/CommonStructures.c +244 -0
  290. Cython/Utility/Complex.c +378 -0
  291. Cython/Utility/Coroutine.c +2344 -0
  292. Cython/Utility/CpdefEnums.pyx +119 -0
  293. Cython/Utility/CppConvert.pyx +282 -0
  294. Cython/Utility/CppSupport.cpp +151 -0
  295. Cython/Utility/CythonFunction.c +2185 -0
  296. Cython/Utility/Dataclasses.c +101 -0
  297. Cython/Utility/Embed.c +129 -0
  298. Cython/Utility/Exceptions.c +1331 -0
  299. Cython/Utility/Exceptions_Cy.pyx +109 -0
  300. Cython/Utility/ExtensionTypes.c +1199 -0
  301. Cython/Utility/FunctionArguments.c +1052 -0
  302. Cython/Utility/FusedFunction.pyx +44 -0
  303. Cython/Utility/ImportExport.c +972 -0
  304. Cython/Utility/MatchCase.c +981 -0
  305. Cython/Utility/MatchCase_Cy.pyx +12 -0
  306. Cython/Utility/MemoryView.pxd +108 -0
  307. Cython/Utility/MemoryView.pyx +1499 -0
  308. Cython/Utility/MemoryView_C.c +1056 -0
  309. Cython/Utility/ModuleSetupCode.c +3319 -0
  310. Cython/Utility/NumpyImportArray.c +46 -0
  311. Cython/Utility/ObjectHandling.c +3404 -0
  312. Cython/Utility/Optimize.c +2564 -0
  313. Cython/Utility/Overflow.c +378 -0
  314. Cython/Utility/Profile.c +736 -0
  315. Cython/Utility/StringTools.c +1534 -0
  316. Cython/Utility/Synchronization.c +438 -0
  317. Cython/Utility/TString.c +369 -0
  318. Cython/Utility/TestCyUtilityLoader.pyx +8 -0
  319. Cython/Utility/TestCythonScope.pyx +75 -0
  320. Cython/Utility/TestUtilityLoader.c +12 -0
  321. Cython/Utility/TypeConversion.c +1588 -0
  322. Cython/Utility/UFuncs.pyx +50 -0
  323. Cython/Utility/UFuncs_C.c +89 -0
  324. Cython/Utility/__init__.py +28 -0
  325. Cython/Utility/arrayarray.h +172 -0
  326. Cython/Utils.cp315-win_amd64.pyd +0 -0
  327. Cython/Utils.py +680 -0
  328. Cython/__init__.py +12 -0
  329. Cython/_shared.cp315-win_amd64.pyd +0 -0
  330. Cython/py.typed +0 -0
  331. cython-3.3.0.dist-info/METADATA +555 -0
  332. cython-3.3.0.dist-info/RECORD +339 -0
  333. cython-3.3.0.dist-info/WHEEL +5 -0
  334. cython-3.3.0.dist-info/entry_points.txt +4 -0
  335. cython-3.3.0.dist-info/top_level.txt +3 -0
  336. cython.py +29 -0
  337. pyximport/__init__.py +4 -0
  338. pyximport/pyxbuild.py +160 -0
  339. pyximport/pyximport.py +482 -0
@@ -0,0 +1,555 @@
1
+ Metadata-Version: 2.4
2
+ Name: Cython
3
+ Version: 3.3.0
4
+ Summary: The Cython compiler for writing C extensions in the Python language.
5
+ Home-page: https://cython.org/
6
+ Author: Robert Bradshaw, Stefan Behnel, David Woods, Greg Ewing, et al.
7
+ Author-email: cython-devel@python.org
8
+ License: Apache-2.0
9
+ Project-URL: Documentation, https://cython.readthedocs.io/
10
+ Project-URL: Donate, https://cython.readthedocs.io/en/latest/src/donating.html
11
+ Project-URL: Source Code, https://github.com/cython/cython
12
+ Project-URL: Bug Tracker, https://github.com/cython/cython/issues/
13
+ Project-URL: User Group, https://groups.google.com/g/cython-users
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Programming Language :: Python :: Implementation :: CPython
26
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
27
+ Classifier: Programming Language :: C
28
+ Classifier: Programming Language :: C++
29
+ Classifier: Programming Language :: Cython
30
+ Classifier: Topic :: Software Development :: Code Generators
31
+ Classifier: Topic :: Software Development :: Compilers
32
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
+ Classifier: Typing :: Typed
34
+ Requires-Python: >=3.9
35
+ Description-Content-Type: text/x-rst
36
+ Dynamic: author
37
+ Dynamic: author-email
38
+ Dynamic: classifier
39
+ Dynamic: description
40
+ Dynamic: description-content-type
41
+ Dynamic: home-page
42
+ Dynamic: license
43
+ Dynamic: project-url
44
+ Dynamic: requires-python
45
+ Dynamic: summary
46
+
47
+ The Cython language makes writing C extensions for the Python language as
48
+ easy as Python itself. Cython is a source code translator based on Pyrex_,
49
+ but supports more cutting edge functionality and optimizations.
50
+
51
+ The Cython language is a superset of the Python language (almost all Python
52
+ code is also valid Cython code), but Cython additionally supports optional
53
+ static typing to natively call C functions, operate with C++ classes and
54
+ declare fast C types on variables and class attributes. This allows the
55
+ compiler to generate very efficient C code from Cython code.
56
+
57
+ This makes Cython the ideal language for writing glue code for external
58
+ C/C++ libraries, and for fast C modules that speed up the execution of
59
+ Python code.
60
+
61
+ The newest Cython release can always be downloaded from https://cython.org/.
62
+ Unpack the tarball or zip file, enter the directory, and then run::
63
+
64
+ pip install .
65
+
66
+ Note that for one-time builds, e.g. for CI/testing, on platforms that are not
67
+ covered by one of the wheel packages provided on PyPI *and* the pure Python wheel
68
+ that we provide is not used, it is substantially faster than a full source build
69
+ to install an uncompiled (slower) version of Cython with::
70
+
71
+ NO_CYTHON_COMPILE=true pip install .
72
+
73
+ .. _Pyrex: https://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
74
+
75
+ 3.3.0 (2026-08-22)
76
+ ==================
77
+
78
+ Features added
79
+ --------------
80
+
81
+ * PEP-634 Pattern Matching is implemented.
82
+ (Github issue https://github.com/cython/cython/issues/4029)
83
+
84
+ * ``except *`` (PEP-654 exception groups) is implemented for Python 3.11 and later.
85
+ (Github issue https://github.com/cython/cython/issues/4993)
86
+
87
+ * Unpacking in comprehensions (PEP-798) is implemented for list/set/dict comprehensions.
88
+ It is not yet available for generator expressions.
89
+ Original patch by Morax. (Github issue https://github.com/cython/cython/issues/7898)
90
+
91
+ * Changes were made to adapt to Python 3.15 and its Limited API.
92
+ This does not yet cover ``abi3t``.
93
+ (Github issues https://github.com/cython/cython/issues/6405, https://github.com/cython/cython/issues/7190, https://github.com/cython/cython/issues/7347, https://github.com/cython/cython/issues/7348, https://github.com/cython/cython/issues/7358)
94
+
95
+ * Cython now uses a new export/import naming scheme for fused C functions that
96
+ increases the resilience against seemingly compatible user code changes.
97
+ The original names are kept for backwards compatibility.
98
+ (Github issue https://github.com/cython/cython/issues/7656)
99
+
100
+ * Declared container item types (e.g. ``list[float]`` or ``tuple[atype, ...]``)
101
+ are now used by the type system.
102
+ (Github issues https://github.com/cython/cython/issues/7288, https://github.com/cython/cython/issues/7798)
103
+
104
+ * Type inference was improved for builtin Python types and their methods.
105
+ (Github issues https://github.com/cython/cython/issues/7536, https://github.com/cython/cython/issues/7644, https://github.com/cython/cython/issues/7887, https://github.com/cython/cython/issues/7888)
106
+
107
+ * Exception base types are inferred for the target variable of multi-exception ``except``
108
+ clauses and for collections of exceptions. Properties like ``.args`` and ``.context``
109
+ use direct C access in CPython.
110
+ (Github issue https://github.com/cython/cython/issues/7783)
111
+
112
+ * Annotations on global variables are now used by type inference.
113
+ (Github issue https://github.com/cython/cython/issues/7877)
114
+
115
+ * The feature set of the shared module can be selected at build time
116
+ by listing named features to include or exclude.
117
+ This is an experimental configuration, subject to further improvements.
118
+ Failures to include used features will currently result in import failures.
119
+ (Github issue https://github.com/cython/cython/issues/7759)
120
+
121
+ * To control the generation of the shared module, the ``cython`` command gained
122
+ a sub-command ``cython generate-shared pkg/modulename.c`` with additional options
123
+ ``--only`` and ``--exclude``.
124
+ Patch by Raza Khan. (Github issue https://github.com/cython/cython/issues/7842)
125
+
126
+ * Conditions in strongly predictable if-clauses or if-else expressions can be wrapped in
127
+ ``cython.likely(condition)`` or ``cython.unlikely(condition)`` to help the C compiler
128
+ optimise the branch. Note that Cython automatically detects ``raise`` and ``assert``
129
+ statements as terminators already and marks if-clauses that directly lead to them as
130
+ ``unlikely()``, without user interaction.
131
+ (Github issue https://github.com/cython/cython/issues/7667)
132
+
133
+ * Extension types can declare themselves explicitly as sequence or mapping with
134
+ ``@cython.collection_type("sequence")`` or ``@cython.collection_type("mapping")``.
135
+ This has an effect on their behaviour in pattern matching and subscripting.
136
+ (Github issue https://github.com/cython/cython/issues/5027)
137
+
138
+ * Sequence types marked as ``@cython.collection_type("sequence")`` that use C integers
139
+ in the subscript special methods now implement only the sequence and not the mapping protocol.
140
+ This allows subscripting code to avoid creating Python index objects when the index
141
+ is already available as C integer.
142
+ (Github issue https://github.com/cython/cython/issues/7435)
143
+
144
+ * Sequence types that have their ``Py_TPFLAGS_SEQUENCE`` type flag set can benefit from
145
+ faster subscripting via the sequence protocol as Cython now bypasses the mapping protocol
146
+ for them if both protocols are implemented.
147
+ (Github issue https://github.com/cython/cython/issues/7432)
148
+
149
+ * The Py3.15 ``frozendict`` builtin type is supported and has been backported as an alias
150
+ for ``dict`` in older Python versions.
151
+ Patches to adapt existing ``dict`` optimisations were contributed by Omkar Kabde.
152
+ (Github issues https://github.com/cython/cython/issues/7545, https://github.com/cython/cython/issues/7647)
153
+
154
+ * The Py3.15 ``sentinel`` builtin is supported and its C-API declarations are available in
155
+ ``cpython.sentinel``.
156
+
157
+ * ``cython.py_int`` (and the same for ``py_float``, ``py_complex`` and ``py_bool``)
158
+ can be used to refer to Python's builtin types in a C type context, e.g. after ``cdef``,
159
+ where they are normally shadowed by the C types of the same name.
160
+ (Github issue https://github.com/cython/cython/issues/7844)
161
+
162
+ * The builtin Python types ``int``, ``float``, ``str``, ``bytes`` and ``bytearray``
163
+ are special cased in comparisons to speed them up.
164
+ (Github issues https://github.com/cython/cython/issues/7452, https://github.com/cython/cython/issues/7474)
165
+
166
+ * The builtin Python types ``int`` and ``float`` are special cased in ``+``, ``-`` and ``*``
167
+ operations with (compile-time) unknown Python types in order to speed them up.
168
+ The bit operations ``^``, ``|`` and ``&`` are additionally special cased for ``int``.
169
+ (Github issues https://github.com/cython/cython/issues/7485, https://github.com/cython/cython/issues/7541)
170
+
171
+ * ``<bool>`` casts can be used to convert C values to Python ``True`` / ``False``.
172
+ (Github issue https://github.com/cython/cython/issues/7513)
173
+
174
+ * ``cdef`` property methods support setters.
175
+ (Github issues https://github.com/cython/cython/issues/7505, https://github.com/cython/cython/issues/7791)
176
+
177
+ * The C ``restrict`` modifier can be used in declarations.
178
+ (Github issue https://github.com/cython/cython/issues/7617)
179
+
180
+ * C arrays may now be declared with (``extern`` or internal) enum values as their size.
181
+ (Github issues https://github.com/cython/cython/issues/7401, https://github.com/cython/cython/issues/7406)
182
+
183
+ * ``prange(num_threads=0)`` automatically selects the maximum number of OpenMP threads.
184
+ (Github issue https://github.com/cython/cython/issues/7586)
185
+
186
+ * ``prange()`` and ``parallel()`` sections can be used without releasing the GIL, which
187
+ helps in freethreading builds. When releasing the GIL as part of the section declaration,
188
+ re-acquiring it immediately inside is now faster, e.g. to do per-thread Python initialisations.
189
+ (Github issue https://github.com/cython/cython/issues/6562)
190
+
191
+ * ``cython.pymutex`` and ``cython.pythread_type_lock`` now support a ``.locked()`` method
192
+ to check if the lock is currently held without blocking. The method works on all Python
193
+ versions using atomic reads on Python 3.13+ and a try-acquire approach on older versions.
194
+ (Github issue https://github.com/cython/cython/issues/7275)
195
+
196
+ * A simpler mechanism was added for implementing C++ exception handlers in Cython code.
197
+ (Github issues https://github.com/cython/cython/issues/7388, https://github.com/cython/cython/issues/7390)
198
+
199
+ * Repeated memoryview slicing inside of loops now avoids redundant reference counting,
200
+ making it substantially faster.
201
+ (Github issue https://github.com/cython/cython/issues/5507)
202
+
203
+ * Indexing into Cython memoryview objects from Python is faster.
204
+ (Github issue https://github.com/cython/cython/issues/7529)
205
+
206
+ * Some internal call overhead in the memoryview code was removed.
207
+ (Github issue https://github.com/cython/cython/issues/7609)
208
+
209
+ * Extension types use the vectorcall interface for their instantiation in many cases.
210
+ This can be configured with a new C feature macro ``CYTHON_VECTORCALL_TPNEW``.
211
+ (Github issue https://github.com/cython/cython/issues/7698)
212
+
213
+ * Coroutine methods use the faster vectorcall interface.
214
+ (Github issue https://github.com/cython/cython/issues/7678)
215
+
216
+ * Vectorcalls with literal keyword arguments use cached constant keyword name tuples.
217
+ (Github issue https://github.com/cython/cython/issues/7713)
218
+
219
+ * List comprehensions that generate new objects avoid refcounting overhead for appending.
220
+ (Github issue https://github.com/cython/cython/issues/7748)
221
+
222
+ * Method calls in older Limited API versions are slightly faster.
223
+ (Github issue https://github.com/cython/cython/issues/7707)
224
+
225
+ * Constant ``frozenset`` objects are deduplicated and cached at module init time
226
+ (similar to constant tuple and slice objects).
227
+ Original Patch by Zhenbo Li. (Github issue https://github.com/cython/cython/issues/2741)
228
+
229
+ * C arrays are substituted for sequence iteration in more cases, also inside of generators.
230
+ Ad-hoc C array storage on the stack and in closures was reworked along the way.
231
+ (Github issues https://github.com/cython/cython/issues/7323, https://github.com/cython/cython/issues/7339)
232
+
233
+ * Single character `in`-tests on ``str``, ``bytes`` and ``bytearray`` are optimised.
234
+ (Github issue https://github.com/cython/cython/issues/3888)
235
+
236
+ * Unicode string comparisons to single character literals are faster.
237
+ (Github issue https://github.com/cython/cython/issues/7418)
238
+
239
+ * F-strings are a little faster in some cases.
240
+ (Github issues https://github.com/cython/cython/issues/7495, https://github.com/cython/cython/issues/7526)
241
+
242
+ * Formatting C floating point values in f-strings avoids creating Python floats in some cases.
243
+ Patch by Vladimir Saraikin. (Github issue https://github.com/cython/cython/issues/7797)
244
+
245
+ * ``bytearray.extend(bytes)`` is faster.
246
+ (Github issue https://github.com/cython/cython/issues/7797)
247
+
248
+ * ``assert`` conditions are constant-folded.
249
+ (Github issue https://github.com/cython/cython/issues/7809)
250
+
251
+ * PyPy and GraalPython use the vectorcall protocol to enable faster Python calls in future releases.
252
+ (Github issue https://github.com/cython/cython/issues/7614)
253
+
254
+ * The runtime conversion from a Python mapping to a C struct/union uses less code.
255
+ (Github issue https://github.com/cython/cython/issues/7343)
256
+
257
+ * The error handling of memoryviews uses less code.
258
+ (Github issue https://github.com/cython/cython/issues/7525)
259
+
260
+ * The runtime dispatch code of fused types uses less code.
261
+ (Github issue https://github.com/cython/cython/issues/7501)
262
+
263
+ * More code is extracted to the shared utility code module.
264
+ (Github issues https://github.com/cython/cython/issues/7556, https://github.com/cython/cython/issues/7570)
265
+
266
+ * Async generator objects are slightly smaller.
267
+ (Github issue https://github.com/cython/cython/issues/7776)
268
+
269
+ * Cython compiled functions have a more efficient memory layout in the Limited API.
270
+ (Github issue https://github.com/cython/cython/issues/7519)
271
+
272
+ * Module string content is now compressed with LZSS by default, which reduces the footprint of the
273
+ decompressor code compared to the 3.2.x default ``zlib``. This also avoids a runtime dependency
274
+ on the ``zlib`` module since the tiny LZSS decompressor can be embedded in the module.
275
+ (Github issue https://github.com/cython/cython/issues/7577)
276
+
277
+ * The Py2 ``print`` statement is now implemented in Cython instead of C to make it
278
+ thread-safe and uses a vectorcall into Python.
279
+ (Github issue https://github.com/cython/cython/issues/7642)
280
+
281
+ * Several C++ exception declarations were added to ``libcpp.exceptions``.
282
+ (Github issue https://github.com/cython/cython/issues/7389)
283
+
284
+ * Missing Python type flag declarations were added to ``cpython.object``.
285
+ (Github issue https://github.com/cython/cython/issues/7441)
286
+
287
+ * Declarations for ``PyType_GetSlot()`` and the corresponding type slot IDs were added
288
+ to ``cpython.type``.
289
+
290
+ * Declarations for specialised byte-conversion functions were added to ``cpython.long`` and ``cpython.float``.
291
+ Patch by Valentin Valls. (Github issue https://github.com/cython/cython/issues/7738)
292
+
293
+ * Error detection when assigning to ``const`` variables was improved.
294
+ (Github issue https://github.com/cython/cython/issues/7359)
295
+
296
+ * Some cases of likely misuse of ``critical_section`` now generate warnings.
297
+ (Github issue https://github.com/cython/cython/issues/6766)
298
+
299
+ * Programmatic use of Cython has become easier by avoiding the need to manually set up
300
+ the error reporting.
301
+ (Github issue https://github.com/cython/cython/issues/7235)
302
+
303
+ * Autoscaling in ``cymeit`` is a little faster.
304
+
305
+ * ``TreeFragment.parse_from_strings()`` now supports full modules and ``.pxd`` files.
306
+ Patch by Itamar Turner-Trauring. (Github issue https://github.com/cython/cython/issues/7827)
307
+
308
+ * Unicode 17.0.0 is used to parse identifiers.
309
+
310
+ Bugs fixed
311
+ ----------
312
+
313
+ * Several issues with ``.close()`` or ``.throw()`` of Async generator asend/athrow
314
+ objects were resolved, following fixes in CPython.
315
+ (Github issue https://github.com/cython/cython/issues/7777)
316
+
317
+ * The ``__class__`` method cell misbehaved when used together with class decorators
318
+ and passed the decorated class (and thus an arbitrary object) into ``super()``
319
+ instead of the class object.
320
+ (Github issue https://github.com/cython/cython/issues/7721)
321
+
322
+ * A ``return value`` from within a ``prange()`` loop could silently return the
323
+ default value of the return type instead of the user provided value.
324
+ (Github issue https://github.com/cython/cython/issues/7587)
325
+
326
+ * Assigning a Python 3.14+ ``.__annotate__`` function to a Cython compiled function no
327
+ longer evaluates annotations eagerly.
328
+ (Github issue https://github.com/cython/cython/issues/7767)
329
+
330
+ * Generated Cython language features like properties, auto-pickle or dataclasses
331
+ now use a critical section (on the object itself) as guard for concurrent access.
332
+ (Github issue https://github.com/cython/cython/issues/6621)
333
+
334
+ * The star-import implementation needlessly rejected several names in internal use.
335
+ They are now allowed and become regular Python module attributes.
336
+ (Github issue https://github.com/cython/cython/issues/4931)
337
+
338
+ * Mixing function signature declarations in Python modules and their ``.pxd`` modules could fail.
339
+ (Github issues https://github.com/cython/cython/issues/5970, https://github.com/cython/cython/issues/4388)
340
+
341
+ * C array declarations with type and size could fail with an exception in pure Python code.
342
+ (Github issue https://github.com/cython/cython/issues/7372)
343
+
344
+ * A ``const`` modifier in C++ template type arguments could be mapped incorrectly.
345
+ (Github issue https://github.com/cython/cython/issues/6294)
346
+
347
+ * C++ ``typeid()`` failed to compile on more complex expressions.
348
+ (Github issue https://github.com/cython/cython/issues/7069)
349
+
350
+ * Optimised Python ``int`` and ``float`` operations did not remember their result type,
351
+ leading to less optimised code in longer expressions.
352
+ (Github issues https://github.com/cython/cython/issues/7363, https://github.com/cython/cython/issues/7502)
353
+
354
+ * Slices as dictionary keys confused the type inference of item access.
355
+ (Github issue https://github.com/cython/cython/issues/7702)
356
+
357
+ * A race condition when ``return``ing from a ``cython.parallel.parallel`` section was fixed.
358
+ (Github issue https://github.com/cython/cython/issues/6521)
359
+
360
+ * Cython still used ``(type, exc, traceback)`` for saving and restoring exception state,
361
+ even though modern CPython versions only store the exception object itself internally.
362
+ This is now modernised in many places to reduce overhead.
363
+ (Github issue https://github.com/cython/cython/issues/7481)
364
+
365
+ * Exceptions originating from the ``Py_UNICODE_IS*()`` character classification macros and
366
+ the corresponding ``str.is*()`` methods, which they alias, were not handled but ignored in
367
+ the Limited API.
368
+ (Github issue https://github.com/cython/cython/issues/7602)
369
+
370
+ * In the Limited API, import time failures to create code objects for compiled functions,
371
+ e.g. due to future Python API changes, are no longer fatal but generate a warning.
372
+ (Github issue https://github.com/cython/cython/issues/5718)
373
+
374
+ * Several internal cases where exceptions are caught and discarded now propagate the
375
+ ``BaseException`` errors and only discard the expected exceptions.
376
+ (Github issue https://github.com/cython/cython/issues/7600)
377
+
378
+ * Error handling was improved when setting up the table of ``cdef`` methods for extension types
379
+ and unexpected errors are propagated.
380
+ (Github issue https://github.com/cython/cython/issues/7613)
381
+
382
+ * Exceptions while setting up the automatic pickle support are now propagated.
383
+ (Github issue https://github.com/cython/cython/issues/7613)
384
+
385
+ * Exceptions thrown into async generators could leave the generator in an unclosed state.
386
+ (Github issue https://github.com/cython/cython/issues/7618)
387
+
388
+ * In the Limited API, failures while formatting type names in exceptions are now uniformly handled.
389
+ (Github issue https://github.com/cython/cython/issues/7680)
390
+
391
+ * A ``cpdef enum`` with negative values changed to non-negative in Python 3.15.
392
+ It now uses a dedicated enum implementation class to allow this.
393
+ (Github issue https://github.com/cython/cython/issues/7185)
394
+
395
+ * ``cpdef fused`` functions generated redundant code.
396
+ (Github issue https://github.com/cython/cython/issues/7778)
397
+
398
+ * Automatic C++ STL conversions in different compiler directive contexts could generate
399
+ invalid code duplications in C++ code.
400
+ Original Patch by bjodah. (Github issue https://github.com/cython/cython/issues/6981)
401
+
402
+ * The global module state struct now lives in an anonymous namespace in C++ mode to
403
+ allow linking multiple modules together in one shared library file.
404
+ (Github issue https://github.com/cython/cython/issues/7159)
405
+
406
+ * Cached methods of builtin types were not GC-traversed and cleaned up as part of the module state.
407
+ Patch by Maxwell Bernstein. (Github issue https://github.com/cython/cython/issues/7468)
408
+
409
+ * Dict iteration generates safer code in PyPy/GraalPy/free-threading.
410
+ (Github issue https://github.com/cython/cython/issues/7637)
411
+
412
+ * The floating point parsing code relied on C implementation specific "pointer compare after free" behaviour.
413
+ Patch by stratakis. (Github issue https://github.com/cython/cython/issues/7463)
414
+
415
+ * When non-heap types were used as base classes of extension heap types, the heap types
416
+ were not correctly reference counted by their instances.
417
+ (Github issue https://github.com/cython/cython/issues/7483)
418
+
419
+ * The ``.__signatures__`` dict of fused functions is no longer writable.
420
+ (Github issue https://github.com/cython/cython/issues/7386)
421
+
422
+ * A minimal implementation of ``.__annotate__`` was added to Cython compiled functions to make
423
+ ``@functools.wraps`` work in Python 3.14+.
424
+ (Github issue https://github.com/cython/cython/issues/7675)
425
+
426
+ * The ``--embed-positions`` option no longer includes absolute file paths in the C code.
427
+ (Github issue https://github.com/cython/cython/issues/6755)
428
+
429
+ * Casting to an unresolved ``typeof()`` type (e.g. ``cython.cast(cython.typeof(x), ...)``
430
+ where the type could not be inferred) crashed the compiler instead of reporting an error.
431
+ Patch by Vladimir Saraikin. (Github issue https://github.com/cython/cython/issues/7683)
432
+
433
+ * Error reporting on missing braces in f-strings was misleading.
434
+ (Github issue https://github.com/cython/cython/issues/7436)
435
+
436
+ * Declaring a ``__dict__`` attribute in a class as ``public`` or ``readonly``
437
+ generated incorrect code. It is now detected as an error.
438
+ Patch by Anthony Donlon. (Github issue https://github.com/cython/cython/issues/7823)
439
+
440
+ * ``None`` default values for function arguments declared as ``not None`` are now rejected
441
+ at compile time rather than leading to errors at runtime.
442
+ Patch by Vyas Ramasubramani. (Github issue https://github.com/cython/cython/issues/7762)
443
+
444
+ * Cython did not reject code with multiple contradicting type annotations on the same variable.
445
+ (Github issue https://github.com/cython/cython/issues/7246)
446
+
447
+ * Cython no longer warns if ``@profile`` or ``@linetrace`` is applied to a function
448
+ without changing the global/outer setting. This avoids annoyance when users leave
449
+ such redundant decorators in the code for occasional use.
450
+
451
+ * The virtualenv activation inside of ``cygdb`` when it is run from a virtualenv works in more cases.
452
+ Original patch by Pierrick Koch and Ashutosh Varma. (Github issues https://github.com/cython/cython/issues/1961, https://github.com/cython/cython/issues/3629)
453
+
454
+ * Modules with non-ASCII names could end up with UTF-8 characters in their C code.
455
+ (Github issue https://github.com/cython/cython/issues/7588)
456
+
457
+ * MSVC could silently truncate long C string literals (including internal ones)
458
+ at a 64k bytes border. This is now worked around using C char arrays.
459
+ (Github issue https://github.com/cython/cython/issues/7824)
460
+
461
+ * Several C compiler warnings related to mixed signed/unsigned C integer usage were resolved.
462
+
463
+ * Some compiler directives failed to apply to Cython's build, which lead to
464
+ unintentionally (slightly) increased wheel sizes.
465
+ (Github issue https://github.com/cython/cython/issues/7801)
466
+
467
+ * A regression in 3.3.0b1 that generated invalid C code for exception type checks was fixed.
468
+ (Github issue https://github.com/cython/cython/issues/7902)
469
+
470
+ * Includes all fixes as of Cython 3.2.9.
471
+
472
+ 3.2.9 (2026-07-24):
473
+
474
+ * Indexing into freshly created lists with an out-of-bounds index could crash.
475
+ (Github issue https://github.com/cython/cython/issues/7793)
476
+
477
+ * Function arguments with default values could end up uninitialised in closures, leading to crashes.
478
+ Patch by Anthony Donlon. (Github issue https://github.com/cython/cython/issues/7782)
479
+
480
+ * ``bytearray.append(None)`` could crash. The optimised code was also lacking concurrency guards.
481
+ (Github issue https://github.com/cython/cython/issues/7796)
482
+
483
+ * Some rare corner cases when concatenating text strings were resolved.
484
+ (Github issue https://github.com/cython/cython/issues/7799)
485
+
486
+ * Assignments of builtin string types to typedefs of `object` could erroneously be rejected.
487
+ (Github issue https://github.com/cython/cython/issues/7789)
488
+
489
+ * Subscripting ``type`` failed with a ``TypeError``.
490
+ (Github issue https://github.com/cython/cython/issues/5563)
491
+
492
+ * Manually disabling ``CYTHON_VECTORCALL`` in CPython could lead to invalid C code.
493
+ Patch by Florent Gallaire. (Github issue https://github.com/cython/cython/issues/7807)
494
+
495
+ * Some internal Limited API version checks for Py3.12 were corrected.
496
+ (Github issue https://github.com/cython/cython/issues/7845)
497
+
498
+ 3.2.6 (2026-06-24):
499
+
500
+ * ``@functools.wraps()`` was broken in Py3.14+ for Cython compiled functions.
501
+ (Github issue https://github.com/cython/cython/issues/7675)
502
+
503
+ * A double-free in the t-string code was fixed.
504
+ (Github issue https://github.com/cython/cython/issues/7712)
505
+
506
+ * The ``-`` operator declarations for iterators in ``libcpp.vector`` we corrected.
507
+ Patch by Vadim Markovtsev. (Github issue https://github.com/cython/cython/issues/7717)
508
+
509
+ * The shared utility code module no longer uses a temporary file path that
510
+ changed the C code on each generation.
511
+ (Github issue https://github.com/cython/cython/issues/7723)
512
+
513
+ * On 32 bit platforms, cached constants are no longer made immortal during module import.
514
+ (Github issue https://github.com/cython/cython/issues/7744)
515
+
516
+ Other changes
517
+ -------------
518
+
519
+ * Support for Python 3.8 has been removed.
520
+ As a side-effekt, support for StacklessPython and Pyston (last release was 3.8) was also removed.
521
+ Python 3.9 is planned to remain supported for several years due to its use in LTS Linux distributions.
522
+ (Github issue https://github.com/cython/cython/issues/7271)
523
+
524
+ * The vectorcall feature macros were unified to make ``CYTHON_VECTORCALL`` the only way to
525
+ disable this feature (if need arises). Previously the option macros ``CYTHON_METH_FASTCALL``,
526
+ ``CYTHON_FAST_PYCALL`` and ``CYTHON_VECTORCALL`` all controlled different aspects of the
527
+ implementation.
528
+ (Github issue https://github.com/cython/cython/issues/7616)
529
+
530
+ * Setting the Limited API version macro ``Py_LIMITED_API`` in PyPy or GraalPython
531
+ now enables the Limited API usage in these runtimes. This will currently fail
532
+ due to lack of support in the runtimes, but is intended for initial testing
533
+ and future improvements.
534
+ (Github issue https://github.com/cython/cython/issues/7831)
535
+
536
+ * Setting ``Py_LIMITED_API`` to a newer API version x.y than the current runtime
537
+ (and its header files) is now detected and will explicitly fail to compile,
538
+ rather than running into less obvious C compile or runtime issues.
539
+ (Github issue https://github.com/cython/cython/issues/7185)
540
+
541
+ * Coroutines no longer provide the legacy ``_is_coroutine`` property.
542
+ (Github issue https://github.com/cython/cython/issues/7709)
543
+
544
+ * Two more Cython modules are compiled in the binary wheels, which should improve the
545
+ translation speed for modules with many strings.
546
+ (Github issue https://github.com/cython/cython/issues/7795)
547
+
548
+ * The distributed Cython binary wheels now use a shared utility code module to reduce their size.
549
+ (Github issue https://github.com/cython/cython/issues/7865)
550
+
551
+ * ``Cython/Shadow.pyi`` has been merged into ``Cython/Shadow.py``.
552
+ (Github issue https://github.com/cython/cython/issues/7376)
553
+
554
+ * The documentation now uses the "Clarity" Sphinx theme.
555
+ Patch by Libor Jelínek. (Github issue https://github.com/cython/cython/issues/7564)