@simplexai/localmodels-darwin-arm64 0.1.0-dev.31.build.gitb5579b4b26f273bf03468c6aedf61b327fa6c245 → 0.1.0-dev.32

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 (583) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +10 -582
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/METADATA +1 -1
  5. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/RECORD +7 -7
  6. package/package.json +1 -1
  7. package/tool.json +1 -1
  8. package/python/bin/2to3 +0 -7
  9. package/python/bin/2to3-3.12 +0 -7
  10. package/python/bin/idle3 +0 -7
  11. package/python/bin/idle3.12 +0 -7
  12. package/python/bin/pip +0 -8
  13. package/python/bin/pip3 +0 -8
  14. package/python/bin/pip3.12 +0 -8
  15. package/python/bin/pydoc3 +0 -7
  16. package/python/bin/pydoc3.12 +0 -7
  17. package/python/bin/python +0 -0
  18. package/python/bin/python3 +0 -0
  19. package/python/bin/python3-config +0 -76
  20. package/python/bin/python3.12-config +0 -76
  21. package/python/include/python3.12/Python.h +0 -109
  22. package/python/include/python3.12/abstract.h +0 -899
  23. package/python/include/python3.12/bltinmodule.h +0 -14
  24. package/python/include/python3.12/boolobject.h +0 -42
  25. package/python/include/python3.12/bytearrayobject.h +0 -44
  26. package/python/include/python3.12/bytesobject.h +0 -69
  27. package/python/include/python3.12/ceval.h +0 -168
  28. package/python/include/python3.12/codecs.h +0 -248
  29. package/python/include/python3.12/compile.h +0 -22
  30. package/python/include/python3.12/complexobject.h +0 -30
  31. package/python/include/python3.12/cpython/abstract.h +0 -206
  32. package/python/include/python3.12/cpython/bytearrayobject.h +0 -34
  33. package/python/include/python3.12/cpython/bytesobject.h +0 -133
  34. package/python/include/python3.12/cpython/cellobject.h +0 -44
  35. package/python/include/python3.12/cpython/ceval.h +0 -35
  36. package/python/include/python3.12/cpython/classobject.h +0 -71
  37. package/python/include/python3.12/cpython/code.h +0 -389
  38. package/python/include/python3.12/cpython/compile.h +0 -69
  39. package/python/include/python3.12/cpython/complexobject.h +0 -44
  40. package/python/include/python3.12/cpython/context.h +0 -78
  41. package/python/include/python3.12/cpython/descrobject.h +0 -64
  42. package/python/include/python3.12/cpython/dictobject.h +0 -118
  43. package/python/include/python3.12/cpython/fileobject.h +0 -19
  44. package/python/include/python3.12/cpython/fileutils.h +0 -8
  45. package/python/include/python3.12/cpython/floatobject.h +0 -27
  46. package/python/include/python3.12/cpython/frameobject.h +0 -29
  47. package/python/include/python3.12/cpython/funcobject.h +0 -190
  48. package/python/include/python3.12/cpython/genobject.h +0 -89
  49. package/python/include/python3.12/cpython/import.h +0 -46
  50. package/python/include/python3.12/cpython/initconfig.h +0 -256
  51. package/python/include/python3.12/cpython/interpreteridobject.h +0 -11
  52. package/python/include/python3.12/cpython/listobject.h +0 -47
  53. package/python/include/python3.12/cpython/longintrepr.h +0 -133
  54. package/python/include/python3.12/cpython/longobject.h +0 -100
  55. package/python/include/python3.12/cpython/memoryobject.h +0 -52
  56. package/python/include/python3.12/cpython/methodobject.h +0 -66
  57. package/python/include/python3.12/cpython/modsupport.h +0 -109
  58. package/python/include/python3.12/cpython/object.h +0 -575
  59. package/python/include/python3.12/cpython/objimpl.h +0 -95
  60. package/python/include/python3.12/cpython/odictobject.h +0 -43
  61. package/python/include/python3.12/cpython/picklebufobject.h +0 -31
  62. package/python/include/python3.12/cpython/pthread_stubs.h +0 -88
  63. package/python/include/python3.12/cpython/pyctype.h +0 -39
  64. package/python/include/python3.12/cpython/pydebug.h +0 -38
  65. package/python/include/python3.12/cpython/pyerrors.h +0 -178
  66. package/python/include/python3.12/cpython/pyfpe.h +0 -15
  67. package/python/include/python3.12/cpython/pyframe.h +0 -35
  68. package/python/include/python3.12/cpython/pylifecycle.h +0 -111
  69. package/python/include/python3.12/cpython/pymem.h +0 -98
  70. package/python/include/python3.12/cpython/pystate.h +0 -456
  71. package/python/include/python3.12/cpython/pythonrun.h +0 -121
  72. package/python/include/python3.12/cpython/pythread.h +0 -42
  73. package/python/include/python3.12/cpython/pytime.h +0 -331
  74. package/python/include/python3.12/cpython/setobject.h +0 -72
  75. package/python/include/python3.12/cpython/sysmodule.h +0 -16
  76. package/python/include/python3.12/cpython/traceback.h +0 -16
  77. package/python/include/python3.12/cpython/tupleobject.h +0 -39
  78. package/python/include/python3.12/cpython/unicodeobject.h +0 -976
  79. package/python/include/python3.12/cpython/warnings.h +0 -20
  80. package/python/include/python3.12/cpython/weakrefobject.h +0 -56
  81. package/python/include/python3.12/datetime.h +0 -267
  82. package/python/include/python3.12/descrobject.h +0 -100
  83. package/python/include/python3.12/dictobject.h +0 -97
  84. package/python/include/python3.12/dynamic_annotations.h +0 -499
  85. package/python/include/python3.12/enumobject.h +0 -17
  86. package/python/include/python3.12/errcode.h +0 -38
  87. package/python/include/python3.12/exports.h +0 -36
  88. package/python/include/python3.12/fileobject.h +0 -49
  89. package/python/include/python3.12/fileutils.h +0 -26
  90. package/python/include/python3.12/floatobject.h +0 -54
  91. package/python/include/python3.12/frameobject.h +0 -20
  92. package/python/include/python3.12/genericaliasobject.h +0 -14
  93. package/python/include/python3.12/import.h +0 -98
  94. package/python/include/python3.12/internal/pycore_abstract.h +0 -25
  95. package/python/include/python3.12/internal/pycore_asdl.h +0 -112
  96. package/python/include/python3.12/internal/pycore_ast.h +0 -922
  97. package/python/include/python3.12/internal/pycore_ast_state.h +0 -265
  98. package/python/include/python3.12/internal/pycore_atexit.h +0 -57
  99. package/python/include/python3.12/internal/pycore_atomic.h +0 -557
  100. package/python/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
  101. package/python/include/python3.12/internal/pycore_bitutils.h +0 -186
  102. package/python/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
  103. package/python/include/python3.12/internal/pycore_bytes_methods.h +0 -73
  104. package/python/include/python3.12/internal/pycore_bytesobject.h +0 -47
  105. package/python/include/python3.12/internal/pycore_call.h +0 -133
  106. package/python/include/python3.12/internal/pycore_ceval.h +0 -164
  107. package/python/include/python3.12/internal/pycore_ceval_state.h +0 -103
  108. package/python/include/python3.12/internal/pycore_code.h +0 -496
  109. package/python/include/python3.12/internal/pycore_compile.h +0 -118
  110. package/python/include/python3.12/internal/pycore_condvar.h +0 -99
  111. package/python/include/python3.12/internal/pycore_context.h +0 -71
  112. package/python/include/python3.12/internal/pycore_descrobject.h +0 -26
  113. package/python/include/python3.12/internal/pycore_dict.h +0 -199
  114. package/python/include/python3.12/internal/pycore_dict_state.h +0 -50
  115. package/python/include/python3.12/internal/pycore_dtoa.h +0 -69
  116. package/python/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
  117. package/python/include/python3.12/internal/pycore_exceptions.h +0 -37
  118. package/python/include/python3.12/internal/pycore_faulthandler.h +0 -99
  119. package/python/include/python3.12/internal/pycore_fileutils.h +0 -292
  120. package/python/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
  121. package/python/include/python3.12/internal/pycore_floatobject.h +0 -71
  122. package/python/include/python3.12/internal/pycore_flowgraph.h +0 -120
  123. package/python/include/python3.12/internal/pycore_format.h +0 -27
  124. package/python/include/python3.12/internal/pycore_frame.h +0 -283
  125. package/python/include/python3.12/internal/pycore_function.h +0 -26
  126. package/python/include/python3.12/internal/pycore_gc.h +0 -211
  127. package/python/include/python3.12/internal/pycore_genobject.h +0 -49
  128. package/python/include/python3.12/internal/pycore_getopt.h +0 -22
  129. package/python/include/python3.12/internal/pycore_gil.h +0 -50
  130. package/python/include/python3.12/internal/pycore_global_objects.h +0 -105
  131. package/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
  132. package/python/include/python3.12/internal/pycore_global_strings.h +0 -777
  133. package/python/include/python3.12/internal/pycore_hamt.h +0 -134
  134. package/python/include/python3.12/internal/pycore_hashtable.h +0 -149
  135. package/python/include/python3.12/internal/pycore_import.h +0 -183
  136. package/python/include/python3.12/internal/pycore_initconfig.h +0 -179
  137. package/python/include/python3.12/internal/pycore_instruments.h +0 -106
  138. package/python/include/python3.12/internal/pycore_interp.h +0 -275
  139. package/python/include/python3.12/internal/pycore_intrinsics.h +0 -32
  140. package/python/include/python3.12/internal/pycore_list.h +0 -83
  141. package/python/include/python3.12/internal/pycore_long.h +0 -258
  142. package/python/include/python3.12/internal/pycore_memoryobject.h +0 -18
  143. package/python/include/python3.12/internal/pycore_moduleobject.h +0 -45
  144. package/python/include/python3.12/internal/pycore_namespace.h +0 -20
  145. package/python/include/python3.12/internal/pycore_object.h +0 -455
  146. package/python/include/python3.12/internal/pycore_object_state.h +0 -42
  147. package/python/include/python3.12/internal/pycore_obmalloc.h +0 -700
  148. package/python/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
  149. package/python/include/python3.12/internal/pycore_opcode.h +0 -587
  150. package/python/include/python3.12/internal/pycore_opcode_utils.h +0 -92
  151. package/python/include/python3.12/internal/pycore_parser.h +0 -66
  152. package/python/include/python3.12/internal/pycore_pathconfig.h +0 -24
  153. package/python/include/python3.12/internal/pycore_pyarena.h +0 -64
  154. package/python/include/python3.12/internal/pycore_pyerrors.h +0 -129
  155. package/python/include/python3.12/internal/pycore_pyhash.h +0 -40
  156. package/python/include/python3.12/internal/pycore_pylifecycle.h +0 -99
  157. package/python/include/python3.12/internal/pycore_pymath.h +0 -205
  158. package/python/include/python3.12/internal/pycore_pymem.h +0 -98
  159. package/python/include/python3.12/internal/pycore_pymem_init.h +0 -85
  160. package/python/include/python3.12/internal/pycore_pystate.h +0 -180
  161. package/python/include/python3.12/internal/pycore_pythread.h +0 -81
  162. package/python/include/python3.12/internal/pycore_range.h +0 -21
  163. package/python/include/python3.12/internal/pycore_runtime.h +0 -235
  164. package/python/include/python3.12/internal/pycore_runtime_init.h +0 -188
  165. package/python/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
  166. package/python/include/python3.12/internal/pycore_signal.h +0 -98
  167. package/python/include/python3.12/internal/pycore_sliceobject.h +0 -22
  168. package/python/include/python3.12/internal/pycore_strhex.h +0 -36
  169. package/python/include/python3.12/internal/pycore_structseq.h +0 -39
  170. package/python/include/python3.12/internal/pycore_symtable.h +0 -160
  171. package/python/include/python3.12/internal/pycore_sysmodule.h +0 -34
  172. package/python/include/python3.12/internal/pycore_time.h +0 -25
  173. package/python/include/python3.12/internal/pycore_token.h +0 -108
  174. package/python/include/python3.12/internal/pycore_traceback.h +0 -101
  175. package/python/include/python3.12/internal/pycore_tracemalloc.h +0 -123
  176. package/python/include/python3.12/internal/pycore_tuple.h +0 -79
  177. package/python/include/python3.12/internal/pycore_typeobject.h +0 -151
  178. package/python/include/python3.12/internal/pycore_typevarobject.h +0 -24
  179. package/python/include/python3.12/internal/pycore_ucnhash.h +0 -34
  180. package/python/include/python3.12/internal/pycore_unicodeobject.h +0 -86
  181. package/python/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
  182. package/python/include/python3.12/internal/pycore_unionobject.h +0 -23
  183. package/python/include/python3.12/internal/pycore_warnings.h +0 -29
  184. package/python/include/python3.12/interpreteridobject.h +0 -17
  185. package/python/include/python3.12/intrcheck.h +0 -30
  186. package/python/include/python3.12/iterobject.h +0 -27
  187. package/python/include/python3.12/listobject.h +0 -52
  188. package/python/include/python3.12/longobject.h +0 -108
  189. package/python/include/python3.12/marshal.h +0 -31
  190. package/python/include/python3.12/memoryobject.h +0 -34
  191. package/python/include/python3.12/methodobject.h +0 -132
  192. package/python/include/python3.12/modsupport.h +0 -168
  193. package/python/include/python3.12/moduleobject.h +0 -119
  194. package/python/include/python3.12/object.h +0 -993
  195. package/python/include/python3.12/objimpl.h +0 -234
  196. package/python/include/python3.12/opcode.h +0 -271
  197. package/python/include/python3.12/osdefs.h +0 -51
  198. package/python/include/python3.12/osmodule.h +0 -17
  199. package/python/include/python3.12/patchlevel.h +0 -35
  200. package/python/include/python3.12/py_curses.h +0 -99
  201. package/python/include/python3.12/pybuffer.h +0 -145
  202. package/python/include/python3.12/pycapsule.h +0 -59
  203. package/python/include/python3.12/pyconfig.h +0 -1943
  204. package/python/include/python3.12/pydtrace.h +0 -59
  205. package/python/include/python3.12/pyerrors.h +0 -337
  206. package/python/include/python3.12/pyexpat.h +0 -70
  207. package/python/include/python3.12/pyframe.h +0 -26
  208. package/python/include/python3.12/pyhash.h +0 -146
  209. package/python/include/python3.12/pylifecycle.h +0 -78
  210. package/python/include/python3.12/pymacconfig.h +0 -99
  211. package/python/include/python3.12/pymacro.h +0 -172
  212. package/python/include/python3.12/pymath.h +0 -62
  213. package/python/include/python3.12/pymem.h +0 -104
  214. package/python/include/python3.12/pyport.h +0 -782
  215. package/python/include/python3.12/pystate.h +0 -132
  216. package/python/include/python3.12/pystats.h +0 -110
  217. package/python/include/python3.12/pystrcmp.h +0 -23
  218. package/python/include/python3.12/pystrtod.h +0 -46
  219. package/python/include/python3.12/pythonrun.h +0 -49
  220. package/python/include/python3.12/pythread.h +0 -135
  221. package/python/include/python3.12/pytypedefs.h +0 -30
  222. package/python/include/python3.12/rangeobject.h +0 -27
  223. package/python/include/python3.12/setobject.h +0 -49
  224. package/python/include/python3.12/sliceobject.h +0 -65
  225. package/python/include/python3.12/structmember.h +0 -56
  226. package/python/include/python3.12/structseq.h +0 -49
  227. package/python/include/python3.12/sysmodule.h +0 -54
  228. package/python/include/python3.12/traceback.h +0 -26
  229. package/python/include/python3.12/tracemalloc.h +0 -77
  230. package/python/include/python3.12/tupleobject.h +0 -46
  231. package/python/include/python3.12/typeslots.h +0 -88
  232. package/python/include/python3.12/unicodeobject.h +0 -1020
  233. package/python/include/python3.12/warnings.h +0 -45
  234. package/python/include/python3.12/weakrefobject.h +0 -42
  235. package/python/lib/itcl4.3.8/itcl.tcl +0 -151
  236. package/python/lib/itcl4.3.8/itclConfig.sh +0 -67
  237. package/python/lib/itcl4.3.8/itclHullCmds.tcl +0 -562
  238. package/python/lib/itcl4.3.8/itclWidget.tcl +0 -447
  239. package/python/lib/itcl4.3.8/libitcl4.3.8.dylib +0 -0
  240. package/python/lib/itcl4.3.8/libitclstub.a +0 -0
  241. package/python/lib/itcl4.3.8/libitclstub4.3.8.a +0 -0
  242. package/python/lib/itcl4.3.8/libtcl9itcl4.3.8.dylib +0 -0
  243. package/python/lib/itcl4.3.8/pkgIndex.tcl +0 -14
  244. package/python/lib/libpython3.12.dylib +0 -0
  245. package/python/lib/libtcl9.0.dylib +0 -0
  246. package/python/lib/libtcl9tk9.0.dylib +0 -0
  247. package/python/lib/pkgconfig/python-3.12-embed.pc +0 -13
  248. package/python/lib/pkgconfig/python-3.12.pc +0 -13
  249. package/python/lib/pkgconfig/python3-embed.pc +0 -13
  250. package/python/lib/pkgconfig/python3.pc +0 -13
  251. package/python/lib/python3.12/config-3.12-darwin/Makefile +0 -3273
  252. package/python/lib/python3.12/config-3.12-darwin/Setup +0 -303
  253. package/python/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
  254. package/python/lib/python3.12/config-3.12-darwin/Setup.local +0 -19
  255. package/python/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
  256. package/python/lib/python3.12/config-3.12-darwin/config.c +0 -246
  257. package/python/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
  258. package/python/lib/python3.12/config-3.12-darwin/install-sh +0 -541
  259. package/python/lib/python3.12/config-3.12-darwin/makesetup +0 -353
  260. package/python/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
  261. package/python/lib/python3.12/config-3.12-darwin/python.o +0 -0
  262. package/python/lib/python3.12/idlelib/CREDITS.txt +0 -47
  263. package/python/lib/python3.12/idlelib/ChangeLog +0 -1591
  264. package/python/lib/python3.12/idlelib/HISTORY.txt +0 -296
  265. package/python/lib/python3.12/idlelib/Icons/README.txt +0 -51
  266. package/python/lib/python3.12/idlelib/Icons/folder.gif +0 -0
  267. package/python/lib/python3.12/idlelib/Icons/idle.ico +0 -0
  268. package/python/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
  269. package/python/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
  270. package/python/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
  271. package/python/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
  272. package/python/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
  273. package/python/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
  274. package/python/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
  275. package/python/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
  276. package/python/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
  277. package/python/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
  278. package/python/lib/python3.12/idlelib/Icons/python.gif +0 -0
  279. package/python/lib/python3.12/idlelib/Icons/tk.gif +0 -0
  280. package/python/lib/python3.12/idlelib/NEWS2x.txt +0 -660
  281. package/python/lib/python3.12/idlelib/News3.txt +0 -1390
  282. package/python/lib/python3.12/idlelib/README.txt +0 -290
  283. package/python/lib/python3.12/idlelib/TODO.txt +0 -210
  284. package/python/lib/python3.12/idlelib/__init__.py +0 -10
  285. package/python/lib/python3.12/idlelib/__main__.py +0 -7
  286. package/python/lib/python3.12/idlelib/autocomplete.py +0 -228
  287. package/python/lib/python3.12/idlelib/autocomplete_w.py +0 -498
  288. package/python/lib/python3.12/idlelib/autoexpand.py +0 -96
  289. package/python/lib/python3.12/idlelib/browser.py +0 -260
  290. package/python/lib/python3.12/idlelib/calltip.py +0 -205
  291. package/python/lib/python3.12/idlelib/calltip_w.py +0 -202
  292. package/python/lib/python3.12/idlelib/codecontext.py +0 -270
  293. package/python/lib/python3.12/idlelib/colorizer.py +0 -384
  294. package/python/lib/python3.12/idlelib/config-extensions.def +0 -62
  295. package/python/lib/python3.12/idlelib/config-highlight.def +0 -105
  296. package/python/lib/python3.12/idlelib/config-keys.def +0 -309
  297. package/python/lib/python3.12/idlelib/config-main.def +0 -93
  298. package/python/lib/python3.12/idlelib/config.py +0 -917
  299. package/python/lib/python3.12/idlelib/config_key.py +0 -354
  300. package/python/lib/python3.12/idlelib/configdialog.py +0 -2408
  301. package/python/lib/python3.12/idlelib/debugger.py +0 -602
  302. package/python/lib/python3.12/idlelib/debugger_r.py +0 -390
  303. package/python/lib/python3.12/idlelib/debugobj.py +0 -146
  304. package/python/lib/python3.12/idlelib/debugobj_r.py +0 -41
  305. package/python/lib/python3.12/idlelib/delegator.py +0 -34
  306. package/python/lib/python3.12/idlelib/dynoption.py +0 -57
  307. package/python/lib/python3.12/idlelib/editor.py +0 -1767
  308. package/python/lib/python3.12/idlelib/extend.txt +0 -83
  309. package/python/lib/python3.12/idlelib/filelist.py +0 -132
  310. package/python/lib/python3.12/idlelib/format.py +0 -426
  311. package/python/lib/python3.12/idlelib/grep.py +0 -223
  312. package/python/lib/python3.12/idlelib/help.html +0 -805
  313. package/python/lib/python3.12/idlelib/help.py +0 -297
  314. package/python/lib/python3.12/idlelib/help_about.py +0 -211
  315. package/python/lib/python3.12/idlelib/history.py +0 -106
  316. package/python/lib/python3.12/idlelib/hyperparser.py +0 -312
  317. package/python/lib/python3.12/idlelib/idle.bat +0 -4
  318. package/python/lib/python3.12/idlelib/idle.py +0 -14
  319. package/python/lib/python3.12/idlelib/idle.pyw +0 -17
  320. package/python/lib/python3.12/idlelib/iomenu.py +0 -441
  321. package/python/lib/python3.12/idlelib/macosx.py +0 -278
  322. package/python/lib/python3.12/idlelib/mainmenu.py +0 -126
  323. package/python/lib/python3.12/idlelib/multicall.py +0 -451
  324. package/python/lib/python3.12/idlelib/outwin.py +0 -188
  325. package/python/lib/python3.12/idlelib/parenmatch.py +0 -183
  326. package/python/lib/python3.12/idlelib/pathbrowser.py +0 -107
  327. package/python/lib/python3.12/idlelib/percolator.py +0 -120
  328. package/python/lib/python3.12/idlelib/pyparse.py +0 -589
  329. package/python/lib/python3.12/idlelib/pyshell.py +0 -1694
  330. package/python/lib/python3.12/idlelib/query.py +0 -392
  331. package/python/lib/python3.12/idlelib/redirector.py +0 -173
  332. package/python/lib/python3.12/idlelib/replace.py +0 -300
  333. package/python/lib/python3.12/idlelib/rpc.py +0 -635
  334. package/python/lib/python3.12/idlelib/run.py +0 -646
  335. package/python/lib/python3.12/idlelib/runscript.py +0 -213
  336. package/python/lib/python3.12/idlelib/scrolledlist.py +0 -151
  337. package/python/lib/python3.12/idlelib/search.py +0 -165
  338. package/python/lib/python3.12/idlelib/searchbase.py +0 -210
  339. package/python/lib/python3.12/idlelib/searchengine.py +0 -235
  340. package/python/lib/python3.12/idlelib/sidebar.py +0 -544
  341. package/python/lib/python3.12/idlelib/squeezer.py +0 -345
  342. package/python/lib/python3.12/idlelib/stackviewer.py +0 -134
  343. package/python/lib/python3.12/idlelib/statusbar.py +0 -52
  344. package/python/lib/python3.12/idlelib/textview.py +0 -193
  345. package/python/lib/python3.12/idlelib/tooltip.py +0 -190
  346. package/python/lib/python3.12/idlelib/tree.py +0 -509
  347. package/python/lib/python3.12/idlelib/undo.py +0 -367
  348. package/python/lib/python3.12/idlelib/util.py +0 -37
  349. package/python/lib/python3.12/idlelib/window.py +0 -98
  350. package/python/lib/python3.12/idlelib/zoomheight.py +0 -124
  351. package/python/lib/python3.12/idlelib/zzdummy.py +0 -73
  352. package/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
  353. package/python/lib/python3.12/tkinter/__init__.py +0 -4682
  354. package/python/lib/python3.12/tkinter/__main__.py +0 -7
  355. package/python/lib/python3.12/tkinter/colorchooser.py +0 -86
  356. package/python/lib/python3.12/tkinter/commondialog.py +0 -53
  357. package/python/lib/python3.12/tkinter/constants.py +0 -110
  358. package/python/lib/python3.12/tkinter/dialog.py +0 -49
  359. package/python/lib/python3.12/tkinter/dnd.py +0 -324
  360. package/python/lib/python3.12/tkinter/filedialog.py +0 -492
  361. package/python/lib/python3.12/tkinter/font.py +0 -239
  362. package/python/lib/python3.12/tkinter/messagebox.py +0 -146
  363. package/python/lib/python3.12/tkinter/scrolledtext.py +0 -56
  364. package/python/lib/python3.12/tkinter/simpledialog.py +0 -441
  365. package/python/lib/python3.12/tkinter/tix.py +0 -1948
  366. package/python/lib/python3.12/tkinter/ttk.py +0 -1640
  367. package/python/lib/python3.12/turtle.py +0 -4207
  368. package/python/lib/python3.12/turtledemo/__init__.py +0 -14
  369. package/python/lib/python3.12/turtledemo/__main__.py +0 -404
  370. package/python/lib/python3.12/turtledemo/bytedesign.py +0 -161
  371. package/python/lib/python3.12/turtledemo/chaos.py +0 -59
  372. package/python/lib/python3.12/turtledemo/clock.py +0 -138
  373. package/python/lib/python3.12/turtledemo/colormixer.py +0 -58
  374. package/python/lib/python3.12/turtledemo/forest.py +0 -108
  375. package/python/lib/python3.12/turtledemo/fractalcurves.py +0 -138
  376. package/python/lib/python3.12/turtledemo/lindenmayer.py +0 -119
  377. package/python/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
  378. package/python/lib/python3.12/turtledemo/nim.py +0 -226
  379. package/python/lib/python3.12/turtledemo/paint.py +0 -54
  380. package/python/lib/python3.12/turtledemo/peace.py +0 -61
  381. package/python/lib/python3.12/turtledemo/penrose.py +0 -175
  382. package/python/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
  383. package/python/lib/python3.12/turtledemo/rosette.py +0 -65
  384. package/python/lib/python3.12/turtledemo/round_dance.py +0 -86
  385. package/python/lib/python3.12/turtledemo/sorting_animate.py +0 -204
  386. package/python/lib/python3.12/turtledemo/tree.py +0 -62
  387. package/python/lib/python3.12/turtledemo/turtle.cfg +0 -10
  388. package/python/lib/python3.12/turtledemo/two_canvases.py +0 -54
  389. package/python/lib/python3.12/turtledemo/yinyang.py +0 -49
  390. package/python/lib/tcl9/9.0/http-2.10.2.tm +0 -5451
  391. package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +0 -1349
  392. package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +0 -241
  393. package/python/lib/tcl9/9.0/platform-1.1.0.tm +0 -442
  394. package/python/lib/tcl9/9.0/tcltest-2.5.11.tm +0 -3600
  395. package/python/lib/tcl9.0/auto.tcl +0 -710
  396. package/python/lib/tcl9.0/clock.tcl +0 -2110
  397. package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +0 -746
  398. package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +0 -292
  399. package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +0 -3
  400. package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
  401. package/python/lib/tcl9.0/encoding/ascii.enc +0 -20
  402. package/python/lib/tcl9.0/encoding/big5.enc +0 -1516
  403. package/python/lib/tcl9.0/encoding/cns11643.enc +0 -1584
  404. package/python/lib/tcl9.0/encoding/cp1250.enc +0 -20
  405. package/python/lib/tcl9.0/encoding/cp1251.enc +0 -20
  406. package/python/lib/tcl9.0/encoding/cp1252.enc +0 -20
  407. package/python/lib/tcl9.0/encoding/cp1253.enc +0 -20
  408. package/python/lib/tcl9.0/encoding/cp1254.enc +0 -20
  409. package/python/lib/tcl9.0/encoding/cp1255.enc +0 -20
  410. package/python/lib/tcl9.0/encoding/cp1256.enc +0 -20
  411. package/python/lib/tcl9.0/encoding/cp1257.enc +0 -20
  412. package/python/lib/tcl9.0/encoding/cp1258.enc +0 -20
  413. package/python/lib/tcl9.0/encoding/cp165.enc +0 -20
  414. package/python/lib/tcl9.0/encoding/cp437.enc +0 -20
  415. package/python/lib/tcl9.0/encoding/cp737.enc +0 -20
  416. package/python/lib/tcl9.0/encoding/cp775.enc +0 -20
  417. package/python/lib/tcl9.0/encoding/cp850.enc +0 -20
  418. package/python/lib/tcl9.0/encoding/cp852.enc +0 -20
  419. package/python/lib/tcl9.0/encoding/cp855.enc +0 -20
  420. package/python/lib/tcl9.0/encoding/cp857.enc +0 -20
  421. package/python/lib/tcl9.0/encoding/cp860.enc +0 -20
  422. package/python/lib/tcl9.0/encoding/cp861.enc +0 -20
  423. package/python/lib/tcl9.0/encoding/cp862.enc +0 -20
  424. package/python/lib/tcl9.0/encoding/cp863.enc +0 -20
  425. package/python/lib/tcl9.0/encoding/cp864.enc +0 -20
  426. package/python/lib/tcl9.0/encoding/cp865.enc +0 -20
  427. package/python/lib/tcl9.0/encoding/cp866.enc +0 -20
  428. package/python/lib/tcl9.0/encoding/cp869.enc +0 -20
  429. package/python/lib/tcl9.0/encoding/cp874.enc +0 -20
  430. package/python/lib/tcl9.0/encoding/cp932.enc +0 -801
  431. package/python/lib/tcl9.0/encoding/cp936.enc +0 -2162
  432. package/python/lib/tcl9.0/encoding/cp949.enc +0 -2128
  433. package/python/lib/tcl9.0/encoding/cp950.enc +0 -1499
  434. package/python/lib/tcl9.0/encoding/dingbats.enc +0 -20
  435. package/python/lib/tcl9.0/encoding/ebcdic.enc +0 -20
  436. package/python/lib/tcl9.0/encoding/euc-cn.enc +0 -1397
  437. package/python/lib/tcl9.0/encoding/euc-jp.enc +0 -1353
  438. package/python/lib/tcl9.0/encoding/euc-kr.enc +0 -1533
  439. package/python/lib/tcl9.0/encoding/gb12345.enc +0 -1414
  440. package/python/lib/tcl9.0/encoding/gb1988.enc +0 -20
  441. package/python/lib/tcl9.0/encoding/gb2312-raw.enc +0 -1380
  442. package/python/lib/tcl9.0/encoding/gb2312.enc +0 -1397
  443. package/python/lib/tcl9.0/encoding/iso2022-jp.enc +0 -12
  444. package/python/lib/tcl9.0/encoding/iso2022-kr.enc +0 -7
  445. package/python/lib/tcl9.0/encoding/iso2022.enc +0 -14
  446. package/python/lib/tcl9.0/encoding/iso8859-1.enc +0 -20
  447. package/python/lib/tcl9.0/encoding/iso8859-10.enc +0 -20
  448. package/python/lib/tcl9.0/encoding/iso8859-11.enc +0 -20
  449. package/python/lib/tcl9.0/encoding/iso8859-13.enc +0 -20
  450. package/python/lib/tcl9.0/encoding/iso8859-14.enc +0 -20
  451. package/python/lib/tcl9.0/encoding/iso8859-15.enc +0 -20
  452. package/python/lib/tcl9.0/encoding/iso8859-16.enc +0 -20
  453. package/python/lib/tcl9.0/encoding/iso8859-2.enc +0 -20
  454. package/python/lib/tcl9.0/encoding/iso8859-3.enc +0 -20
  455. package/python/lib/tcl9.0/encoding/iso8859-4.enc +0 -20
  456. package/python/lib/tcl9.0/encoding/iso8859-5.enc +0 -20
  457. package/python/lib/tcl9.0/encoding/iso8859-6.enc +0 -20
  458. package/python/lib/tcl9.0/encoding/iso8859-7.enc +0 -20
  459. package/python/lib/tcl9.0/encoding/iso8859-8.enc +0 -20
  460. package/python/lib/tcl9.0/encoding/iso8859-9.enc +0 -20
  461. package/python/lib/tcl9.0/encoding/jis0201.enc +0 -20
  462. package/python/lib/tcl9.0/encoding/jis0208.enc +0 -1319
  463. package/python/lib/tcl9.0/encoding/jis0212.enc +0 -1159
  464. package/python/lib/tcl9.0/encoding/koi8-r.enc +0 -20
  465. package/python/lib/tcl9.0/encoding/koi8-ru.enc +0 -20
  466. package/python/lib/tcl9.0/encoding/koi8-t.enc +0 -20
  467. package/python/lib/tcl9.0/encoding/koi8-u.enc +0 -20
  468. package/python/lib/tcl9.0/encoding/ksc5601.enc +0 -1516
  469. package/python/lib/tcl9.0/encoding/macCentEuro.enc +0 -20
  470. package/python/lib/tcl9.0/encoding/macCroatian.enc +0 -20
  471. package/python/lib/tcl9.0/encoding/macCyrillic.enc +0 -20
  472. package/python/lib/tcl9.0/encoding/macDingbats.enc +0 -20
  473. package/python/lib/tcl9.0/encoding/macGreek.enc +0 -20
  474. package/python/lib/tcl9.0/encoding/macIceland.enc +0 -20
  475. package/python/lib/tcl9.0/encoding/macJapan.enc +0 -785
  476. package/python/lib/tcl9.0/encoding/macRoman.enc +0 -20
  477. package/python/lib/tcl9.0/encoding/macRomania.enc +0 -20
  478. package/python/lib/tcl9.0/encoding/macThai.enc +0 -20
  479. package/python/lib/tcl9.0/encoding/macTurkish.enc +0 -20
  480. package/python/lib/tcl9.0/encoding/macUkraine.enc +0 -20
  481. package/python/lib/tcl9.0/encoding/shiftjis.enc +0 -690
  482. package/python/lib/tcl9.0/encoding/symbol.enc +0 -20
  483. package/python/lib/tcl9.0/encoding/tis-620.enc +0 -20
  484. package/python/lib/tcl9.0/foreachline.tcl +0 -25
  485. package/python/lib/tcl9.0/history.tcl +0 -335
  486. package/python/lib/tcl9.0/icu.tcl +0 -145
  487. package/python/lib/tcl9.0/init.tcl +0 -772
  488. package/python/lib/tcl9.0/install.tcl +0 -274
  489. package/python/lib/tcl9.0/opt0.4/optparse.tcl +0 -1060
  490. package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +0 -12
  491. package/python/lib/tcl9.0/package.tcl +0 -776
  492. package/python/lib/tcl9.0/parray.tcl +0 -28
  493. package/python/lib/tcl9.0/readfile.tcl +0 -23
  494. package/python/lib/tcl9.0/safe.tcl +0 -1459
  495. package/python/lib/tcl9.0/tclAppInit.c +0 -183
  496. package/python/lib/tcl9.0/tclIndex +0 -112
  497. package/python/lib/tcl9.0/tm.tcl +0 -378
  498. package/python/lib/tcl9.0/word.tcl +0 -155
  499. package/python/lib/tcl9.0/writefile.tcl +0 -37
  500. package/python/lib/thread3.0.6/libtcl9thread3.0.6.dylib +0 -0
  501. package/python/lib/thread3.0.6/libthread3.0.6.dylib +0 -0
  502. package/python/lib/thread3.0.6/pkgIndex.tcl +0 -52
  503. package/python/lib/thread3.0.6/ttrace.tcl +0 -943
  504. package/python/lib/tk9.0/bgerror.tcl +0 -282
  505. package/python/lib/tk9.0/button.tcl +0 -782
  506. package/python/lib/tk9.0/choosedir.tcl +0 -310
  507. package/python/lib/tk9.0/clrpick.tcl +0 -696
  508. package/python/lib/tk9.0/comdlg.tcl +0 -322
  509. package/python/lib/tk9.0/console.tcl +0 -1148
  510. package/python/lib/tk9.0/dialog.tcl +0 -175
  511. package/python/lib/tk9.0/entry.tcl +0 -721
  512. package/python/lib/tk9.0/focus.tcl +0 -178
  513. package/python/lib/tk9.0/fontchooser.tcl +0 -512
  514. package/python/lib/tk9.0/iconbadges.tcl +0 -253
  515. package/python/lib/tk9.0/iconlist.tcl +0 -705
  516. package/python/lib/tk9.0/icons.tcl +0 -54
  517. package/python/lib/tk9.0/images/README +0 -7
  518. package/python/lib/tk9.0/images/logo.eps +0 -2091
  519. package/python/lib/tk9.0/images/logo100.gif +0 -0
  520. package/python/lib/tk9.0/images/logo64.gif +0 -0
  521. package/python/lib/tk9.0/images/logoLarge.gif +0 -0
  522. package/python/lib/tk9.0/images/logoMed.gif +0 -0
  523. package/python/lib/tk9.0/images/pwrdLogo.eps +0 -1897
  524. package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
  525. package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
  526. package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
  527. package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
  528. package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
  529. package/python/lib/tk9.0/images/tai-ku.gif +0 -0
  530. package/python/lib/tk9.0/listbox.tcl +0 -522
  531. package/python/lib/tk9.0/megawidget.tcl +0 -297
  532. package/python/lib/tk9.0/menu.tcl +0 -1376
  533. package/python/lib/tk9.0/mkpsenc.tcl +0 -1488
  534. package/python/lib/tk9.0/msgbox.tcl +0 -454
  535. package/python/lib/tk9.0/optMenu.tcl +0 -43
  536. package/python/lib/tk9.0/palette.tcl +0 -283
  537. package/python/lib/tk9.0/panedwindow.tcl +0 -194
  538. package/python/lib/tk9.0/pkgIndex.tcl +0 -3
  539. package/python/lib/tk9.0/print.tcl +0 -1460
  540. package/python/lib/tk9.0/safetk.tcl +0 -262
  541. package/python/lib/tk9.0/scale.tcl +0 -299
  542. package/python/lib/tk9.0/scaling.tcl +0 -232
  543. package/python/lib/tk9.0/scrlbar.tcl +0 -506
  544. package/python/lib/tk9.0/spinbox.tcl +0 -590
  545. package/python/lib/tk9.0/systray.tcl +0 -483
  546. package/python/lib/tk9.0/tclIndex +0 -252
  547. package/python/lib/tk9.0/tearoff.tcl +0 -155
  548. package/python/lib/tk9.0/text.tcl +0 -1295
  549. package/python/lib/tk9.0/tk.tcl +0 -853
  550. package/python/lib/tk9.0/tkAppInit.c +0 -200
  551. package/python/lib/tk9.0/tkfbox.tcl +0 -1251
  552. package/python/lib/tk9.0/ttk/altTheme.tcl +0 -158
  553. package/python/lib/tk9.0/ttk/aquaTheme.tcl +0 -254
  554. package/python/lib/tk9.0/ttk/button.tcl +0 -83
  555. package/python/lib/tk9.0/ttk/clamTheme.tcl +0 -200
  556. package/python/lib/tk9.0/ttk/classicTheme.tcl +0 -165
  557. package/python/lib/tk9.0/ttk/combobox.tcl +0 -555
  558. package/python/lib/tk9.0/ttk/cursors.tcl +0 -205
  559. package/python/lib/tk9.0/ttk/defaults.tcl +0 -250
  560. package/python/lib/tk9.0/ttk/entry.tcl +0 -678
  561. package/python/lib/tk9.0/ttk/fonts.tcl +0 -152
  562. package/python/lib/tk9.0/ttk/menubutton.tcl +0 -237
  563. package/python/lib/tk9.0/ttk/notebook.tcl +0 -261
  564. package/python/lib/tk9.0/ttk/panedwindow.tcl +0 -89
  565. package/python/lib/tk9.0/ttk/progress.tcl +0 -55
  566. package/python/lib/tk9.0/ttk/scale.tcl +0 -94
  567. package/python/lib/tk9.0/ttk/scrollbar.tcl +0 -119
  568. package/python/lib/tk9.0/ttk/sizegrip.tcl +0 -102
  569. package/python/lib/tk9.0/ttk/spinbox.tcl +0 -204
  570. package/python/lib/tk9.0/ttk/treeview.tcl +0 -464
  571. package/python/lib/tk9.0/ttk/ttk.tcl +0 -220
  572. package/python/lib/tk9.0/ttk/utils.tcl +0 -317
  573. package/python/lib/tk9.0/ttk/vistaTheme.tcl +0 -260
  574. package/python/lib/tk9.0/ttk/winTheme.tcl +0 -123
  575. package/python/lib/tk9.0/ttk/xpTheme.tcl +0 -99
  576. package/python/lib/tk9.0/xmfbox.tcl +0 -982
  577. package/python/share/man/man1/python.1 +0 -630
  578. package/python/share/man/man1/python3.1 +0 -630
  579. package/python/share/man/man1/python3.12.1 +0 -630
  580. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/WHEEL +0 -0
  581. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/entry_points.txt +0 -0
  582. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/NOTICE +0 -0
  583. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1,899 +0,0 @@
1
- /* Abstract Object Interface (many thanks to Jim Fulton) */
2
-
3
- #ifndef Py_ABSTRACTOBJECT_H
4
- #define Py_ABSTRACTOBJECT_H
5
- #ifdef __cplusplus
6
- extern "C" {
7
- #endif
8
-
9
- /* === Object Protocol ================================================== */
10
-
11
- /* Implemented elsewhere:
12
-
13
- int PyObject_Print(PyObject *o, FILE *fp, int flags);
14
-
15
- Print an object 'o' on file 'fp'. Returns -1 on error. The flags argument
16
- is used to enable certain printing options. The only option currently
17
- supported is Py_PRINT_RAW. By default (flags=0), PyObject_Print() formats
18
- the object by calling PyObject_Repr(). If flags equals to Py_PRINT_RAW, it
19
- formats the object by calling PyObject_Str(). */
20
-
21
-
22
- /* Implemented elsewhere:
23
-
24
- int PyObject_HasAttrString(PyObject *o, const char *attr_name);
25
-
26
- Returns 1 if object 'o' has the attribute attr_name, and 0 otherwise.
27
-
28
- This is equivalent to the Python expression: hasattr(o,attr_name).
29
-
30
- This function always succeeds. */
31
-
32
-
33
- /* Implemented elsewhere:
34
-
35
- PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name);
36
-
37
- Retrieve an attributed named attr_name form object o.
38
- Returns the attribute value on success, or NULL on failure.
39
-
40
- This is the equivalent of the Python expression: o.attr_name. */
41
-
42
-
43
- /* Implemented elsewhere:
44
-
45
- int PyObject_HasAttr(PyObject *o, PyObject *attr_name);
46
-
47
- Returns 1 if o has the attribute attr_name, and 0 otherwise.
48
-
49
- This is equivalent to the Python expression: hasattr(o,attr_name).
50
-
51
- This function always succeeds. */
52
-
53
- /* Implemented elsewhere:
54
-
55
- PyObject* PyObject_GetAttr(PyObject *o, PyObject *attr_name);
56
-
57
- Retrieve an attributed named 'attr_name' form object 'o'.
58
- Returns the attribute value on success, or NULL on failure.
59
-
60
- This is the equivalent of the Python expression: o.attr_name. */
61
-
62
-
63
- /* Implemented elsewhere:
64
-
65
- int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v);
66
-
67
- Set the value of the attribute named attr_name, for object 'o',
68
- to the value 'v'. Raise an exception and return -1 on failure; return 0 on
69
- success.
70
-
71
- This is the equivalent of the Python statement o.attr_name=v. */
72
-
73
-
74
- /* Implemented elsewhere:
75
-
76
- int PyObject_SetAttr(PyObject *o, PyObject *attr_name, PyObject *v);
77
-
78
- Set the value of the attribute named attr_name, for object 'o', to the value
79
- 'v'. an exception and return -1 on failure; return 0 on success.
80
-
81
- This is the equivalent of the Python statement o.attr_name=v. */
82
-
83
- /* Implemented as a macro:
84
-
85
- int PyObject_DelAttrString(PyObject *o, const char *attr_name);
86
-
87
- Delete attribute named attr_name, for object o. Returns
88
- -1 on failure.
89
-
90
- This is the equivalent of the Python statement: del o.attr_name. */
91
- #define PyObject_DelAttrString(O, A) PyObject_SetAttrString((O), (A), NULL)
92
-
93
-
94
- /* Implemented as a macro:
95
-
96
- int PyObject_DelAttr(PyObject *o, PyObject *attr_name);
97
-
98
- Delete attribute named attr_name, for object o. Returns -1
99
- on failure. This is the equivalent of the Python
100
- statement: del o.attr_name. */
101
- #define PyObject_DelAttr(O, A) PyObject_SetAttr((O), (A), NULL)
102
-
103
-
104
- /* Implemented elsewhere:
105
-
106
- PyObject *PyObject_Repr(PyObject *o);
107
-
108
- Compute the string representation of object 'o'. Returns the
109
- string representation on success, NULL on failure.
110
-
111
- This is the equivalent of the Python expression: repr(o).
112
-
113
- Called by the repr() built-in function. */
114
-
115
-
116
- /* Implemented elsewhere:
117
-
118
- PyObject *PyObject_Str(PyObject *o);
119
-
120
- Compute the string representation of object, o. Returns the
121
- string representation on success, NULL on failure.
122
-
123
- This is the equivalent of the Python expression: str(o).
124
-
125
- Called by the str() and print() built-in functions. */
126
-
127
-
128
- /* Declared elsewhere
129
-
130
- PyAPI_FUNC(int) PyCallable_Check(PyObject *o);
131
-
132
- Determine if the object, o, is callable. Return 1 if the object is callable
133
- and 0 otherwise.
134
-
135
- This function always succeeds. */
136
-
137
-
138
- #ifdef PY_SSIZE_T_CLEAN
139
- # define PyObject_CallFunction _PyObject_CallFunction_SizeT
140
- # define PyObject_CallMethod _PyObject_CallMethod_SizeT
141
- #endif
142
-
143
-
144
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03090000
145
- /* Call a callable Python object without any arguments */
146
- PyAPI_FUNC(PyObject *) PyObject_CallNoArgs(PyObject *func);
147
- #endif
148
-
149
-
150
- /* Call a callable Python object 'callable' with arguments given by the
151
- tuple 'args' and keywords arguments given by the dictionary 'kwargs'.
152
-
153
- 'args' must not be NULL, use an empty tuple if no arguments are
154
- needed. If no named arguments are needed, 'kwargs' can be NULL.
155
-
156
- This is the equivalent of the Python expression:
157
- callable(*args, **kwargs). */
158
- PyAPI_FUNC(PyObject *) PyObject_Call(PyObject *callable,
159
- PyObject *args, PyObject *kwargs);
160
-
161
-
162
- /* Call a callable Python object 'callable', with arguments given by the
163
- tuple 'args'. If no arguments are needed, then 'args' can be NULL.
164
-
165
- Returns the result of the call on success, or NULL on failure.
166
-
167
- This is the equivalent of the Python expression:
168
- callable(*args). */
169
- PyAPI_FUNC(PyObject *) PyObject_CallObject(PyObject *callable,
170
- PyObject *args);
171
-
172
- /* Call a callable Python object, callable, with a variable number of C
173
- arguments. The C arguments are described using a mkvalue-style format
174
- string.
175
-
176
- The format may be NULL, indicating that no arguments are provided.
177
-
178
- Returns the result of the call on success, or NULL on failure.
179
-
180
- This is the equivalent of the Python expression:
181
- callable(arg1, arg2, ...). */
182
- PyAPI_FUNC(PyObject *) PyObject_CallFunction(PyObject *callable,
183
- const char *format, ...);
184
-
185
- /* Call the method named 'name' of object 'obj' with a variable number of
186
- C arguments. The C arguments are described by a mkvalue format string.
187
-
188
- The format can be NULL, indicating that no arguments are provided.
189
-
190
- Returns the result of the call on success, or NULL on failure.
191
-
192
- This is the equivalent of the Python expression:
193
- obj.name(arg1, arg2, ...). */
194
- PyAPI_FUNC(PyObject *) PyObject_CallMethod(PyObject *obj,
195
- const char *name,
196
- const char *format, ...);
197
-
198
- PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
199
- const char *format,
200
- ...);
201
-
202
- PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *obj,
203
- const char *name,
204
- const char *format,
205
- ...);
206
-
207
- /* Call a callable Python object 'callable' with a variable number of C
208
- arguments. The C arguments are provided as PyObject* values, terminated
209
- by a NULL.
210
-
211
- Returns the result of the call on success, or NULL on failure.
212
-
213
- This is the equivalent of the Python expression:
214
- callable(arg1, arg2, ...). */
215
- PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
216
- ...);
217
-
218
- /* Call the method named 'name' of object 'obj' with a variable number of
219
- C arguments. The C arguments are provided as PyObject* values, terminated
220
- by NULL.
221
-
222
- Returns the result of the call on success, or NULL on failure.
223
-
224
- This is the equivalent of the Python expression: obj.name(*args). */
225
-
226
- PyAPI_FUNC(PyObject *) PyObject_CallMethodObjArgs(
227
- PyObject *obj,
228
- PyObject *name,
229
- ...);
230
-
231
- /* Given a vectorcall nargsf argument, return the actual number of arguments.
232
- * (For use outside the limited API, this is re-defined as a static inline
233
- * function in cpython/abstract.h)
234
- */
235
- PyAPI_FUNC(Py_ssize_t) PyVectorcall_NARGS(size_t nargsf);
236
-
237
- /* Call "callable" (which must support vectorcall) with positional arguments
238
- "tuple" and keyword arguments "dict". "dict" may also be NULL */
239
- PyAPI_FUNC(PyObject *) PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict);
240
-
241
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000
242
- #define PY_VECTORCALL_ARGUMENTS_OFFSET \
243
- (_Py_STATIC_CAST(size_t, 1) << (8 * sizeof(size_t) - 1))
244
-
245
- /* Perform a PEP 590-style vector call on 'callable' */
246
- PyAPI_FUNC(PyObject *) PyObject_Vectorcall(
247
- PyObject *callable,
248
- PyObject *const *args,
249
- size_t nargsf,
250
- PyObject *kwnames);
251
-
252
- /* Call the method 'name' on args[0] with arguments in args[1..nargsf-1]. */
253
- PyAPI_FUNC(PyObject *) PyObject_VectorcallMethod(
254
- PyObject *name, PyObject *const *args,
255
- size_t nargsf, PyObject *kwnames);
256
- #endif
257
-
258
- /* Implemented elsewhere:
259
-
260
- Py_hash_t PyObject_Hash(PyObject *o);
261
-
262
- Compute and return the hash, hash_value, of an object, o. On
263
- failure, return -1.
264
-
265
- This is the equivalent of the Python expression: hash(o). */
266
-
267
-
268
- /* Implemented elsewhere:
269
-
270
- int PyObject_IsTrue(PyObject *o);
271
-
272
- Returns 1 if the object, o, is considered to be true, 0 if o is
273
- considered to be false and -1 on failure.
274
-
275
- This is equivalent to the Python expression: not not o. */
276
-
277
-
278
- /* Implemented elsewhere:
279
-
280
- int PyObject_Not(PyObject *o);
281
-
282
- Returns 0 if the object, o, is considered to be true, 1 if o is
283
- considered to be false and -1 on failure.
284
-
285
- This is equivalent to the Python expression: not o. */
286
-
287
-
288
- /* Get the type of an object.
289
-
290
- On success, returns a type object corresponding to the object type of object
291
- 'o'. On failure, returns NULL.
292
-
293
- This is equivalent to the Python expression: type(o) */
294
- PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o);
295
-
296
-
297
- /* Return the size of object 'o'. If the object 'o' provides both sequence and
298
- mapping protocols, the sequence size is returned.
299
-
300
- On error, -1 is returned.
301
-
302
- This is the equivalent to the Python expression: len(o) */
303
- PyAPI_FUNC(Py_ssize_t) PyObject_Size(PyObject *o);
304
-
305
-
306
- /* For DLL compatibility */
307
- #undef PyObject_Length
308
- PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o);
309
- #define PyObject_Length PyObject_Size
310
-
311
- /* Return element of 'o' corresponding to the object 'key'. Return NULL
312
- on failure.
313
-
314
- This is the equivalent of the Python expression: o[key] */
315
- PyAPI_FUNC(PyObject *) PyObject_GetItem(PyObject *o, PyObject *key);
316
-
317
-
318
- /* Map the object 'key' to the value 'v' into 'o'.
319
-
320
- Raise an exception and return -1 on failure; return 0 on success.
321
-
322
- This is the equivalent of the Python statement: o[key]=v. */
323
- PyAPI_FUNC(int) PyObject_SetItem(PyObject *o, PyObject *key, PyObject *v);
324
-
325
- /* Remove the mapping for the string 'key' from the object 'o'.
326
- Returns -1 on failure.
327
-
328
- This is equivalent to the Python statement: del o[key]. */
329
- PyAPI_FUNC(int) PyObject_DelItemString(PyObject *o, const char *key);
330
-
331
- /* Delete the mapping for the object 'key' from the object 'o'.
332
- Returns -1 on failure.
333
-
334
- This is the equivalent of the Python statement: del o[key]. */
335
- PyAPI_FUNC(int) PyObject_DelItem(PyObject *o, PyObject *key);
336
-
337
-
338
- /* === Old Buffer API ============================================ */
339
-
340
- /* FIXME: usage of these should all be replaced in Python itself
341
- but for backwards compatibility we will implement them.
342
- Their usage without a corresponding "unlock" mechanism
343
- may create issues (but they would already be there). */
344
-
345
- /* Takes an arbitrary object which must support the (character, single segment)
346
- buffer interface and returns a pointer to a read-only memory location
347
- usable as character based input for subsequent processing.
348
-
349
- Return 0 on success. buffer and buffer_len are only set in case no error
350
- occurs. Otherwise, -1 is returned and an exception set. */
351
- Py_DEPRECATED(3.0)
352
- PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
353
- const char **buffer,
354
- Py_ssize_t *buffer_len);
355
-
356
- /* Checks whether an arbitrary object supports the (character, single segment)
357
- buffer interface.
358
-
359
- Returns 1 on success, 0 on failure. */
360
- Py_DEPRECATED(3.0) PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj);
361
-
362
- /* Same as PyObject_AsCharBuffer() except that this API expects (readable,
363
- single segment) buffer interface and returns a pointer to a read-only memory
364
- location which can contain arbitrary data.
365
-
366
- 0 is returned on success. buffer and buffer_len are only set in case no
367
- error occurs. Otherwise, -1 is returned and an exception set. */
368
- Py_DEPRECATED(3.0)
369
- PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
370
- const void **buffer,
371
- Py_ssize_t *buffer_len);
372
-
373
- /* Takes an arbitrary object which must support the (writable, single segment)
374
- buffer interface and returns a pointer to a writable memory location in
375
- buffer of size 'buffer_len'.
376
-
377
- Return 0 on success. buffer and buffer_len are only set in case no error
378
- occurs. Otherwise, -1 is returned and an exception set. */
379
- Py_DEPRECATED(3.0)
380
- PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
381
- void **buffer,
382
- Py_ssize_t *buffer_len);
383
-
384
-
385
- /* === New Buffer API ============================================ */
386
-
387
- /* Takes an arbitrary object and returns the result of calling
388
- obj.__format__(format_spec). */
389
- PyAPI_FUNC(PyObject *) PyObject_Format(PyObject *obj,
390
- PyObject *format_spec);
391
-
392
-
393
- /* ==== Iterators ================================================ */
394
-
395
- /* Takes an object and returns an iterator for it.
396
- This is typically a new iterator but if the argument is an iterator, this
397
- returns itself. */
398
- PyAPI_FUNC(PyObject *) PyObject_GetIter(PyObject *);
399
-
400
- /* Takes an AsyncIterable object and returns an AsyncIterator for it.
401
- This is typically a new iterator but if the argument is an AsyncIterator,
402
- this returns itself. */
403
- PyAPI_FUNC(PyObject *) PyObject_GetAIter(PyObject *);
404
-
405
- /* Returns non-zero if the object 'obj' provides iterator protocols, and 0 otherwise.
406
-
407
- This function always succeeds. */
408
- PyAPI_FUNC(int) PyIter_Check(PyObject *);
409
-
410
- /* Returns non-zero if the object 'obj' provides AsyncIterator protocols, and 0 otherwise.
411
-
412
- This function always succeeds. */
413
- PyAPI_FUNC(int) PyAIter_Check(PyObject *);
414
-
415
- /* Takes an iterator object and calls its tp_iternext slot,
416
- returning the next value.
417
-
418
- If the iterator is exhausted, this returns NULL without setting an
419
- exception.
420
-
421
- NULL with an exception means an error occurred. */
422
- PyAPI_FUNC(PyObject *) PyIter_Next(PyObject *);
423
-
424
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
425
-
426
- /* Takes generator, coroutine or iterator object and sends the value into it.
427
- Returns:
428
- - PYGEN_RETURN (0) if generator has returned.
429
- 'result' parameter is filled with return value
430
- - PYGEN_ERROR (-1) if exception was raised.
431
- 'result' parameter is NULL
432
- - PYGEN_NEXT (1) if generator has yielded.
433
- 'result' parameter is filled with yielded value. */
434
- PyAPI_FUNC(PySendResult) PyIter_Send(PyObject *, PyObject *, PyObject **);
435
- #endif
436
-
437
-
438
- /* === Number Protocol ================================================== */
439
-
440
- /* Returns 1 if the object 'o' provides numeric protocols, and 0 otherwise.
441
-
442
- This function always succeeds. */
443
- PyAPI_FUNC(int) PyNumber_Check(PyObject *o);
444
-
445
- /* Returns the result of adding o1 and o2, or NULL on failure.
446
-
447
- This is the equivalent of the Python expression: o1 + o2. */
448
- PyAPI_FUNC(PyObject *) PyNumber_Add(PyObject *o1, PyObject *o2);
449
-
450
- /* Returns the result of subtracting o2 from o1, or NULL on failure.
451
-
452
- This is the equivalent of the Python expression: o1 - o2. */
453
- PyAPI_FUNC(PyObject *) PyNumber_Subtract(PyObject *o1, PyObject *o2);
454
-
455
- /* Returns the result of multiplying o1 and o2, or NULL on failure.
456
-
457
- This is the equivalent of the Python expression: o1 * o2. */
458
- PyAPI_FUNC(PyObject *) PyNumber_Multiply(PyObject *o1, PyObject *o2);
459
-
460
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
461
- /* This is the equivalent of the Python expression: o1 @ o2. */
462
- PyAPI_FUNC(PyObject *) PyNumber_MatrixMultiply(PyObject *o1, PyObject *o2);
463
- #endif
464
-
465
- /* Returns the result of dividing o1 by o2 giving an integral result,
466
- or NULL on failure.
467
-
468
- This is the equivalent of the Python expression: o1 // o2. */
469
- PyAPI_FUNC(PyObject *) PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
470
-
471
- /* Returns the result of dividing o1 by o2 giving a float result, or NULL on
472
- failure.
473
-
474
- This is the equivalent of the Python expression: o1 / o2. */
475
- PyAPI_FUNC(PyObject *) PyNumber_TrueDivide(PyObject *o1, PyObject *o2);
476
-
477
- /* Returns the remainder of dividing o1 by o2, or NULL on failure.
478
-
479
- This is the equivalent of the Python expression: o1 % o2. */
480
- PyAPI_FUNC(PyObject *) PyNumber_Remainder(PyObject *o1, PyObject *o2);
481
-
482
- /* See the built-in function divmod.
483
-
484
- Returns NULL on failure.
485
-
486
- This is the equivalent of the Python expression: divmod(o1, o2). */
487
- PyAPI_FUNC(PyObject *) PyNumber_Divmod(PyObject *o1, PyObject *o2);
488
-
489
- /* See the built-in function pow. Returns NULL on failure.
490
-
491
- This is the equivalent of the Python expression: pow(o1, o2, o3),
492
- where o3 is optional. */
493
- PyAPI_FUNC(PyObject *) PyNumber_Power(PyObject *o1, PyObject *o2,
494
- PyObject *o3);
495
-
496
- /* Returns the negation of o on success, or NULL on failure.
497
-
498
- This is the equivalent of the Python expression: -o. */
499
- PyAPI_FUNC(PyObject *) PyNumber_Negative(PyObject *o);
500
-
501
- /* Returns the positive of o on success, or NULL on failure.
502
-
503
- This is the equivalent of the Python expression: +o. */
504
- PyAPI_FUNC(PyObject *) PyNumber_Positive(PyObject *o);
505
-
506
- /* Returns the absolute value of 'o', or NULL on failure.
507
-
508
- This is the equivalent of the Python expression: abs(o). */
509
- PyAPI_FUNC(PyObject *) PyNumber_Absolute(PyObject *o);
510
-
511
- /* Returns the bitwise negation of 'o' on success, or NULL on failure.
512
-
513
- This is the equivalent of the Python expression: ~o. */
514
- PyAPI_FUNC(PyObject *) PyNumber_Invert(PyObject *o);
515
-
516
- /* Returns the result of left shifting o1 by o2 on success, or NULL on failure.
517
-
518
- This is the equivalent of the Python expression: o1 << o2. */
519
- PyAPI_FUNC(PyObject *) PyNumber_Lshift(PyObject *o1, PyObject *o2);
520
-
521
- /* Returns the result of right shifting o1 by o2 on success, or NULL on
522
- failure.
523
-
524
- This is the equivalent of the Python expression: o1 >> o2. */
525
- PyAPI_FUNC(PyObject *) PyNumber_Rshift(PyObject *o1, PyObject *o2);
526
-
527
- /* Returns the result of bitwise and of o1 and o2 on success, or NULL on
528
- failure.
529
-
530
- This is the equivalent of the Python expression: o1 & o2. */
531
- PyAPI_FUNC(PyObject *) PyNumber_And(PyObject *o1, PyObject *o2);
532
-
533
- /* Returns the bitwise exclusive or of o1 by o2 on success, or NULL on failure.
534
-
535
- This is the equivalent of the Python expression: o1 ^ o2. */
536
- PyAPI_FUNC(PyObject *) PyNumber_Xor(PyObject *o1, PyObject *o2);
537
-
538
- /* Returns the result of bitwise or on o1 and o2 on success, or NULL on
539
- failure.
540
-
541
- This is the equivalent of the Python expression: o1 | o2. */
542
- PyAPI_FUNC(PyObject *) PyNumber_Or(PyObject *o1, PyObject *o2);
543
-
544
- /* Returns 1 if obj is an index integer (has the nb_index slot of the
545
- tp_as_number structure filled in), and 0 otherwise. */
546
- PyAPI_FUNC(int) PyIndex_Check(PyObject *);
547
-
548
- /* Returns the object 'o' converted to a Python int, or NULL with an exception
549
- raised on failure. */
550
- PyAPI_FUNC(PyObject *) PyNumber_Index(PyObject *o);
551
-
552
- /* Returns the object 'o' converted to Py_ssize_t by going through
553
- PyNumber_Index() first.
554
-
555
- If an overflow error occurs while converting the int to Py_ssize_t, then the
556
- second argument 'exc' is the error-type to return. If it is NULL, then the
557
- overflow error is cleared and the value is clipped. */
558
- PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
559
-
560
- /* Returns the object 'o' converted to an integer object on success, or NULL
561
- on failure.
562
-
563
- This is the equivalent of the Python expression: int(o). */
564
- PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o);
565
-
566
- /* Returns the object 'o' converted to a float object on success, or NULL
567
- on failure.
568
-
569
- This is the equivalent of the Python expression: float(o). */
570
- PyAPI_FUNC(PyObject *) PyNumber_Float(PyObject *o);
571
-
572
-
573
- /* --- In-place variants of (some of) the above number protocol functions -- */
574
-
575
- /* Returns the result of adding o2 to o1, possibly in-place, or NULL
576
- on failure.
577
-
578
- This is the equivalent of the Python expression: o1 += o2. */
579
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2);
580
-
581
- /* Returns the result of subtracting o2 from o1, possibly in-place or
582
- NULL on failure.
583
-
584
- This is the equivalent of the Python expression: o1 -= o2. */
585
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2);
586
-
587
- /* Returns the result of multiplying o1 by o2, possibly in-place, or NULL on
588
- failure.
589
-
590
- This is the equivalent of the Python expression: o1 *= o2. */
591
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2);
592
-
593
- #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
594
- /* This is the equivalent of the Python expression: o1 @= o2. */
595
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceMatrixMultiply(PyObject *o1, PyObject *o2);
596
- #endif
597
-
598
- /* Returns the result of dividing o1 by o2 giving an integral result, possibly
599
- in-place, or NULL on failure.
600
-
601
- This is the equivalent of the Python expression: o1 /= o2. */
602
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceFloorDivide(PyObject *o1,
603
- PyObject *o2);
604
-
605
- /* Returns the result of dividing o1 by o2 giving a float result, possibly
606
- in-place, or null on failure.
607
-
608
- This is the equivalent of the Python expression: o1 /= o2. */
609
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceTrueDivide(PyObject *o1,
610
- PyObject *o2);
611
-
612
- /* Returns the remainder of dividing o1 by o2, possibly in-place, or NULL on
613
- failure.
614
-
615
- This is the equivalent of the Python expression: o1 %= o2. */
616
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2);
617
-
618
- /* Returns the result of raising o1 to the power of o2, possibly in-place,
619
- or NULL on failure.
620
-
621
- This is the equivalent of the Python expression: o1 **= o2,
622
- or o1 = pow(o1, o2, o3) if o3 is present. */
623
- PyAPI_FUNC(PyObject *) PyNumber_InPlacePower(PyObject *o1, PyObject *o2,
624
- PyObject *o3);
625
-
626
- /* Returns the result of left shifting o1 by o2, possibly in-place, or NULL
627
- on failure.
628
-
629
- This is the equivalent of the Python expression: o1 <<= o2. */
630
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2);
631
-
632
- /* Returns the result of right shifting o1 by o2, possibly in-place or NULL
633
- on failure.
634
-
635
- This is the equivalent of the Python expression: o1 >>= o2. */
636
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2);
637
-
638
- /* Returns the result of bitwise and of o1 and o2, possibly in-place, or NULL
639
- on failure.
640
-
641
- This is the equivalent of the Python expression: o1 &= o2. */
642
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2);
643
-
644
- /* Returns the bitwise exclusive or of o1 by o2, possibly in-place, or NULL
645
- on failure.
646
-
647
- This is the equivalent of the Python expression: o1 ^= o2. */
648
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceXor(PyObject *o1, PyObject *o2);
649
-
650
- /* Returns the result of bitwise or of o1 and o2, possibly in-place,
651
- or NULL on failure.
652
-
653
- This is the equivalent of the Python expression: o1 |= o2. */
654
- PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
655
-
656
- /* Returns the integer n converted to a string with a base, with a base
657
- marker of 0b, 0o or 0x prefixed if applicable.
658
-
659
- If n is not an int object, it is converted with PyNumber_Index first. */
660
- PyAPI_FUNC(PyObject *) PyNumber_ToBase(PyObject *n, int base);
661
-
662
-
663
- /* === Sequence protocol ================================================ */
664
-
665
- /* Return 1 if the object provides sequence protocol, and zero
666
- otherwise.
667
-
668
- This function always succeeds. */
669
- PyAPI_FUNC(int) PySequence_Check(PyObject *o);
670
-
671
- /* Return the size of sequence object o, or -1 on failure. */
672
- PyAPI_FUNC(Py_ssize_t) PySequence_Size(PyObject *o);
673
-
674
- /* For DLL compatibility */
675
- #undef PySequence_Length
676
- PyAPI_FUNC(Py_ssize_t) PySequence_Length(PyObject *o);
677
- #define PySequence_Length PySequence_Size
678
-
679
-
680
- /* Return the concatenation of o1 and o2 on success, and NULL on failure.
681
-
682
- This is the equivalent of the Python expression: o1 + o2. */
683
- PyAPI_FUNC(PyObject *) PySequence_Concat(PyObject *o1, PyObject *o2);
684
-
685
- /* Return the result of repeating sequence object 'o' 'count' times,
686
- or NULL on failure.
687
-
688
- This is the equivalent of the Python expression: o * count. */
689
- PyAPI_FUNC(PyObject *) PySequence_Repeat(PyObject *o, Py_ssize_t count);
690
-
691
- /* Return the ith element of o, or NULL on failure.
692
-
693
- This is the equivalent of the Python expression: o[i]. */
694
- PyAPI_FUNC(PyObject *) PySequence_GetItem(PyObject *o, Py_ssize_t i);
695
-
696
- /* Return the slice of sequence object o between i1 and i2, or NULL on failure.
697
-
698
- This is the equivalent of the Python expression: o[i1:i2]. */
699
- PyAPI_FUNC(PyObject *) PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
700
-
701
- /* Assign object 'v' to the ith element of the sequence 'o'. Raise an exception
702
- and return -1 on failure; return 0 on success.
703
-
704
- This is the equivalent of the Python statement o[i] = v. */
705
- PyAPI_FUNC(int) PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v);
706
-
707
- /* Delete the 'i'-th element of the sequence 'v'. Returns -1 on failure.
708
-
709
- This is the equivalent of the Python statement: del o[i]. */
710
- PyAPI_FUNC(int) PySequence_DelItem(PyObject *o, Py_ssize_t i);
711
-
712
- /* Assign the sequence object 'v' to the slice in sequence object 'o',
713
- from 'i1' to 'i2'. Returns -1 on failure.
714
-
715
- This is the equivalent of the Python statement: o[i1:i2] = v. */
716
- PyAPI_FUNC(int) PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2,
717
- PyObject *v);
718
-
719
- /* Delete the slice in sequence object 'o' from 'i1' to 'i2'.
720
- Returns -1 on failure.
721
-
722
- This is the equivalent of the Python statement: del o[i1:i2]. */
723
- PyAPI_FUNC(int) PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
724
-
725
- /* Returns the sequence 'o' as a tuple on success, and NULL on failure.
726
-
727
- This is equivalent to the Python expression: tuple(o). */
728
- PyAPI_FUNC(PyObject *) PySequence_Tuple(PyObject *o);
729
-
730
- /* Returns the sequence 'o' as a list on success, and NULL on failure.
731
- This is equivalent to the Python expression: list(o) */
732
- PyAPI_FUNC(PyObject *) PySequence_List(PyObject *o);
733
-
734
- /* Return the sequence 'o' as a list, unless it's already a tuple or list.
735
-
736
- Use PySequence_Fast_GET_ITEM to access the members of this list, and
737
- PySequence_Fast_GET_SIZE to get its length.
738
-
739
- Returns NULL on failure. If the object does not support iteration, raises a
740
- TypeError exception with 'm' as the message text. */
741
- PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
742
-
743
- /* Return the size of the sequence 'o', assuming that 'o' was returned by
744
- PySequence_Fast and is not NULL. */
745
- #define PySequence_Fast_GET_SIZE(o) \
746
- (PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
747
-
748
- /* Return the 'i'-th element of the sequence 'o', assuming that o was returned
749
- by PySequence_Fast, and that i is within bounds. */
750
- #define PySequence_Fast_GET_ITEM(o, i)\
751
- (PyList_Check(o) ? PyList_GET_ITEM((o), (i)) : PyTuple_GET_ITEM((o), (i)))
752
-
753
- /* Return a pointer to the underlying item array for
754
- an object returned by PySequence_Fast */
755
- #define PySequence_Fast_ITEMS(sf) \
756
- (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
757
- : ((PyTupleObject *)(sf))->ob_item)
758
-
759
- /* Return the number of occurrences on value on 'o', that is, return
760
- the number of keys for which o[key] == value.
761
-
762
- On failure, return -1. This is equivalent to the Python expression:
763
- o.count(value). */
764
- PyAPI_FUNC(Py_ssize_t) PySequence_Count(PyObject *o, PyObject *value);
765
-
766
- /* Return 1 if 'ob' is in the sequence 'seq'; 0 if 'ob' is not in the sequence
767
- 'seq'; -1 on error.
768
-
769
- Use __contains__ if possible, else _PySequence_IterSearch(). */
770
- PyAPI_FUNC(int) PySequence_Contains(PyObject *seq, PyObject *ob);
771
-
772
- /* For DLL-level backwards compatibility */
773
- #undef PySequence_In
774
- /* Determine if the sequence 'o' contains 'value'. If an item in 'o' is equal
775
- to 'value', return 1, otherwise return 0. On error, return -1.
776
-
777
- This is equivalent to the Python expression: value in o. */
778
- PyAPI_FUNC(int) PySequence_In(PyObject *o, PyObject *value);
779
-
780
- /* For source-level backwards compatibility */
781
- #define PySequence_In PySequence_Contains
782
-
783
-
784
- /* Return the first index for which o[i] == value.
785
- On error, return -1.
786
-
787
- This is equivalent to the Python expression: o.index(value). */
788
- PyAPI_FUNC(Py_ssize_t) PySequence_Index(PyObject *o, PyObject *value);
789
-
790
-
791
- /* --- In-place versions of some of the above Sequence functions --- */
792
-
793
- /* Append sequence 'o2' to sequence 'o1', in-place when possible. Return the
794
- resulting object, which could be 'o1', or NULL on failure.
795
-
796
- This is the equivalent of the Python expression: o1 += o2. */
797
- PyAPI_FUNC(PyObject *) PySequence_InPlaceConcat(PyObject *o1, PyObject *o2);
798
-
799
- /* Repeat sequence 'o' by 'count', in-place when possible. Return the resulting
800
- object, which could be 'o', or NULL on failure.
801
-
802
- This is the equivalent of the Python expression: o1 *= count. */
803
- PyAPI_FUNC(PyObject *) PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count);
804
-
805
-
806
- /* === Mapping protocol ================================================= */
807
-
808
- /* Return 1 if the object provides mapping protocol, and 0 otherwise.
809
-
810
- This function always succeeds. */
811
- PyAPI_FUNC(int) PyMapping_Check(PyObject *o);
812
-
813
- /* Returns the number of keys in mapping object 'o' on success, and -1 on
814
- failure. This is equivalent to the Python expression: len(o). */
815
- PyAPI_FUNC(Py_ssize_t) PyMapping_Size(PyObject *o);
816
-
817
- /* For DLL compatibility */
818
- #undef PyMapping_Length
819
- PyAPI_FUNC(Py_ssize_t) PyMapping_Length(PyObject *o);
820
- #define PyMapping_Length PyMapping_Size
821
-
822
-
823
- /* Implemented as a macro:
824
-
825
- int PyMapping_DelItemString(PyObject *o, const char *key);
826
-
827
- Remove the mapping for the string 'key' from the mapping 'o'. Returns -1 on
828
- failure.
829
-
830
- This is equivalent to the Python statement: del o[key]. */
831
- #define PyMapping_DelItemString(O, K) PyObject_DelItemString((O), (K))
832
-
833
- /* Implemented as a macro:
834
-
835
- int PyMapping_DelItem(PyObject *o, PyObject *key);
836
-
837
- Remove the mapping for the object 'key' from the mapping object 'o'.
838
- Returns -1 on failure.
839
-
840
- This is equivalent to the Python statement: del o[key]. */
841
- #define PyMapping_DelItem(O, K) PyObject_DelItem((O), (K))
842
-
843
- /* On success, return 1 if the mapping object 'o' has the key 'key',
844
- and 0 otherwise.
845
-
846
- This is equivalent to the Python expression: key in o.
847
-
848
- This function always succeeds. */
849
- PyAPI_FUNC(int) PyMapping_HasKeyString(PyObject *o, const char *key);
850
-
851
- /* Return 1 if the mapping object has the key 'key', and 0 otherwise.
852
-
853
- This is equivalent to the Python expression: key in o.
854
-
855
- This function always succeeds. */
856
- PyAPI_FUNC(int) PyMapping_HasKey(PyObject *o, PyObject *key);
857
-
858
- /* On success, return a list or tuple of the keys in mapping object 'o'.
859
- On failure, return NULL. */
860
- PyAPI_FUNC(PyObject *) PyMapping_Keys(PyObject *o);
861
-
862
- /* On success, return a list or tuple of the values in mapping object 'o'.
863
- On failure, return NULL. */
864
- PyAPI_FUNC(PyObject *) PyMapping_Values(PyObject *o);
865
-
866
- /* On success, return a list or tuple of the items in mapping object 'o',
867
- where each item is a tuple containing a key-value pair. On failure, return
868
- NULL. */
869
- PyAPI_FUNC(PyObject *) PyMapping_Items(PyObject *o);
870
-
871
- /* Return element of 'o' corresponding to the string 'key' or NULL on failure.
872
-
873
- This is the equivalent of the Python expression: o[key]. */
874
- PyAPI_FUNC(PyObject *) PyMapping_GetItemString(PyObject *o,
875
- const char *key);
876
-
877
- /* Map the string 'key' to the value 'v' in the mapping 'o'.
878
- Returns -1 on failure.
879
-
880
- This is the equivalent of the Python statement: o[key]=v. */
881
- PyAPI_FUNC(int) PyMapping_SetItemString(PyObject *o, const char *key,
882
- PyObject *value);
883
-
884
- /* isinstance(object, typeorclass) */
885
- PyAPI_FUNC(int) PyObject_IsInstance(PyObject *object, PyObject *typeorclass);
886
-
887
- /* issubclass(object, typeorclass) */
888
- PyAPI_FUNC(int) PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
889
-
890
- #ifndef Py_LIMITED_API
891
- # define Py_CPYTHON_ABSTRACTOBJECT_H
892
- # include "cpython/abstract.h"
893
- # undef Py_CPYTHON_ABSTRACTOBJECT_H
894
- #endif
895
-
896
- #ifdef __cplusplus
897
- }
898
- #endif
899
- #endif /* Py_ABSTRACTOBJECT_H */