jasonfan commited on
Commit
4472180
·
verified ·
1 Parent(s): 24e943b

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/INSTALLER +1 -0
  2. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/METADATA +330 -0
  3. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/RECORD +12 -0
  4. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/REQUESTED +0 -0
  5. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/WHEEL +5 -0
  6. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/direct_url.json +1 -0
  7. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/licenses/LICENSE +22 -0
  8. miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/top_level.txt +2 -0
  9. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/2to3 +5 -0
  10. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/2to3-3.10 +5 -0
  11. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/idle3 +5 -0
  12. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/idle3.10 +5 -0
  13. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/pydoc +5 -0
  14. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/pydoc3 +5 -0
  15. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/pydoc3.10 +5 -0
  16. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/python3-config +116 -0
  17. miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/python3.10-config +116 -0
  18. miniconda3/pkgs/python-3.10.20-h741d88c_0/compiler_compat/README +2 -0
  19. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/Python.h +148 -0
  20. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/abstract.h +873 -0
  21. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/bltinmodule.h +14 -0
  22. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/boolobject.h +43 -0
  23. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/bytearrayobject.h +46 -0
  24. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/bytesobject.h +69 -0
  25. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cellobject.h +29 -0
  26. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/ceval.h +158 -0
  27. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/classobject.h +57 -0
  28. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/code.h +20 -0
  29. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/codecs.h +248 -0
  30. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/compile.h +25 -0
  31. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/complexobject.h +69 -0
  32. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/context.h +81 -0
  33. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/abstract.h +373 -0
  34. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/bytearrayobject.h +20 -0
  35. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/bytesobject.h +122 -0
  36. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/ceval.h +30 -0
  37. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/code.h +184 -0
  38. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/compile.h +54 -0
  39. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/dictobject.h +84 -0
  40. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/fileobject.h +18 -0
  41. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/fileutils.h +172 -0
  42. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/frameobject.h +94 -0
  43. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/import.h +46 -0
  44. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/initconfig.h +249 -0
  45. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/interpreteridobject.h +11 -0
  46. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/listobject.h +34 -0
  47. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/methodobject.h +35 -0
  48. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/object.h +552 -0
  49. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/objimpl.h +100 -0
  50. miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/odictobject.h +43 -0
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ conda
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/METADATA ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: PySocks
3
+ Version: 1.7.1
4
+ Summary: A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
5
+ Home-page: https://github.com/Anorov/PySocks
6
+ Author: Anorov
7
+ Author-email: anorov.vorona@gmail.com
8
+ License: BSD
9
+ Keywords: socks,proxy
10
+ Classifier: Programming Language :: Python :: 2
11
+ Classifier: Programming Language :: Python :: 2.7
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.4
14
+ Classifier: Programming Language :: Python :: 3.5
15
+ Classifier: Programming Language :: Python :: 3.6
16
+ Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: keywords
26
+ Dynamic: license
27
+ Dynamic: license-file
28
+ Dynamic: requires-python
29
+ Dynamic: summary
30
+
31
+ PySocks
32
+ =======
33
+
34
+ PySocks lets you send traffic through SOCKS and HTTP proxy servers. It is a modern fork of [SocksiPy](http://socksipy.sourceforge.net/) with bug fixes and extra features.
35
+
36
+ Acts as a drop-in replacement to the socket module. Seamlessly configure SOCKS proxies for any socket object by calling `socket_object.set_proxy()`.
37
+
38
+ ----------------
39
+
40
+ Features
41
+ ========
42
+
43
+ * SOCKS proxy client for Python 2.7 and 3.4+
44
+ * TCP supported
45
+ * UDP mostly supported (issues may occur in some edge cases)
46
+ * HTTP proxy client included but not supported or recommended (you should use urllib2's or requests' own HTTP proxy interface)
47
+ * urllib2 handler included. `pip install` / `setup.py install` will automatically install the `sockshandler` module.
48
+
49
+ Installation
50
+ ============
51
+
52
+ pip install PySocks
53
+
54
+ Or download the tarball / `git clone` and...
55
+
56
+ python setup.py install
57
+
58
+ These will install both the `socks` and `sockshandler` modules.
59
+
60
+ Alternatively, include just `socks.py` in your project.
61
+
62
+ --------------------------------------------
63
+
64
+ *Warning:* PySocks/SocksiPy only supports HTTP proxies that use CONNECT tunneling. Certain HTTP proxies may not work with this library. If you wish to use HTTP (not SOCKS) proxies, it is recommended that you rely on your HTTP client's native proxy support (`proxies` dict for `requests`, or `urllib2.ProxyHandler` for `urllib2`) instead.
65
+
66
+ --------------------------------------------
67
+
68
+ Usage
69
+ =====
70
+
71
+ ## socks.socksocket ##
72
+
73
+ import socks
74
+
75
+ s = socks.socksocket() # Same API as socket.socket in the standard lib
76
+
77
+ s.set_proxy(socks.SOCKS5, "localhost") # SOCKS4 and SOCKS5 use port 1080 by default
78
+ # Or
79
+ s.set_proxy(socks.SOCKS4, "localhost", 4444)
80
+ # Or
81
+ s.set_proxy(socks.HTTP, "5.5.5.5", 8888)
82
+
83
+ # Can be treated identical to a regular socket object
84
+ s.connect(("www.somesite.com", 80))
85
+ s.sendall("GET / HTTP/1.1 ...")
86
+ print s.recv(4096)
87
+
88
+ ## Monkeypatching ##
89
+
90
+ To monkeypatch the entire standard library with a single default proxy:
91
+
92
+ import urllib2
93
+ import socket
94
+ import socks
95
+
96
+ socks.set_default_proxy(socks.SOCKS5, "localhost")
97
+ socket.socket = socks.socksocket
98
+
99
+ urllib2.urlopen("http://www.somesite.com/") # All requests will pass through the SOCKS proxy
100
+
101
+ Note that monkeypatching may not work for all standard modules or for all third party modules, and generally isn't recommended. Monkeypatching is usually an anti-pattern in Python.
102
+
103
+ ## urllib2 Handler ##
104
+
105
+ Example use case with the `sockshandler` urllib2 handler. Note that you must import both `socks` and `sockshandler`, as the handler is its own module separate from PySocks. The module is included in the PyPI package.
106
+
107
+ import urllib2
108
+ import socks
109
+ from sockshandler import SocksiPyHandler
110
+
111
+ opener = urllib2.build_opener(SocksiPyHandler(socks.SOCKS5, "127.0.0.1", 9050))
112
+ print opener.open("http://www.somesite.com/") # All requests made by the opener will pass through the SOCKS proxy
113
+
114
+ --------------------------------------------
115
+
116
+ Original SocksiPy README attached below, amended to reflect API changes.
117
+
118
+ --------------------------------------------
119
+
120
+ SocksiPy
121
+
122
+ A Python SOCKS module.
123
+
124
+ (C) 2006 Dan-Haim. All rights reserved.
125
+
126
+ See LICENSE file for details.
127
+
128
+
129
+ *WHAT IS A SOCKS PROXY?*
130
+
131
+ A SOCKS proxy is a proxy server at the TCP level. In other words, it acts as
132
+ a tunnel, relaying all traffic going through it without modifying it.
133
+ SOCKS proxies can be used to relay traffic using any network protocol that
134
+ uses TCP.
135
+
136
+ *WHAT IS SOCKSIPY?*
137
+
138
+ This Python module allows you to create TCP connections through a SOCKS
139
+ proxy without any special effort.
140
+ It also supports relaying UDP packets with a SOCKS5 proxy.
141
+
142
+ *PROXY COMPATIBILITY*
143
+
144
+ SocksiPy is compatible with three different types of proxies:
145
+
146
+ 1. SOCKS Version 4 (SOCKS4), including the SOCKS4a extension.
147
+ 2. SOCKS Version 5 (SOCKS5).
148
+ 3. HTTP Proxies which support tunneling using the CONNECT method.
149
+
150
+ *SYSTEM REQUIREMENTS*
151
+
152
+ Being written in Python, SocksiPy can run on any platform that has a Python
153
+ interpreter and TCP/IP support.
154
+ This module has been tested with Python 2.3 and should work with greater versions
155
+ just as well.
156
+
157
+
158
+ INSTALLATION
159
+ -------------
160
+
161
+ Simply copy the file "socks.py" to your Python's `lib/site-packages` directory,
162
+ and you're ready to go. [Editor's note: it is better to use `python setup.py install` for PySocks]
163
+
164
+
165
+ USAGE
166
+ ------
167
+
168
+ First load the socks module with the command:
169
+
170
+ >>> import socks
171
+ >>>
172
+
173
+ The socks module provides a class called `socksocket`, which is the base to all of the module's functionality.
174
+
175
+ The `socksocket` object has the same initialization parameters as the normal socket
176
+ object to ensure maximal compatibility, however it should be noted that `socksocket` will only function with family being `AF_INET` and
177
+ type being either `SOCK_STREAM` or `SOCK_DGRAM`.
178
+ Generally, it is best to initialize the `socksocket` object with no parameters
179
+
180
+ >>> s = socks.socksocket()
181
+ >>>
182
+
183
+ The `socksocket` object has an interface which is very similiar to socket's (in fact
184
+ the `socksocket` class is derived from socket) with a few extra methods.
185
+ To select the proxy server you would like to use, use the `set_proxy` method, whose
186
+ syntax is:
187
+
188
+ set_proxy(proxy_type, addr[, port[, rdns[, username[, password]]]])
189
+
190
+ Explanation of the parameters:
191
+
192
+ `proxy_type` - The type of the proxy server. This can be one of three possible
193
+ choices: `PROXY_TYPE_SOCKS4`, `PROXY_TYPE_SOCKS5` and `PROXY_TYPE_HTTP` for SOCKS4,
194
+ SOCKS5 and HTTP servers respectively. `SOCKS4`, `SOCKS5`, and `HTTP` are all aliases, respectively.
195
+
196
+ `addr` - The IP address or DNS name of the proxy server.
197
+
198
+ `port` - The port of the proxy server. Defaults to 1080 for socks and 8080 for http.
199
+
200
+ `rdns` - This is a boolean flag than modifies the behavior regarding DNS resolving.
201
+ If it is set to True, DNS resolving will be preformed remotely, on the server.
202
+ If it is set to False, DNS resolving will be preformed locally. Please note that
203
+ setting this to True with SOCKS4 servers actually use an extension to the protocol,
204
+ called SOCKS4a, which may not be supported on all servers (SOCKS5 and http servers
205
+ always support DNS). The default is True.
206
+
207
+ `username` - For SOCKS5 servers, this allows simple username / password authentication
208
+ with the server. For SOCKS4 servers, this parameter will be sent as the userid.
209
+ This parameter is ignored if an HTTP server is being used. If it is not provided,
210
+ authentication will not be used (servers may accept unauthenticated requests).
211
+
212
+ `password` - This parameter is valid only for SOCKS5 servers and specifies the
213
+ respective password for the username provided.
214
+
215
+ Example of usage:
216
+
217
+ >>> s.set_proxy(socks.SOCKS5, "socks.example.com") # uses default port 1080
218
+ >>> s.set_proxy(socks.SOCKS4, "socks.test.com", 1081)
219
+
220
+ After the set_proxy method has been called, simply call the connect method with the
221
+ traditional parameters to establish a connection through the proxy:
222
+
223
+ >>> s.connect(("www.sourceforge.net", 80))
224
+ >>>
225
+
226
+ Connection will take a bit longer to allow negotiation with the proxy server.
227
+ Please note that calling connect without calling `set_proxy` earlier will connect
228
+ without a proxy (just like a regular socket).
229
+
230
+ Errors: Any errors in the connection process will trigger exceptions. The exception
231
+ may either be generated by the underlying socket layer or may be custom module
232
+ exceptions, whose details follow:
233
+
234
+ class `ProxyError` - This is a base exception class. It is not raised directly but
235
+ rather all other exception classes raised by this module are derived from it.
236
+ This allows an easy way to catch all proxy-related errors. It descends from `IOError`.
237
+
238
+ All `ProxyError` exceptions have an attribute `socket_err`, which will contain either a
239
+ caught `socket.error` exception, or `None` if there wasn't any.
240
+
241
+ class `GeneralProxyError` - When thrown, it indicates a problem which does not fall
242
+ into another category.
243
+
244
+ * `Sent invalid data` - This error means that unexpected data has been received from
245
+ the server. The most common reason is that the server specified as the proxy is
246
+ not really a SOCKS4/SOCKS5/HTTP proxy, or maybe the proxy type specified is wrong.
247
+
248
+ * `Connection closed unexpectedly` - The proxy server unexpectedly closed the connection.
249
+ This may indicate that the proxy server is experiencing network or software problems.
250
+
251
+ * `Bad proxy type` - This will be raised if the type of the proxy supplied to the
252
+ set_proxy function was not one of `SOCKS4`/`SOCKS5`/`HTTP`.
253
+
254
+ * `Bad input` - This will be raised if the `connect()` method is called with bad input
255
+ parameters.
256
+
257
+ class `SOCKS5AuthError` - This indicates that the connection through a SOCKS5 server
258
+ failed due to an authentication problem.
259
+
260
+ * `Authentication is required` - This will happen if you use a SOCKS5 server which
261
+ requires authentication without providing a username / password at all.
262
+
263
+ * `All offered authentication methods were rejected` - This will happen if the proxy
264
+ requires a special authentication method which is not supported by this module.
265
+
266
+ * `Unknown username or invalid password` - Self descriptive.
267
+
268
+ class `SOCKS5Error` - This will be raised for SOCKS5 errors which are not related to
269
+ authentication.
270
+ The parameter is a tuple containing a code, as given by the server,
271
+ and a description of the
272
+ error. The possible errors, according to the RFC, are:
273
+
274
+ * `0x01` - General SOCKS server failure - If for any reason the proxy server is unable to
275
+ fulfill your request (internal server error).
276
+ * `0x02` - connection not allowed by ruleset - If the address you're trying to connect to
277
+ is blacklisted on the server or requires authentication.
278
+ * `0x03` - Network unreachable - The target could not be contacted. A router on the network
279
+ had replied with a destination net unreachable error.
280
+ * `0x04` - Host unreachable - The target could not be contacted. A router on the network
281
+ had replied with a destination host unreachable error.
282
+ * `0x05` - Connection refused - The target server has actively refused the connection
283
+ (the requested port is closed).
284
+ * `0x06` - TTL expired - The TTL value of the SYN packet from the proxy to the target server
285
+ has expired. This usually means that there are network problems causing the packet
286
+ to be caught in a router-to-router "ping-pong".
287
+ * `0x07` - Command not supported - For instance if the server does not support UDP.
288
+ * `0x08` - Address type not supported - The client has provided an invalid address type.
289
+ When using this module, this error should not occur.
290
+
291
+ class `SOCKS4Error` - This will be raised for SOCKS4 errors. The parameter is a tuple
292
+ containing a code and a description of the error, as given by the server. The
293
+ possible error, according to the specification are:
294
+
295
+ * `0x5B` - Request rejected or failed - Will be raised in the event of an failure for any
296
+ reason other then the two mentioned next.
297
+ * `0x5C` - request rejected because SOCKS server cannot connect to identd on the client -
298
+ The Socks server had tried an ident lookup on your computer and has failed. In this
299
+ case you should run an identd server and/or configure your firewall to allow incoming
300
+ connections to local port 113 from the remote server.
301
+ * `0x5D` - request rejected because the client program and identd report different user-ids -
302
+ The Socks server had performed an ident lookup on your computer and has received a
303
+ different userid than the one you have provided. Change your userid (through the
304
+ username parameter of the set_proxy method) to match and try again.
305
+
306
+ class `HTTPError` - This will be raised for HTTP errors. The message will contain
307
+ the HTTP status code and provided error message.
308
+
309
+ After establishing the connection, the object behaves like a standard socket.
310
+
311
+ Methods like `makefile()` and `settimeout()` should behave just like regular sockets.
312
+ Call the `close()` method to close the connection.
313
+
314
+ In addition to the `socksocket` class, an additional function worth mentioning is the
315
+ `set_default_proxy` function. The parameters are the same as the `set_proxy` method.
316
+ This function will set default proxy settings for newly created `socksocket` objects,
317
+ in which the proxy settings haven't been changed via the `set_proxy` method.
318
+ This is quite useful if you wish to force 3rd party modules to use a SOCKS proxy,
319
+ by overriding the socket object.
320
+ For example:
321
+
322
+ >>> socks.set_default_proxy(socks.SOCKS5, "socks.example.com")
323
+ >>> socket.socket = socks.socksocket
324
+ >>> urllib.urlopen("http://www.sourceforge.net/")
325
+
326
+
327
+ PROBLEMS
328
+ ---------
329
+
330
+ Please open a GitHub issue at https://github.com/Anorov/PySocks
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/RECORD ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/socks.cpython-313.pyc,,
2
+ __pycache__/sockshandler.cpython-313.pyc,,
3
+ pysocks-1.7.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
4
+ pysocks-1.7.1.dist-info/METADATA,sha256=s0tCSaT0WJRL6NNS7WXhn9ua6ECBV8DbCiIuNMaA9gk,13468
5
+ pysocks-1.7.1.dist-info/RECORD,,
6
+ pysocks-1.7.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ pysocks-1.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ pysocks-1.7.1.dist-info/direct_url.json,sha256=_ZfWj0bcP27SuKgeo4gJgWMBJAVOqnCJw9yXdSBxzXk,97
9
+ pysocks-1.7.1.dist-info/licenses/LICENSE,sha256=cCfiFOAU63i3rcwc7aWspxOnn8T2oMUsnaWz5wfm_-k,1401
10
+ pysocks-1.7.1.dist-info/top_level.txt,sha256=TKSOIfCFBoK9EY8FBYbYqC3PWd3--G15ph9n8-QHPDk,19
11
+ socks.py,sha256=xOYn27t9IGrbTBzWsUUuPa0YBuplgiUykzkOB5V5iFY,31086
12
+ sockshandler.py,sha256=2SYGj-pwt1kjgLoZAmyeaEXCeZDWRmfVS_QG6kErGtY,3966
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/REQUESTED ADDED
File without changes
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/direct_url.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"dir_info": {}, "url": "file:///home/task_176175235884818/conda-bld/pysocks_1761753009495/work"}
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2006 Dan-Haim. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification,
4
+ are permitted provided that the following conditions are met:
5
+ 1. Redistributions of source code must retain the above copyright notice, this
6
+ list of conditions and the following disclaimer.
7
+ 2. Redistributions in binary form must reproduce the above copyright notice,
8
+ this list of conditions and the following disclaimer in the documentation
9
+ and/or other materials provided with the distribution.
10
+ 3. Neither the name of Dan Haim nor the names of his contributors may be used
11
+ to endorse or promote products derived from this software without specific
12
+ prior written permission.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED
15
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17
+ EVENT SHALL DAN HAIM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
18
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA
20
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
22
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE.
miniconda3/pkgs/pysocks-1.7.1-py313h06a4308_1/lib/python3.13/site-packages/pysocks-1.7.1.dist-info/top_level.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ socks
2
+ sockshandler
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/2to3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+ import sys
3
+ from lib2to3.main import main
4
+
5
+ sys.exit(main("lib2to3.fixes"))
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/2to3-3.10 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+ import sys
3
+ from lib2to3.main import main
4
+
5
+ sys.exit(main("lib2to3.fixes"))
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/idle3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+
3
+ from idlelib.pyshell import main
4
+ if __name__ == '__main__':
5
+ main()
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/idle3.10 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+
3
+ from idlelib.pyshell import main
4
+ if __name__ == '__main__':
5
+ main()
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/pydoc ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/pydoc3 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/pydoc3.10 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.10
2
+
3
+ import pydoc
4
+ if __name__ == '__main__':
5
+ pydoc.cli()
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/python3-config ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Keep this script in sync with python-config.in
4
+
5
+ exit_with_usage ()
6
+ {
7
+ echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
8
+ exit $1
9
+ }
10
+
11
+ if [ "$1" = "" ] ; then
12
+ exit_with_usage 1
13
+ fi
14
+
15
+ # Returns the actual prefix where this script was installed to.
16
+ installed_prefix ()
17
+ {
18
+ RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
19
+ if which readlink >/dev/null 2>&1 ; then
20
+ if readlink -f "$RESULT" >/dev/null 2>&1; then
21
+ RESULT=$(readlink -f "$RESULT")
22
+ fi
23
+ fi
24
+ echo $RESULT
25
+ }
26
+
27
+ prefix_real=$(installed_prefix "$0")
28
+
29
+ # Use sed to fix paths from their built-to locations to their installed-to
30
+ # locations. Keep prefix & exec_prefix using their original values in case
31
+ # they are referenced in other configure variables, to prevent double
32
+ # substitution, issue #22140.
33
+ prefix="/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol"
34
+ exec_prefix="${prefix}"
35
+ exec_prefix_real=${prefix_real}
36
+ includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
37
+ libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
38
+ CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/include -fdebug-prefix-map=/home/task_177325072734712/croot/python-split_1773250812261/work=/usr/local/src/conda/python-3.10.20 -fdebug-prefix-map=/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
39
+ VERSION="3.10"
40
+ LIBM="-lm"
41
+ LIBC=""
42
+ SYSLIBS="$LIBM $LIBC"
43
+ ABIFLAGS=""
44
+ LIBS=" -lpthread -ldl -lutil -lm $SYSLIBS"
45
+ LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lpthread -ldl -lutil -lm $SYSLIBS"
46
+ BASECFLAGS=" -Wno-unused-result -Wsign-compare"
47
+ LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
48
+ OPT="-DNDEBUG -fwrapv -O3 -Wall"
49
+ PY_ENABLE_SHARED="0"
50
+ LDVERSION="${VERSION}${ABIFLAGS}"
51
+ LIBDEST=${prefix_real}/lib/python${VERSION}
52
+ LIBPL=$(echo "${prefix}/lib/python3.10/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
53
+ SO=".cpython-310-x86_64-linux-gnu.so"
54
+ PYTHONFRAMEWORK=""
55
+ INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
56
+ PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
57
+ PY_EMBED=0
58
+
59
+ # Scan for --help or unknown argument.
60
+ for ARG in $*
61
+ do
62
+ case $ARG in
63
+ --help)
64
+ exit_with_usage 0
65
+ ;;
66
+ --embed)
67
+ PY_EMBED=1
68
+ ;;
69
+ --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
70
+ ;;
71
+ *)
72
+ exit_with_usage 1
73
+ ;;
74
+ esac
75
+ done
76
+
77
+ if [ $PY_EMBED = 1 ] ; then
78
+ LIBS="$LIBS_EMBED"
79
+ fi
80
+
81
+ for ARG in "$@"
82
+ do
83
+ case "$ARG" in
84
+ --prefix)
85
+ echo "$prefix_real"
86
+ ;;
87
+ --exec-prefix)
88
+ echo "$exec_prefix_real"
89
+ ;;
90
+ --includes)
91
+ echo "$INCDIR $PLATINCDIR"
92
+ ;;
93
+ --cflags)
94
+ echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
95
+ ;;
96
+ --libs)
97
+ echo "$LIBS"
98
+ ;;
99
+ --ldflags)
100
+ LIBPLUSED=
101
+ if [ "$PY_ENABLE_SHARED" = "0" ] ; then
102
+ LIBPLUSED="-L$LIBPL"
103
+ fi
104
+ echo "$LIBPLUSED -L$libdir $LIBS"
105
+ ;;
106
+ --extension-suffix)
107
+ echo "$SO"
108
+ ;;
109
+ --abiflags)
110
+ echo "$ABIFLAGS"
111
+ ;;
112
+ --configdir)
113
+ echo "$LIBPL"
114
+ ;;
115
+ esac
116
+ done
miniconda3/pkgs/python-3.10.20-h741d88c_0/bin/python3.10-config ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # Keep this script in sync with python-config.in
4
+
5
+ exit_with_usage ()
6
+ {
7
+ echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
8
+ exit $1
9
+ }
10
+
11
+ if [ "$1" = "" ] ; then
12
+ exit_with_usage 1
13
+ fi
14
+
15
+ # Returns the actual prefix where this script was installed to.
16
+ installed_prefix ()
17
+ {
18
+ RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
19
+ if which readlink >/dev/null 2>&1 ; then
20
+ if readlink -f "$RESULT" >/dev/null 2>&1; then
21
+ RESULT=$(readlink -f "$RESULT")
22
+ fi
23
+ fi
24
+ echo $RESULT
25
+ }
26
+
27
+ prefix_real=$(installed_prefix "$0")
28
+
29
+ # Use sed to fix paths from their built-to locations to their installed-to
30
+ # locations. Keep prefix & exec_prefix using their original values in case
31
+ # they are referenced in other configure variables, to prevent double
32
+ # substitution, issue #22140.
33
+ prefix="/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol"
34
+ exec_prefix="${prefix}"
35
+ exec_prefix_real=${prefix_real}
36
+ includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
37
+ libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
38
+ CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/include -fdebug-prefix-map=/home/task_177325072734712/croot/python-split_1773250812261/work=/usr/local/src/conda/python-3.10.20 -fdebug-prefix-map=/home/task_177325072734712/croot/python-split_1773250812261/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
39
+ VERSION="3.10"
40
+ LIBM="-lm"
41
+ LIBC=""
42
+ SYSLIBS="$LIBM $LIBC"
43
+ ABIFLAGS=""
44
+ LIBS=" -lpthread -ldl -lutil -lm $SYSLIBS"
45
+ LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lpthread -ldl -lutil -lm $SYSLIBS"
46
+ BASECFLAGS=" -Wno-unused-result -Wsign-compare"
47
+ LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
48
+ OPT="-DNDEBUG -fwrapv -O3 -Wall"
49
+ PY_ENABLE_SHARED="0"
50
+ LDVERSION="${VERSION}${ABIFLAGS}"
51
+ LIBDEST=${prefix_real}/lib/python${VERSION}
52
+ LIBPL=$(echo "${prefix}/lib/python3.10/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
53
+ SO=".cpython-310-x86_64-linux-gnu.so"
54
+ PYTHONFRAMEWORK=""
55
+ INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
56
+ PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
57
+ PY_EMBED=0
58
+
59
+ # Scan for --help or unknown argument.
60
+ for ARG in $*
61
+ do
62
+ case $ARG in
63
+ --help)
64
+ exit_with_usage 0
65
+ ;;
66
+ --embed)
67
+ PY_EMBED=1
68
+ ;;
69
+ --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
70
+ ;;
71
+ *)
72
+ exit_with_usage 1
73
+ ;;
74
+ esac
75
+ done
76
+
77
+ if [ $PY_EMBED = 1 ] ; then
78
+ LIBS="$LIBS_EMBED"
79
+ fi
80
+
81
+ for ARG in "$@"
82
+ do
83
+ case "$ARG" in
84
+ --prefix)
85
+ echo "$prefix_real"
86
+ ;;
87
+ --exec-prefix)
88
+ echo "$exec_prefix_real"
89
+ ;;
90
+ --includes)
91
+ echo "$INCDIR $PLATINCDIR"
92
+ ;;
93
+ --cflags)
94
+ echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
95
+ ;;
96
+ --libs)
97
+ echo "$LIBS"
98
+ ;;
99
+ --ldflags)
100
+ LIBPLUSED=
101
+ if [ "$PY_ENABLE_SHARED" = "0" ] ; then
102
+ LIBPLUSED="-L$LIBPL"
103
+ fi
104
+ echo "$LIBPLUSED -L$libdir $LIBS"
105
+ ;;
106
+ --extension-suffix)
107
+ echo "$SO"
108
+ ;;
109
+ --abiflags)
110
+ echo "$ABIFLAGS"
111
+ ;;
112
+ --configdir)
113
+ echo "$LIBPL"
114
+ ;;
115
+ esac
116
+ done
miniconda3/pkgs/python-3.10.20-h741d88c_0/compiler_compat/README ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Files in this folder are to enhance backwards compatibility of anaconda software with older compilers.
2
+ See: https://github.com/conda/conda/issues/6030 for more information.
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/Python.h ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_PYTHON_H
2
+ #define Py_PYTHON_H
3
+ /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
4
+
5
+ /* Include nearly all Python header files */
6
+
7
+ #include "patchlevel.h"
8
+ #include "pyconfig.h"
9
+ #include "pymacconfig.h"
10
+
11
+ #include <limits.h>
12
+
13
+ #ifndef UCHAR_MAX
14
+ #error "Something's broken. UCHAR_MAX should be defined in limits.h."
15
+ #endif
16
+
17
+ #if UCHAR_MAX != 255
18
+ #error "Python's source code assumes C's unsigned char is an 8-bit type."
19
+ #endif
20
+
21
+ #if defined(__sgi) && !defined(_SGI_MP_SOURCE)
22
+ #define _SGI_MP_SOURCE
23
+ #endif
24
+
25
+ #include <stdio.h>
26
+ #ifndef NULL
27
+ # error "Python.h requires that stdio.h define NULL."
28
+ #endif
29
+
30
+ #include <string.h>
31
+ #ifdef HAVE_ERRNO_H
32
+ #include <errno.h>
33
+ #endif
34
+ #include <stdlib.h>
35
+ #ifndef MS_WINDOWS
36
+ #include <unistd.h>
37
+ #endif
38
+
39
+ /* For size_t? */
40
+ #ifdef HAVE_STDDEF_H
41
+ #include <stddef.h>
42
+ #endif
43
+
44
+ /* CAUTION: Build setups should ensure that NDEBUG is defined on the
45
+ * compiler command line when building Python in release mode; else
46
+ * assert() calls won't be removed.
47
+ */
48
+ #include <assert.h>
49
+
50
+ #include "pyport.h"
51
+ #include "pymacro.h"
52
+
53
+ /* A convenient way for code to know if sanitizers are enabled. */
54
+ #if defined(__has_feature)
55
+ # if __has_feature(memory_sanitizer)
56
+ # if !defined(_Py_MEMORY_SANITIZER)
57
+ # define _Py_MEMORY_SANITIZER
58
+ # endif
59
+ # endif
60
+ # if __has_feature(address_sanitizer)
61
+ # if !defined(_Py_ADDRESS_SANITIZER)
62
+ # define _Py_ADDRESS_SANITIZER
63
+ # endif
64
+ # endif
65
+ #elif defined(__GNUC__)
66
+ # if defined(__SANITIZE_ADDRESS__)
67
+ # define _Py_ADDRESS_SANITIZER
68
+ # endif
69
+ #endif
70
+
71
+ #include "pymath.h"
72
+ #include "pymem.h"
73
+
74
+ #include "object.h"
75
+ #include "objimpl.h"
76
+ #include "typeslots.h"
77
+ #include "pyhash.h"
78
+
79
+ #include "cpython/pydebug.h"
80
+
81
+ #include "bytearrayobject.h"
82
+ #include "bytesobject.h"
83
+ #include "unicodeobject.h"
84
+ #include "longobject.h"
85
+ #include "longintrepr.h"
86
+ #include "boolobject.h"
87
+ #include "floatobject.h"
88
+ #include "complexobject.h"
89
+ #include "rangeobject.h"
90
+ #include "memoryobject.h"
91
+ #include "tupleobject.h"
92
+ #include "listobject.h"
93
+ #include "dictobject.h"
94
+ #include "cpython/odictobject.h"
95
+ #include "enumobject.h"
96
+ #include "setobject.h"
97
+ #include "methodobject.h"
98
+ #include "moduleobject.h"
99
+ #include "funcobject.h"
100
+ #include "classobject.h"
101
+ #include "fileobject.h"
102
+ #include "pycapsule.h"
103
+ #include "code.h"
104
+ #include "pyframe.h"
105
+ #include "traceback.h"
106
+ #include "sliceobject.h"
107
+ #include "cellobject.h"
108
+ #include "iterobject.h"
109
+ #include "cpython/initconfig.h"
110
+ #include "genobject.h"
111
+ #include "descrobject.h"
112
+ #include "genericaliasobject.h"
113
+ #include "warnings.h"
114
+ #include "weakrefobject.h"
115
+ #include "structseq.h"
116
+ #include "namespaceobject.h"
117
+ #include "cpython/picklebufobject.h"
118
+ #include "cpython/pytime.h"
119
+
120
+ #include "codecs.h"
121
+ #include "pyerrors.h"
122
+ #include "pythread.h"
123
+ #include "pystate.h"
124
+ #include "context.h"
125
+
126
+ #include "modsupport.h"
127
+ #include "compile.h"
128
+ #include "pythonrun.h"
129
+ #include "pylifecycle.h"
130
+ #include "ceval.h"
131
+ #include "sysmodule.h"
132
+ #include "osmodule.h"
133
+ #include "intrcheck.h"
134
+ #include "import.h"
135
+
136
+ #include "abstract.h"
137
+ #include "bltinmodule.h"
138
+
139
+ #include "eval.h"
140
+
141
+ #include "cpython/pyctype.h"
142
+ #include "pystrtod.h"
143
+ #include "pystrcmp.h"
144
+ #include "fileutils.h"
145
+ #include "cpython/pyfpe.h"
146
+ #include "tracemalloc.h"
147
+
148
+ #endif /* !Py_PYTHON_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/abstract.h ADDED
@@ -0,0 +1,873 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.
18
+
19
+ (What should be said about Py_Print_RAW?). */
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
+
232
+ /* Implemented elsewhere:
233
+
234
+ Py_hash_t PyObject_Hash(PyObject *o);
235
+
236
+ Compute and return the hash, hash_value, of an object, o. On
237
+ failure, return -1.
238
+
239
+ This is the equivalent of the Python expression: hash(o). */
240
+
241
+
242
+ /* Implemented elsewhere:
243
+
244
+ int PyObject_IsTrue(PyObject *o);
245
+
246
+ Returns 1 if the object, o, is considered to be true, 0 if o is
247
+ considered to be false and -1 on failure.
248
+
249
+ This is equivalent to the Python expression: not not o. */
250
+
251
+
252
+ /* Implemented elsewhere:
253
+
254
+ int PyObject_Not(PyObject *o);
255
+
256
+ Returns 0 if the object, o, is considered to be true, 1 if o is
257
+ considered to be false and -1 on failure.
258
+
259
+ This is equivalent to the Python expression: not o. */
260
+
261
+
262
+ /* Get the type of an object.
263
+
264
+ On success, returns a type object corresponding to the object type of object
265
+ 'o'. On failure, returns NULL.
266
+
267
+ This is equivalent to the Python expression: type(o) */
268
+ PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o);
269
+
270
+
271
+ /* Return the size of object 'o'. If the object 'o' provides both sequence and
272
+ mapping protocols, the sequence size is returned.
273
+
274
+ On error, -1 is returned.
275
+
276
+ This is the equivalent to the Python expression: len(o) */
277
+ PyAPI_FUNC(Py_ssize_t) PyObject_Size(PyObject *o);
278
+
279
+
280
+ /* For DLL compatibility */
281
+ #undef PyObject_Length
282
+ PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o);
283
+ #define PyObject_Length PyObject_Size
284
+
285
+ /* Return element of 'o' corresponding to the object 'key'. Return NULL
286
+ on failure.
287
+
288
+ This is the equivalent of the Python expression: o[key] */
289
+ PyAPI_FUNC(PyObject *) PyObject_GetItem(PyObject *o, PyObject *key);
290
+
291
+
292
+ /* Map the object 'key' to the value 'v' into 'o'.
293
+
294
+ Raise an exception and return -1 on failure; return 0 on success.
295
+
296
+ This is the equivalent of the Python statement: o[key]=v. */
297
+ PyAPI_FUNC(int) PyObject_SetItem(PyObject *o, PyObject *key, PyObject *v);
298
+
299
+ /* Remove the mapping for the string 'key' from the object 'o'.
300
+ Returns -1 on failure.
301
+
302
+ This is equivalent to the Python statement: del o[key]. */
303
+ PyAPI_FUNC(int) PyObject_DelItemString(PyObject *o, const char *key);
304
+
305
+ /* Delete the mapping for the object 'key' from the object 'o'.
306
+ Returns -1 on failure.
307
+
308
+ This is the equivalent of the Python statement: del o[key]. */
309
+ PyAPI_FUNC(int) PyObject_DelItem(PyObject *o, PyObject *key);
310
+
311
+
312
+ /* === Old Buffer API ============================================ */
313
+
314
+ /* FIXME: usage of these should all be replaced in Python itself
315
+ but for backwards compatibility we will implement them.
316
+ Their usage without a corresponding "unlock" mechanism
317
+ may create issues (but they would already be there). */
318
+
319
+ /* Takes an arbitrary object which must support the (character, single segment)
320
+ buffer interface and returns a pointer to a read-only memory location
321
+ usable as character based input for subsequent processing.
322
+
323
+ Return 0 on success. buffer and buffer_len are only set in case no error
324
+ occurs. Otherwise, -1 is returned and an exception set. */
325
+ Py_DEPRECATED(3.0)
326
+ PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
327
+ const char **buffer,
328
+ Py_ssize_t *buffer_len);
329
+
330
+ /* Checks whether an arbitrary object supports the (character, single segment)
331
+ buffer interface.
332
+
333
+ Returns 1 on success, 0 on failure. */
334
+ Py_DEPRECATED(3.0) PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj);
335
+
336
+ /* Same as PyObject_AsCharBuffer() except that this API expects (readable,
337
+ single segment) buffer interface and returns a pointer to a read-only memory
338
+ location which can contain arbitrary data.
339
+
340
+ 0 is returned on success. buffer and buffer_len are only set in case no
341
+ error occurs. Otherwise, -1 is returned and an exception set. */
342
+ Py_DEPRECATED(3.0)
343
+ PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
344
+ const void **buffer,
345
+ Py_ssize_t *buffer_len);
346
+
347
+ /* Takes an arbitrary object which must support the (writable, single segment)
348
+ buffer interface and returns a pointer to a writable memory location in
349
+ buffer of size 'buffer_len'.
350
+
351
+ Return 0 on success. buffer and buffer_len are only set in case no error
352
+ occurs. Otherwise, -1 is returned and an exception set. */
353
+ Py_DEPRECATED(3.0)
354
+ PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
355
+ void **buffer,
356
+ Py_ssize_t *buffer_len);
357
+
358
+
359
+ /* === New Buffer API ============================================ */
360
+
361
+ /* Takes an arbitrary object and returns the result of calling
362
+ obj.__format__(format_spec). */
363
+ PyAPI_FUNC(PyObject *) PyObject_Format(PyObject *obj,
364
+ PyObject *format_spec);
365
+
366
+
367
+ /* ==== Iterators ================================================ */
368
+
369
+ /* Takes an object and returns an iterator for it.
370
+ This is typically a new iterator but if the argument is an iterator, this
371
+ returns itself. */
372
+ PyAPI_FUNC(PyObject *) PyObject_GetIter(PyObject *);
373
+
374
+ /* Takes an AsyncIterable object and returns an AsyncIterator for it.
375
+ This is typically a new iterator but if the argument is an AsyncIterator,
376
+ this returns itself. */
377
+ PyAPI_FUNC(PyObject *) PyObject_GetAIter(PyObject *);
378
+
379
+ /* Returns non-zero if the object 'obj' provides iterator protocols, and 0 otherwise.
380
+
381
+ This function always succeeds. */
382
+ PyAPI_FUNC(int) PyIter_Check(PyObject *);
383
+
384
+ /* Returns non-zero if the object 'obj' provides AsyncIterator protocols, and 0 otherwise.
385
+
386
+ This function always succeeds. */
387
+ PyAPI_FUNC(int) PyAIter_Check(PyObject *);
388
+
389
+ /* Takes an iterator object and calls its tp_iternext slot,
390
+ returning the next value.
391
+
392
+ If the iterator is exhausted, this returns NULL without setting an
393
+ exception.
394
+
395
+ NULL with an exception means an error occurred. */
396
+ PyAPI_FUNC(PyObject *) PyIter_Next(PyObject *);
397
+
398
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
399
+
400
+ /* Takes generator, coroutine or iterator object and sends the value into it.
401
+ Returns:
402
+ - PYGEN_RETURN (0) if generator has returned.
403
+ 'result' parameter is filled with return value
404
+ - PYGEN_ERROR (-1) if exception was raised.
405
+ 'result' parameter is NULL
406
+ - PYGEN_NEXT (1) if generator has yielded.
407
+ 'result' parameter is filled with yielded value. */
408
+ PyAPI_FUNC(PySendResult) PyIter_Send(PyObject *, PyObject *, PyObject **);
409
+ #endif
410
+
411
+
412
+ /* === Number Protocol ================================================== */
413
+
414
+ /* Returns 1 if the object 'o' provides numeric protocols, and 0 otherwise.
415
+
416
+ This function always succeeds. */
417
+ PyAPI_FUNC(int) PyNumber_Check(PyObject *o);
418
+
419
+ /* Returns the result of adding o1 and o2, or NULL on failure.
420
+
421
+ This is the equivalent of the Python expression: o1 + o2. */
422
+ PyAPI_FUNC(PyObject *) PyNumber_Add(PyObject *o1, PyObject *o2);
423
+
424
+ /* Returns the result of subtracting o2 from o1, or NULL on failure.
425
+
426
+ This is the equivalent of the Python expression: o1 - o2. */
427
+ PyAPI_FUNC(PyObject *) PyNumber_Subtract(PyObject *o1, PyObject *o2);
428
+
429
+ /* Returns the result of multiplying o1 and o2, or NULL on failure.
430
+
431
+ This is the equivalent of the Python expression: o1 * o2. */
432
+ PyAPI_FUNC(PyObject *) PyNumber_Multiply(PyObject *o1, PyObject *o2);
433
+
434
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
435
+ /* This is the equivalent of the Python expression: o1 @ o2. */
436
+ PyAPI_FUNC(PyObject *) PyNumber_MatrixMultiply(PyObject *o1, PyObject *o2);
437
+ #endif
438
+
439
+ /* Returns the result of dividing o1 by o2 giving an integral result,
440
+ or NULL on failure.
441
+
442
+ This is the equivalent of the Python expression: o1 // o2. */
443
+ PyAPI_FUNC(PyObject *) PyNumber_FloorDivide(PyObject *o1, PyObject *o2);
444
+
445
+ /* Returns the result of dividing o1 by o2 giving a float result, or NULL on
446
+ failure.
447
+
448
+ This is the equivalent of the Python expression: o1 / o2. */
449
+ PyAPI_FUNC(PyObject *) PyNumber_TrueDivide(PyObject *o1, PyObject *o2);
450
+
451
+ /* Returns the remainder of dividing o1 by o2, or NULL on failure.
452
+
453
+ This is the equivalent of the Python expression: o1 % o2. */
454
+ PyAPI_FUNC(PyObject *) PyNumber_Remainder(PyObject *o1, PyObject *o2);
455
+
456
+ /* See the built-in function divmod.
457
+
458
+ Returns NULL on failure.
459
+
460
+ This is the equivalent of the Python expression: divmod(o1, o2). */
461
+ PyAPI_FUNC(PyObject *) PyNumber_Divmod(PyObject *o1, PyObject *o2);
462
+
463
+ /* See the built-in function pow. Returns NULL on failure.
464
+
465
+ This is the equivalent of the Python expression: pow(o1, o2, o3),
466
+ where o3 is optional. */
467
+ PyAPI_FUNC(PyObject *) PyNumber_Power(PyObject *o1, PyObject *o2,
468
+ PyObject *o3);
469
+
470
+ /* Returns the negation of o on success, or NULL on failure.
471
+
472
+ This is the equivalent of the Python expression: -o. */
473
+ PyAPI_FUNC(PyObject *) PyNumber_Negative(PyObject *o);
474
+
475
+ /* Returns the positive of o on success, or NULL on failure.
476
+
477
+ This is the equivalent of the Python expression: +o. */
478
+ PyAPI_FUNC(PyObject *) PyNumber_Positive(PyObject *o);
479
+
480
+ /* Returns the absolute value of 'o', or NULL on failure.
481
+
482
+ This is the equivalent of the Python expression: abs(o). */
483
+ PyAPI_FUNC(PyObject *) PyNumber_Absolute(PyObject *o);
484
+
485
+ /* Returns the bitwise negation of 'o' on success, or NULL on failure.
486
+
487
+ This is the equivalent of the Python expression: ~o. */
488
+ PyAPI_FUNC(PyObject *) PyNumber_Invert(PyObject *o);
489
+
490
+ /* Returns the result of left shifting o1 by o2 on success, or NULL on failure.
491
+
492
+ This is the equivalent of the Python expression: o1 << o2. */
493
+ PyAPI_FUNC(PyObject *) PyNumber_Lshift(PyObject *o1, PyObject *o2);
494
+
495
+ /* Returns the result of right shifting o1 by o2 on success, or NULL on
496
+ failure.
497
+
498
+ This is the equivalent of the Python expression: o1 >> o2. */
499
+ PyAPI_FUNC(PyObject *) PyNumber_Rshift(PyObject *o1, PyObject *o2);
500
+
501
+ /* Returns the result of bitwise and of o1 and o2 on success, or NULL on
502
+ failure.
503
+
504
+ This is the equivalent of the Python expression: o1 & o2. */
505
+ PyAPI_FUNC(PyObject *) PyNumber_And(PyObject *o1, PyObject *o2);
506
+
507
+ /* Returns the bitwise exclusive or of o1 by o2 on success, or NULL on failure.
508
+
509
+ This is the equivalent of the Python expression: o1 ^ o2. */
510
+ PyAPI_FUNC(PyObject *) PyNumber_Xor(PyObject *o1, PyObject *o2);
511
+
512
+ /* Returns the result of bitwise or on o1 and o2 on success, or NULL on
513
+ failure.
514
+
515
+ This is the equivalent of the Python expression: o1 | o2. */
516
+ PyAPI_FUNC(PyObject *) PyNumber_Or(PyObject *o1, PyObject *o2);
517
+
518
+ /* Returns 1 if obj is an index integer (has the nb_index slot of the
519
+ tp_as_number structure filled in), and 0 otherwise. */
520
+ PyAPI_FUNC(int) PyIndex_Check(PyObject *);
521
+
522
+ /* Returns the object 'o' converted to a Python int, or NULL with an exception
523
+ raised on failure. */
524
+ PyAPI_FUNC(PyObject *) PyNumber_Index(PyObject *o);
525
+
526
+ /* Returns the object 'o' converted to Py_ssize_t by going through
527
+ PyNumber_Index() first.
528
+
529
+ If an overflow error occurs while converting the int to Py_ssize_t, then the
530
+ second argument 'exc' is the error-type to return. If it is NULL, then the
531
+ overflow error is cleared and the value is clipped. */
532
+ PyAPI_FUNC(Py_ssize_t) PyNumber_AsSsize_t(PyObject *o, PyObject *exc);
533
+
534
+ /* Returns the object 'o' converted to an integer object on success, or NULL
535
+ on failure.
536
+
537
+ This is the equivalent of the Python expression: int(o). */
538
+ PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o);
539
+
540
+ /* Returns the object 'o' converted to a float object on success, or NULL
541
+ on failure.
542
+
543
+ This is the equivalent of the Python expression: float(o). */
544
+ PyAPI_FUNC(PyObject *) PyNumber_Float(PyObject *o);
545
+
546
+
547
+ /* --- In-place variants of (some of) the above number protocol functions -- */
548
+
549
+ /* Returns the result of adding o2 to o1, possibly in-place, or NULL
550
+ on failure.
551
+
552
+ This is the equivalent of the Python expression: o1 += o2. */
553
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceAdd(PyObject *o1, PyObject *o2);
554
+
555
+ /* Returns the result of subtracting o2 from o1, possibly in-place or
556
+ NULL on failure.
557
+
558
+ This is the equivalent of the Python expression: o1 -= o2. */
559
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceSubtract(PyObject *o1, PyObject *o2);
560
+
561
+ /* Returns the result of multiplying o1 by o2, possibly in-place, or NULL on
562
+ failure.
563
+
564
+ This is the equivalent of the Python expression: o1 *= o2. */
565
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceMultiply(PyObject *o1, PyObject *o2);
566
+
567
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
568
+ /* This is the equivalent of the Python expression: o1 @= o2. */
569
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceMatrixMultiply(PyObject *o1, PyObject *o2);
570
+ #endif
571
+
572
+ /* Returns the result of dividing o1 by o2 giving an integral result, possibly
573
+ in-place, or NULL on failure.
574
+
575
+ This is the equivalent of the Python expression: o1 /= o2. */
576
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceFloorDivide(PyObject *o1,
577
+ PyObject *o2);
578
+
579
+ /* Returns the result of dividing o1 by o2 giving a float result, possibly
580
+ in-place, or null on failure.
581
+
582
+ This is the equivalent of the Python expression: o1 /= o2. */
583
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceTrueDivide(PyObject *o1,
584
+ PyObject *o2);
585
+
586
+ /* Returns the remainder of dividing o1 by o2, possibly in-place, or NULL on
587
+ failure.
588
+
589
+ This is the equivalent of the Python expression: o1 %= o2. */
590
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceRemainder(PyObject *o1, PyObject *o2);
591
+
592
+ /* Returns the result of raising o1 to the power of o2, possibly in-place,
593
+ or NULL on failure.
594
+
595
+ This is the equivalent of the Python expression: o1 **= o2,
596
+ or o1 = pow(o1, o2, o3) if o3 is present. */
597
+ PyAPI_FUNC(PyObject *) PyNumber_InPlacePower(PyObject *o1, PyObject *o2,
598
+ PyObject *o3);
599
+
600
+ /* Returns the result of left shifting o1 by o2, possibly in-place, or NULL
601
+ on failure.
602
+
603
+ This is the equivalent of the Python expression: o1 <<= o2. */
604
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceLshift(PyObject *o1, PyObject *o2);
605
+
606
+ /* Returns the result of right shifting o1 by o2, possibly in-place or NULL
607
+ on failure.
608
+
609
+ This is the equivalent of the Python expression: o1 >>= o2. */
610
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceRshift(PyObject *o1, PyObject *o2);
611
+
612
+ /* Returns the result of bitwise and of o1 and o2, possibly in-place, or NULL
613
+ on failure.
614
+
615
+ This is the equivalent of the Python expression: o1 &= o2. */
616
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceAnd(PyObject *o1, PyObject *o2);
617
+
618
+ /* Returns the bitwise exclusive or of o1 by o2, possibly in-place, or NULL
619
+ on failure.
620
+
621
+ This is the equivalent of the Python expression: o1 ^= o2. */
622
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceXor(PyObject *o1, PyObject *o2);
623
+
624
+ /* Returns the result of bitwise or of o1 and o2, possibly in-place,
625
+ or NULL on failure.
626
+
627
+ This is the equivalent of the Python expression: o1 |= o2. */
628
+ PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
629
+
630
+ /* Returns the integer n converted to a string with a base, with a base
631
+ marker of 0b, 0o or 0x prefixed if applicable.
632
+
633
+ If n is not an int object, it is converted with PyNumber_Index first. */
634
+ PyAPI_FUNC(PyObject *) PyNumber_ToBase(PyObject *n, int base);
635
+
636
+
637
+ /* === Sequence protocol ================================================ */
638
+
639
+ /* Return 1 if the object provides sequence protocol, and zero
640
+ otherwise.
641
+
642
+ This function always succeeds. */
643
+ PyAPI_FUNC(int) PySequence_Check(PyObject *o);
644
+
645
+ /* Return the size of sequence object o, or -1 on failure. */
646
+ PyAPI_FUNC(Py_ssize_t) PySequence_Size(PyObject *o);
647
+
648
+ /* For DLL compatibility */
649
+ #undef PySequence_Length
650
+ PyAPI_FUNC(Py_ssize_t) PySequence_Length(PyObject *o);
651
+ #define PySequence_Length PySequence_Size
652
+
653
+
654
+ /* Return the concatenation of o1 and o2 on success, and NULL on failure.
655
+
656
+ This is the equivalent of the Python expression: o1 + o2. */
657
+ PyAPI_FUNC(PyObject *) PySequence_Concat(PyObject *o1, PyObject *o2);
658
+
659
+ /* Return the result of repeating sequence object 'o' 'count' times,
660
+ or NULL on failure.
661
+
662
+ This is the equivalent of the Python expression: o * count. */
663
+ PyAPI_FUNC(PyObject *) PySequence_Repeat(PyObject *o, Py_ssize_t count);
664
+
665
+ /* Return the ith element of o, or NULL on failure.
666
+
667
+ This is the equivalent of the Python expression: o[i]. */
668
+ PyAPI_FUNC(PyObject *) PySequence_GetItem(PyObject *o, Py_ssize_t i);
669
+
670
+ /* Return the slice of sequence object o between i1 and i2, or NULL on failure.
671
+
672
+ This is the equivalent of the Python expression: o[i1:i2]. */
673
+ PyAPI_FUNC(PyObject *) PySequence_GetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
674
+
675
+ /* Assign object 'v' to the ith element of the sequence 'o'. Raise an exception
676
+ and return -1 on failure; return 0 on success.
677
+
678
+ This is the equivalent of the Python statement o[i] = v. */
679
+ PyAPI_FUNC(int) PySequence_SetItem(PyObject *o, Py_ssize_t i, PyObject *v);
680
+
681
+ /* Delete the 'i'-th element of the sequence 'v'. Returns -1 on failure.
682
+
683
+ This is the equivalent of the Python statement: del o[i]. */
684
+ PyAPI_FUNC(int) PySequence_DelItem(PyObject *o, Py_ssize_t i);
685
+
686
+ /* Assign the sequence object 'v' to the slice in sequence object 'o',
687
+ from 'i1' to 'i2'. Returns -1 on failure.
688
+
689
+ This is the equivalent of the Python statement: o[i1:i2] = v. */
690
+ PyAPI_FUNC(int) PySequence_SetSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2,
691
+ PyObject *v);
692
+
693
+ /* Delete the slice in sequence object 'o' from 'i1' to 'i2'.
694
+ Returns -1 on failure.
695
+
696
+ This is the equivalent of the Python statement: del o[i1:i2]. */
697
+ PyAPI_FUNC(int) PySequence_DelSlice(PyObject *o, Py_ssize_t i1, Py_ssize_t i2);
698
+
699
+ /* Returns the sequence 'o' as a tuple on success, and NULL on failure.
700
+
701
+ This is equivalent to the Python expression: tuple(o). */
702
+ PyAPI_FUNC(PyObject *) PySequence_Tuple(PyObject *o);
703
+
704
+ /* Returns the sequence 'o' as a list on success, and NULL on failure.
705
+ This is equivalent to the Python expression: list(o) */
706
+ PyAPI_FUNC(PyObject *) PySequence_List(PyObject *o);
707
+
708
+ /* Return the sequence 'o' as a list, unless it's already a tuple or list.
709
+
710
+ Use PySequence_Fast_GET_ITEM to access the members of this list, and
711
+ PySequence_Fast_GET_SIZE to get its length.
712
+
713
+ Returns NULL on failure. If the object does not support iteration, raises a
714
+ TypeError exception with 'm' as the message text. */
715
+ PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
716
+
717
+ /* Return the size of the sequence 'o', assuming that 'o' was returned by
718
+ PySequence_Fast and is not NULL. */
719
+ #define PySequence_Fast_GET_SIZE(o) \
720
+ (PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
721
+
722
+ /* Return the 'i'-th element of the sequence 'o', assuming that o was returned
723
+ by PySequence_Fast, and that i is within bounds. */
724
+ #define PySequence_Fast_GET_ITEM(o, i)\
725
+ (PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
726
+
727
+ /* Return a pointer to the underlying item array for
728
+ an object returned by PySequence_Fast */
729
+ #define PySequence_Fast_ITEMS(sf) \
730
+ (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
731
+ : ((PyTupleObject *)(sf))->ob_item)
732
+
733
+ /* Return the number of occurrences on value on 'o', that is, return
734
+ the number of keys for which o[key] == value.
735
+
736
+ On failure, return -1. This is equivalent to the Python expression:
737
+ o.count(value). */
738
+ PyAPI_FUNC(Py_ssize_t) PySequence_Count(PyObject *o, PyObject *value);
739
+
740
+ /* Return 1 if 'ob' is in the sequence 'seq'; 0 if 'ob' is not in the sequence
741
+ 'seq'; -1 on error.
742
+
743
+ Use __contains__ if possible, else _PySequence_IterSearch(). */
744
+ PyAPI_FUNC(int) PySequence_Contains(PyObject *seq, PyObject *ob);
745
+
746
+ /* For DLL-level backwards compatibility */
747
+ #undef PySequence_In
748
+ /* Determine if the sequence 'o' contains 'value'. If an item in 'o' is equal
749
+ to 'value', return 1, otherwise return 0. On error, return -1.
750
+
751
+ This is equivalent to the Python expression: value in o. */
752
+ PyAPI_FUNC(int) PySequence_In(PyObject *o, PyObject *value);
753
+
754
+ /* For source-level backwards compatibility */
755
+ #define PySequence_In PySequence_Contains
756
+
757
+
758
+ /* Return the first index for which o[i] == value.
759
+ On error, return -1.
760
+
761
+ This is equivalent to the Python expression: o.index(value). */
762
+ PyAPI_FUNC(Py_ssize_t) PySequence_Index(PyObject *o, PyObject *value);
763
+
764
+
765
+ /* --- In-place versions of some of the above Sequence functions --- */
766
+
767
+ /* Append sequence 'o2' to sequence 'o1', in-place when possible. Return the
768
+ resulting object, which could be 'o1', or NULL on failure.
769
+
770
+ This is the equivalent of the Python expression: o1 += o2. */
771
+ PyAPI_FUNC(PyObject *) PySequence_InPlaceConcat(PyObject *o1, PyObject *o2);
772
+
773
+ /* Repeat sequence 'o' by 'count', in-place when possible. Return the resulting
774
+ object, which could be 'o', or NULL on failure.
775
+
776
+ This is the equivalent of the Python expression: o1 *= count. */
777
+ PyAPI_FUNC(PyObject *) PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count);
778
+
779
+
780
+ /* === Mapping protocol ================================================= */
781
+
782
+ /* Return 1 if the object provides mapping protocol, and 0 otherwise.
783
+
784
+ This function always succeeds. */
785
+ PyAPI_FUNC(int) PyMapping_Check(PyObject *o);
786
+
787
+ /* Returns the number of keys in mapping object 'o' on success, and -1 on
788
+ failure. This is equivalent to the Python expression: len(o). */
789
+ PyAPI_FUNC(Py_ssize_t) PyMapping_Size(PyObject *o);
790
+
791
+ /* For DLL compatibility */
792
+ #undef PyMapping_Length
793
+ PyAPI_FUNC(Py_ssize_t) PyMapping_Length(PyObject *o);
794
+ #define PyMapping_Length PyMapping_Size
795
+
796
+
797
+ /* Implemented as a macro:
798
+
799
+ int PyMapping_DelItemString(PyObject *o, const char *key);
800
+
801
+ Remove the mapping for the string 'key' from the mapping 'o'. Returns -1 on
802
+ failure.
803
+
804
+ This is equivalent to the Python statement: del o[key]. */
805
+ #define PyMapping_DelItemString(O,K) PyObject_DelItemString((O),(K))
806
+
807
+ /* Implemented as a macro:
808
+
809
+ int PyMapping_DelItem(PyObject *o, PyObject *key);
810
+
811
+ Remove the mapping for the object 'key' from the mapping object 'o'.
812
+ Returns -1 on failure.
813
+
814
+ This is equivalent to the Python statement: del o[key]. */
815
+ #define PyMapping_DelItem(O,K) PyObject_DelItem((O),(K))
816
+
817
+ /* On success, return 1 if the mapping object 'o' has the key 'key',
818
+ and 0 otherwise.
819
+
820
+ This is equivalent to the Python expression: key in o.
821
+
822
+ This function always succeeds. */
823
+ PyAPI_FUNC(int) PyMapping_HasKeyString(PyObject *o, const char *key);
824
+
825
+ /* Return 1 if the mapping object has the key 'key', and 0 otherwise.
826
+
827
+ This is equivalent to the Python expression: key in o.
828
+
829
+ This function always succeeds. */
830
+ PyAPI_FUNC(int) PyMapping_HasKey(PyObject *o, PyObject *key);
831
+
832
+ /* On success, return a list or tuple of the keys in mapping object 'o'.
833
+ On failure, return NULL. */
834
+ PyAPI_FUNC(PyObject *) PyMapping_Keys(PyObject *o);
835
+
836
+ /* On success, return a list or tuple of the values in mapping object 'o'.
837
+ On failure, return NULL. */
838
+ PyAPI_FUNC(PyObject *) PyMapping_Values(PyObject *o);
839
+
840
+ /* On success, return a list or tuple of the items in mapping object 'o',
841
+ where each item is a tuple containing a key-value pair. On failure, return
842
+ NULL. */
843
+ PyAPI_FUNC(PyObject *) PyMapping_Items(PyObject *o);
844
+
845
+ /* Return element of 'o' corresponding to the string 'key' or NULL on failure.
846
+
847
+ This is the equivalent of the Python expression: o[key]. */
848
+ PyAPI_FUNC(PyObject *) PyMapping_GetItemString(PyObject *o,
849
+ const char *key);
850
+
851
+ /* Map the string 'key' to the value 'v' in the mapping 'o'.
852
+ Returns -1 on failure.
853
+
854
+ This is the equivalent of the Python statement: o[key]=v. */
855
+ PyAPI_FUNC(int) PyMapping_SetItemString(PyObject *o, const char *key,
856
+ PyObject *value);
857
+
858
+ /* isinstance(object, typeorclass) */
859
+ PyAPI_FUNC(int) PyObject_IsInstance(PyObject *object, PyObject *typeorclass);
860
+
861
+ /* issubclass(object, typeorclass) */
862
+ PyAPI_FUNC(int) PyObject_IsSubclass(PyObject *object, PyObject *typeorclass);
863
+
864
+ #ifndef Py_LIMITED_API
865
+ # define Py_CPYTHON_ABSTRACTOBJECT_H
866
+ # include "cpython/abstract.h"
867
+ # undef Py_CPYTHON_ABSTRACTOBJECT_H
868
+ #endif
869
+
870
+ #ifdef __cplusplus
871
+ }
872
+ #endif
873
+ #endif /* Py_ABSTRACTOBJECT_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/bltinmodule.h ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_BLTINMODULE_H
2
+ #define Py_BLTINMODULE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ PyAPI_DATA(PyTypeObject) PyFilter_Type;
8
+ PyAPI_DATA(PyTypeObject) PyMap_Type;
9
+ PyAPI_DATA(PyTypeObject) PyZip_Type;
10
+
11
+ #ifdef __cplusplus
12
+ }
13
+ #endif
14
+ #endif /* !Py_BLTINMODULE_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/boolobject.h ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Boolean object interface */
2
+
3
+ #ifndef Py_BOOLOBJECT_H
4
+ #define Py_BOOLOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+
10
+ PyAPI_DATA(PyTypeObject) PyBool_Type;
11
+
12
+ #define PyBool_Check(x) Py_IS_TYPE(x, &PyBool_Type)
13
+
14
+ /* Py_False and Py_True are the only two bools in existence.
15
+ Don't forget to apply Py_INCREF() when returning either!!! */
16
+
17
+ /* Don't use these directly */
18
+ PyAPI_DATA(struct _longobject) _Py_FalseStruct;
19
+ PyAPI_DATA(struct _longobject) _Py_TrueStruct;
20
+
21
+ /* Use these macros */
22
+ #define Py_False ((PyObject *) &_Py_FalseStruct)
23
+ #define Py_True ((PyObject *) &_Py_TrueStruct)
24
+
25
+ // Test if an object is the True singleton, the same as "x is True" in Python.
26
+ PyAPI_FUNC(int) Py_IsTrue(PyObject *x);
27
+ #define Py_IsTrue(x) Py_Is((x), Py_True)
28
+
29
+ // Test if an object is the False singleton, the same as "x is False" in Python.
30
+ PyAPI_FUNC(int) Py_IsFalse(PyObject *x);
31
+ #define Py_IsFalse(x) Py_Is((x), Py_False)
32
+
33
+ /* Macros for returning Py_True or Py_False, respectively */
34
+ #define Py_RETURN_TRUE return Py_NewRef(Py_True)
35
+ #define Py_RETURN_FALSE return Py_NewRef(Py_False)
36
+
37
+ /* Function to return a bool from a C long */
38
+ PyAPI_FUNC(PyObject *) PyBool_FromLong(long);
39
+
40
+ #ifdef __cplusplus
41
+ }
42
+ #endif
43
+ #endif /* !Py_BOOLOBJECT_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/bytearrayobject.h ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ByteArray object interface */
2
+
3
+ #ifndef Py_BYTEARRAYOBJECT_H
4
+ #define Py_BYTEARRAYOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ #include <stdarg.h>
10
+
11
+ /* Type PyByteArrayObject represents a mutable array of bytes.
12
+ * The Python API is that of a sequence;
13
+ * the bytes are mapped to ints in [0, 256).
14
+ * Bytes are not characters; they may be used to encode characters.
15
+ * The only way to go between bytes and str/unicode is via encoding
16
+ * and decoding.
17
+ * For the convenience of C programmers, the bytes type is considered
18
+ * to contain a char pointer, not an unsigned char pointer.
19
+ */
20
+
21
+ /* Type object */
22
+ PyAPI_DATA(PyTypeObject) PyByteArray_Type;
23
+ PyAPI_DATA(PyTypeObject) PyByteArrayIter_Type;
24
+
25
+ /* Type check macros */
26
+ #define PyByteArray_Check(self) PyObject_TypeCheck(self, &PyByteArray_Type)
27
+ #define PyByteArray_CheckExact(self) Py_IS_TYPE(self, &PyByteArray_Type)
28
+
29
+ /* Direct API functions */
30
+ PyAPI_FUNC(PyObject *) PyByteArray_FromObject(PyObject *);
31
+ PyAPI_FUNC(PyObject *) PyByteArray_Concat(PyObject *, PyObject *);
32
+ PyAPI_FUNC(PyObject *) PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
33
+ PyAPI_FUNC(Py_ssize_t) PyByteArray_Size(PyObject *);
34
+ PyAPI_FUNC(char *) PyByteArray_AsString(PyObject *);
35
+ PyAPI_FUNC(int) PyByteArray_Resize(PyObject *, Py_ssize_t);
36
+
37
+ #ifndef Py_LIMITED_API
38
+ # define Py_CPYTHON_BYTEARRAYOBJECT_H
39
+ # include "cpython/bytearrayobject.h"
40
+ # undef Py_CPYTHON_BYTEARRAYOBJECT_H
41
+ #endif
42
+
43
+ #ifdef __cplusplus
44
+ }
45
+ #endif
46
+ #endif /* !Py_BYTEARRAYOBJECT_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/bytesobject.h ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Bytes object interface */
3
+
4
+ #ifndef Py_BYTESOBJECT_H
5
+ #define Py_BYTESOBJECT_H
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
10
+ #include <stdarg.h>
11
+
12
+ /*
13
+ Type PyBytesObject represents a byte string. An extra zero byte is
14
+ reserved at the end to ensure it is zero-terminated, but a size is
15
+ present so strings with null bytes in them can be represented. This
16
+ is an immutable object type.
17
+
18
+ There are functions to create new bytes objects, to test
19
+ an object for bytes-ness, and to get the
20
+ byte string value. The latter function returns a null pointer
21
+ if the object is not of the proper type.
22
+ There is a variant that takes an explicit size as well as a
23
+ variant that assumes a zero-terminated string. Note that none of the
24
+ functions should be applied to NULL pointer.
25
+ */
26
+
27
+ PyAPI_DATA(PyTypeObject) PyBytes_Type;
28
+ PyAPI_DATA(PyTypeObject) PyBytesIter_Type;
29
+
30
+ #define PyBytes_Check(op) \
31
+ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
32
+ #define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type)
33
+
34
+ PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
35
+ PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
36
+ PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
37
+ PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
38
+ Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
39
+ PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
40
+ Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
41
+ PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
42
+ PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
43
+ PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
44
+ PyAPI_FUNC(void) PyBytes_Concat(PyObject **, PyObject *);
45
+ PyAPI_FUNC(void) PyBytes_ConcatAndDel(PyObject **, PyObject *);
46
+ PyAPI_FUNC(PyObject *) PyBytes_DecodeEscape(const char *, Py_ssize_t,
47
+ const char *, Py_ssize_t,
48
+ const char *);
49
+
50
+ /* Provides access to the internal data buffer and size of a bytes object.
51
+ Passing NULL as len parameter will force the string buffer to be
52
+ 0-terminated (passing a string with embedded NUL characters will
53
+ cause an exception). */
54
+ PyAPI_FUNC(int) PyBytes_AsStringAndSize(
55
+ PyObject *obj, /* bytes object */
56
+ char **s, /* pointer to buffer variable */
57
+ Py_ssize_t *len /* pointer to length variable or NULL */
58
+ );
59
+
60
+ #ifndef Py_LIMITED_API
61
+ # define Py_CPYTHON_BYTESOBJECT_H
62
+ # include "cpython/bytesobject.h"
63
+ # undef Py_CPYTHON_BYTESOBJECT_H
64
+ #endif
65
+
66
+ #ifdef __cplusplus
67
+ }
68
+ #endif
69
+ #endif /* !Py_BYTESOBJECT_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cellobject.h ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Cell object interface */
2
+ #ifndef Py_LIMITED_API
3
+ #ifndef Py_CELLOBJECT_H
4
+ #define Py_CELLOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ typedef struct {
10
+ PyObject_HEAD
11
+ PyObject *ob_ref; /* Content of the cell or NULL when empty */
12
+ } PyCellObject;
13
+
14
+ PyAPI_DATA(PyTypeObject) PyCell_Type;
15
+
16
+ #define PyCell_Check(op) Py_IS_TYPE(op, &PyCell_Type)
17
+
18
+ PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
19
+ PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
20
+ PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);
21
+
22
+ #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
23
+ #define PyCell_SET(op, v) ((void)(((PyCellObject *)(op))->ob_ref = v))
24
+
25
+ #ifdef __cplusplus
26
+ }
27
+ #endif
28
+ #endif /* !Py_TUPLEOBJECT_H */
29
+ #endif /* Py_LIMITED_API */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/ceval.h ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CEVAL_H
2
+ #define Py_CEVAL_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+
8
+ /* Interface to random parts in ceval.c */
9
+
10
+ /* PyEval_CallObjectWithKeywords(), PyEval_CallObject(), PyEval_CallFunction
11
+ * and PyEval_CallMethod are deprecated. Since they are officially part of the
12
+ * stable ABI (PEP 384), they must be kept for backward compatibility.
13
+ * PyObject_Call(), PyObject_CallFunction() and PyObject_CallMethod() are
14
+ * recommended to call a callable object.
15
+ */
16
+
17
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
18
+ PyObject *callable,
19
+ PyObject *args,
20
+ PyObject *kwargs);
21
+
22
+ /* Deprecated since PyEval_CallObjectWithKeywords is deprecated */
23
+ #define PyEval_CallObject(callable, arg) \
24
+ PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
25
+
26
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction(
27
+ PyObject *callable, const char *format, ...);
28
+ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallMethod(
29
+ PyObject *obj, const char *name, const char *format, ...);
30
+
31
+ PyAPI_FUNC(PyObject *) PyEval_GetBuiltins(void);
32
+ PyAPI_FUNC(PyObject *) PyEval_GetGlobals(void);
33
+ PyAPI_FUNC(PyObject *) PyEval_GetLocals(void);
34
+ PyAPI_FUNC(PyFrameObject *) PyEval_GetFrame(void);
35
+
36
+ PyAPI_FUNC(int) Py_AddPendingCall(int (*func)(void *), void *arg);
37
+ PyAPI_FUNC(int) Py_MakePendingCalls(void);
38
+
39
+ /* Protection against deeply nested recursive calls
40
+
41
+ In Python 3.0, this protection has two levels:
42
+ * normal anti-recursion protection is triggered when the recursion level
43
+ exceeds the current recursion limit. It raises a RecursionError, and sets
44
+ the "overflowed" flag in the thread state structure. This flag
45
+ temporarily *disables* the normal protection; this allows cleanup code
46
+ to potentially outgrow the recursion limit while processing the
47
+ RecursionError.
48
+ * "last chance" anti-recursion protection is triggered when the recursion
49
+ level exceeds "current recursion limit + 50". By construction, this
50
+ protection can only be triggered when the "overflowed" flag is set. It
51
+ means the cleanup code has itself gone into an infinite loop, or the
52
+ RecursionError has been mistakingly ignored. When this protection is
53
+ triggered, the interpreter aborts with a Fatal Error.
54
+
55
+ In addition, the "overflowed" flag is automatically reset when the
56
+ recursion level drops below "current recursion limit - 50". This heuristic
57
+ is meant to ensure that the normal anti-recursion protection doesn't get
58
+ disabled too long.
59
+
60
+ Please note: this scheme has its own limitations. See:
61
+ http://mail.python.org/pipermail/python-dev/2008-August/082106.html
62
+ for some observations.
63
+ */
64
+ PyAPI_FUNC(void) Py_SetRecursionLimit(int);
65
+ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
66
+
67
+ PyAPI_FUNC(int) Py_EnterRecursiveCall(const char *where);
68
+ PyAPI_FUNC(void) Py_LeaveRecursiveCall(void);
69
+
70
+ PyAPI_FUNC(const char *) PyEval_GetFuncName(PyObject *);
71
+ PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *);
72
+
73
+ PyAPI_FUNC(PyObject *) PyEval_EvalFrame(PyFrameObject *);
74
+ PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(PyFrameObject *f, int exc);
75
+
76
+ /* Interface for threads.
77
+
78
+ A module that plans to do a blocking system call (or something else
79
+ that lasts a long time and doesn't touch Python data) can allow other
80
+ threads to run as follows:
81
+
82
+ ...preparations here...
83
+ Py_BEGIN_ALLOW_THREADS
84
+ ...blocking system call here...
85
+ Py_END_ALLOW_THREADS
86
+ ...interpret result here...
87
+
88
+ The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
89
+ {}-surrounded block.
90
+ To leave the block in the middle (e.g., with return), you must insert
91
+ a line containing Py_BLOCK_THREADS before the return, e.g.
92
+
93
+ if (...premature_exit...) {
94
+ Py_BLOCK_THREADS
95
+ PyErr_SetFromErrno(PyExc_OSError);
96
+ return NULL;
97
+ }
98
+
99
+ An alternative is:
100
+
101
+ Py_BLOCK_THREADS
102
+ if (...premature_exit...) {
103
+ PyErr_SetFromErrno(PyExc_OSError);
104
+ return NULL;
105
+ }
106
+ Py_UNBLOCK_THREADS
107
+
108
+ For convenience, that the value of 'errno' is restored across
109
+ Py_END_ALLOW_THREADS and Py_BLOCK_THREADS.
110
+
111
+ WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
112
+ Py_END_ALLOW_THREADS!!!
113
+
114
+ Note that not yet all candidates have been converted to use this
115
+ mechanism!
116
+ */
117
+
118
+ PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
119
+ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
120
+
121
+ Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
122
+ Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
123
+ /* PyEval_AcquireLock() and PyEval_ReleaseLock() are part of stable ABI.
124
+ * They will be removed from this header file in the future version.
125
+ * But they will be remained in ABI until Python 4.0.
126
+ */
127
+ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
128
+ Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
129
+ PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
130
+ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
131
+
132
+ #define Py_BEGIN_ALLOW_THREADS { \
133
+ PyThreadState *_save; \
134
+ _save = PyEval_SaveThread();
135
+ #define Py_BLOCK_THREADS PyEval_RestoreThread(_save);
136
+ #define Py_UNBLOCK_THREADS _save = PyEval_SaveThread();
137
+ #define Py_END_ALLOW_THREADS PyEval_RestoreThread(_save); \
138
+ }
139
+
140
+ /* Masks and values used by FORMAT_VALUE opcode. */
141
+ #define FVC_MASK 0x3
142
+ #define FVC_NONE 0x0
143
+ #define FVC_STR 0x1
144
+ #define FVC_REPR 0x2
145
+ #define FVC_ASCII 0x3
146
+ #define FVS_MASK 0x4
147
+ #define FVS_HAVE_SPEC 0x4
148
+
149
+ #ifndef Py_LIMITED_API
150
+ # define Py_CPYTHON_CEVAL_H
151
+ # include "cpython/ceval.h"
152
+ # undef Py_CPYTHON_CEVAL_H
153
+ #endif
154
+
155
+ #ifdef __cplusplus
156
+ }
157
+ #endif
158
+ #endif /* !Py_CEVAL_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/classobject.h ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Former class object interface -- now only bound methods are here */
2
+
3
+ /* Revealing some structures (not for general use) */
4
+
5
+ #ifndef Py_LIMITED_API
6
+ #ifndef Py_CLASSOBJECT_H
7
+ #define Py_CLASSOBJECT_H
8
+ #ifdef __cplusplus
9
+ extern "C" {
10
+ #endif
11
+
12
+ typedef struct {
13
+ PyObject_HEAD
14
+ PyObject *im_func; /* The callable object implementing the method */
15
+ PyObject *im_self; /* The instance it is bound to */
16
+ PyObject *im_weakreflist; /* List of weak references */
17
+ vectorcallfunc vectorcall;
18
+ } PyMethodObject;
19
+
20
+ PyAPI_DATA(PyTypeObject) PyMethod_Type;
21
+
22
+ #define PyMethod_Check(op) Py_IS_TYPE(op, &PyMethod_Type)
23
+
24
+ PyAPI_FUNC(PyObject *) PyMethod_New(PyObject *, PyObject *);
25
+
26
+ PyAPI_FUNC(PyObject *) PyMethod_Function(PyObject *);
27
+ PyAPI_FUNC(PyObject *) PyMethod_Self(PyObject *);
28
+
29
+ /* Macros for direct access to these values. Type checks are *not*
30
+ done, so use with care. */
31
+ #define PyMethod_GET_FUNCTION(meth) \
32
+ (((PyMethodObject *)meth) -> im_func)
33
+ #define PyMethod_GET_SELF(meth) \
34
+ (((PyMethodObject *)meth) -> im_self)
35
+
36
+ typedef struct {
37
+ PyObject_HEAD
38
+ PyObject *func;
39
+ } PyInstanceMethodObject;
40
+
41
+ PyAPI_DATA(PyTypeObject) PyInstanceMethod_Type;
42
+
43
+ #define PyInstanceMethod_Check(op) Py_IS_TYPE(op, &PyInstanceMethod_Type)
44
+
45
+ PyAPI_FUNC(PyObject *) PyInstanceMethod_New(PyObject *);
46
+ PyAPI_FUNC(PyObject *) PyInstanceMethod_Function(PyObject *);
47
+
48
+ /* Macros for direct access to these values. Type checks are *not*
49
+ done, so use with care. */
50
+ #define PyInstanceMethod_GET_FUNCTION(meth) \
51
+ (((PyInstanceMethodObject *)meth) -> func)
52
+
53
+ #ifdef __cplusplus
54
+ }
55
+ #endif
56
+ #endif /* !Py_CLASSOBJECT_H */
57
+ #endif /* Py_LIMITED_API */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/code.h ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Definitions for bytecode */
2
+
3
+ #ifndef Py_CODE_H
4
+ #define Py_CODE_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ typedef struct PyCodeObject PyCodeObject;
10
+
11
+ #ifndef Py_LIMITED_API
12
+ # define Py_CPYTHON_CODE_H
13
+ # include "cpython/code.h"
14
+ # undef Py_CPYTHON_CODE_H
15
+ #endif
16
+
17
+ #ifdef __cplusplus
18
+ }
19
+ #endif
20
+ #endif /* !Py_CODE_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/codecs.h ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CODECREGISTRY_H
2
+ #define Py_CODECREGISTRY_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ /* ------------------------------------------------------------------------
8
+
9
+ Python Codec Registry and support functions
10
+
11
+
12
+ Written by Marc-Andre Lemburg (mal@lemburg.com).
13
+
14
+ Copyright (c) Corporation for National Research Initiatives.
15
+
16
+ ------------------------------------------------------------------------ */
17
+
18
+ /* Register a new codec search function.
19
+
20
+ As side effect, this tries to load the encodings package, if not
21
+ yet done, to make sure that it is always first in the list of
22
+ search functions.
23
+
24
+ The search_function's refcount is incremented by this function. */
25
+
26
+ PyAPI_FUNC(int) PyCodec_Register(
27
+ PyObject *search_function
28
+ );
29
+
30
+ /* Unregister a codec search function and clear the registry's cache.
31
+ If the search function is not registered, do nothing.
32
+ Return 0 on success. Raise an exception and return -1 on error. */
33
+
34
+ PyAPI_FUNC(int) PyCodec_Unregister(
35
+ PyObject *search_function
36
+ );
37
+
38
+ /* Codec registry lookup API.
39
+
40
+ Looks up the given encoding and returns a CodecInfo object with
41
+ function attributes which implement the different aspects of
42
+ processing the encoding.
43
+
44
+ The encoding string is looked up converted to all lower-case
45
+ characters. This makes encodings looked up through this mechanism
46
+ effectively case-insensitive.
47
+
48
+ If no codec is found, a KeyError is set and NULL returned.
49
+
50
+ As side effect, this tries to load the encodings package, if not
51
+ yet done. This is part of the lazy load strategy for the encodings
52
+ package.
53
+
54
+ */
55
+
56
+ #ifndef Py_LIMITED_API
57
+ PyAPI_FUNC(PyObject *) _PyCodec_Lookup(
58
+ const char *encoding
59
+ );
60
+
61
+ PyAPI_FUNC(int) _PyCodec_Forget(
62
+ const char *encoding
63
+ );
64
+ #endif
65
+
66
+ /* Codec registry encoding check API.
67
+
68
+ Returns 1/0 depending on whether there is a registered codec for
69
+ the given encoding.
70
+
71
+ */
72
+
73
+ PyAPI_FUNC(int) PyCodec_KnownEncoding(
74
+ const char *encoding
75
+ );
76
+
77
+ /* Generic codec based encoding API.
78
+
79
+ object is passed through the encoder function found for the given
80
+ encoding using the error handling method defined by errors. errors
81
+ may be NULL to use the default method defined for the codec.
82
+
83
+ Raises a LookupError in case no encoder can be found.
84
+
85
+ */
86
+
87
+ PyAPI_FUNC(PyObject *) PyCodec_Encode(
88
+ PyObject *object,
89
+ const char *encoding,
90
+ const char *errors
91
+ );
92
+
93
+ /* Generic codec based decoding API.
94
+
95
+ object is passed through the decoder function found for the given
96
+ encoding using the error handling method defined by errors. errors
97
+ may be NULL to use the default method defined for the codec.
98
+
99
+ Raises a LookupError in case no encoder can be found.
100
+
101
+ */
102
+
103
+ PyAPI_FUNC(PyObject *) PyCodec_Decode(
104
+ PyObject *object,
105
+ const char *encoding,
106
+ const char *errors
107
+ );
108
+
109
+ #ifndef Py_LIMITED_API
110
+ /* Text codec specific encoding and decoding API.
111
+
112
+ Checks the encoding against a list of codecs which do not
113
+ implement a str<->bytes encoding before attempting the
114
+ operation.
115
+
116
+ Please note that these APIs are internal and should not
117
+ be used in Python C extensions.
118
+
119
+ XXX (ncoghlan): should we make these, or something like them, public
120
+ in Python 3.5+?
121
+
122
+ */
123
+ PyAPI_FUNC(PyObject *) _PyCodec_LookupTextEncoding(
124
+ const char *encoding,
125
+ const char *alternate_command
126
+ );
127
+
128
+ PyAPI_FUNC(PyObject *) _PyCodec_EncodeText(
129
+ PyObject *object,
130
+ const char *encoding,
131
+ const char *errors
132
+ );
133
+
134
+ PyAPI_FUNC(PyObject *) _PyCodec_DecodeText(
135
+ PyObject *object,
136
+ const char *encoding,
137
+ const char *errors
138
+ );
139
+
140
+ /* These two aren't actually text encoding specific, but _io.TextIOWrapper
141
+ * is the only current API consumer.
142
+ */
143
+ PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalDecoder(
144
+ PyObject *codec_info,
145
+ const char *errors
146
+ );
147
+
148
+ PyAPI_FUNC(PyObject *) _PyCodecInfo_GetIncrementalEncoder(
149
+ PyObject *codec_info,
150
+ const char *errors
151
+ );
152
+ #endif
153
+
154
+
155
+
156
+ /* --- Codec Lookup APIs --------------------------------------------------
157
+
158
+ All APIs return a codec object with incremented refcount and are
159
+ based on _PyCodec_Lookup(). The same comments w/r to the encoding
160
+ name also apply to these APIs.
161
+
162
+ */
163
+
164
+ /* Get an encoder function for the given encoding. */
165
+
166
+ PyAPI_FUNC(PyObject *) PyCodec_Encoder(
167
+ const char *encoding
168
+ );
169
+
170
+ /* Get a decoder function for the given encoding. */
171
+
172
+ PyAPI_FUNC(PyObject *) PyCodec_Decoder(
173
+ const char *encoding
174
+ );
175
+
176
+ /* Get an IncrementalEncoder object for the given encoding. */
177
+
178
+ PyAPI_FUNC(PyObject *) PyCodec_IncrementalEncoder(
179
+ const char *encoding,
180
+ const char *errors
181
+ );
182
+
183
+ /* Get an IncrementalDecoder object function for the given encoding. */
184
+
185
+ PyAPI_FUNC(PyObject *) PyCodec_IncrementalDecoder(
186
+ const char *encoding,
187
+ const char *errors
188
+ );
189
+
190
+ /* Get a StreamReader factory function for the given encoding. */
191
+
192
+ PyAPI_FUNC(PyObject *) PyCodec_StreamReader(
193
+ const char *encoding,
194
+ PyObject *stream,
195
+ const char *errors
196
+ );
197
+
198
+ /* Get a StreamWriter factory function for the given encoding. */
199
+
200
+ PyAPI_FUNC(PyObject *) PyCodec_StreamWriter(
201
+ const char *encoding,
202
+ PyObject *stream,
203
+ const char *errors
204
+ );
205
+
206
+ /* Unicode encoding error handling callback registry API */
207
+
208
+ /* Register the error handling callback function error under the given
209
+ name. This function will be called by the codec when it encounters
210
+ unencodable characters/undecodable bytes and doesn't know the
211
+ callback name, when name is specified as the error parameter
212
+ in the call to the encode/decode function.
213
+ Return 0 on success, -1 on error */
214
+ PyAPI_FUNC(int) PyCodec_RegisterError(const char *name, PyObject *error);
215
+
216
+ /* Lookup the error handling callback function registered under the given
217
+ name. As a special case NULL can be passed, in which case
218
+ the error handling callback for "strict" will be returned. */
219
+ PyAPI_FUNC(PyObject *) PyCodec_LookupError(const char *name);
220
+
221
+ /* raise exc as an exception */
222
+ PyAPI_FUNC(PyObject *) PyCodec_StrictErrors(PyObject *exc);
223
+
224
+ /* ignore the unicode error, skipping the faulty input */
225
+ PyAPI_FUNC(PyObject *) PyCodec_IgnoreErrors(PyObject *exc);
226
+
227
+ /* replace the unicode encode error with ? or U+FFFD */
228
+ PyAPI_FUNC(PyObject *) PyCodec_ReplaceErrors(PyObject *exc);
229
+
230
+ /* replace the unicode encode error with XML character references */
231
+ PyAPI_FUNC(PyObject *) PyCodec_XMLCharRefReplaceErrors(PyObject *exc);
232
+
233
+ /* replace the unicode encode error with backslash escapes (\x, \u and \U) */
234
+ PyAPI_FUNC(PyObject *) PyCodec_BackslashReplaceErrors(PyObject *exc);
235
+
236
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
237
+ /* replace the unicode encode error with backslash escapes (\N, \x, \u and \U) */
238
+ PyAPI_FUNC(PyObject *) PyCodec_NameReplaceErrors(PyObject *exc);
239
+ #endif
240
+
241
+ #ifndef Py_LIMITED_API
242
+ PyAPI_DATA(const char *) Py_hexdigits;
243
+ #endif
244
+
245
+ #ifdef __cplusplus
246
+ }
247
+ #endif
248
+ #endif /* !Py_CODECREGISTRY_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/compile.h ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_COMPILE_H
2
+ #define Py_COMPILE_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ /* These definitions must match corresponding definitions in graminit.h. */
8
+ #define Py_single_input 256
9
+ #define Py_file_input 257
10
+ #define Py_eval_input 258
11
+ #define Py_func_type_input 345
12
+
13
+ /* This doesn't need to match anything */
14
+ #define Py_fstring_input 800
15
+
16
+ #ifndef Py_LIMITED_API
17
+ # define Py_CPYTHON_COMPILE_H
18
+ # include "cpython/compile.h"
19
+ # undef Py_CPYTHON_COMPILE_H
20
+ #endif
21
+
22
+ #ifdef __cplusplus
23
+ }
24
+ #endif
25
+ #endif /* !Py_COMPILE_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/complexobject.h ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Complex number structure */
2
+
3
+ #ifndef Py_COMPLEXOBJECT_H
4
+ #define Py_COMPLEXOBJECT_H
5
+ #ifdef __cplusplus
6
+ extern "C" {
7
+ #endif
8
+
9
+ #ifndef Py_LIMITED_API
10
+ typedef struct {
11
+ double real;
12
+ double imag;
13
+ } Py_complex;
14
+
15
+ /* Operations on complex numbers from complexmodule.c */
16
+
17
+ PyAPI_FUNC(Py_complex) _Py_c_sum(Py_complex, Py_complex);
18
+ PyAPI_FUNC(Py_complex) _Py_c_diff(Py_complex, Py_complex);
19
+ PyAPI_FUNC(Py_complex) _Py_c_neg(Py_complex);
20
+ PyAPI_FUNC(Py_complex) _Py_c_prod(Py_complex, Py_complex);
21
+ PyAPI_FUNC(Py_complex) _Py_c_quot(Py_complex, Py_complex);
22
+ PyAPI_FUNC(Py_complex) _Py_c_pow(Py_complex, Py_complex);
23
+ PyAPI_FUNC(double) _Py_c_abs(Py_complex);
24
+ #endif
25
+
26
+ /* Complex object interface */
27
+
28
+ /*
29
+ PyComplexObject represents a complex number with double-precision
30
+ real and imaginary parts.
31
+ */
32
+ #ifndef Py_LIMITED_API
33
+ typedef struct {
34
+ PyObject_HEAD
35
+ Py_complex cval;
36
+ } PyComplexObject;
37
+ #endif
38
+
39
+ PyAPI_DATA(PyTypeObject) PyComplex_Type;
40
+
41
+ #define PyComplex_Check(op) PyObject_TypeCheck(op, &PyComplex_Type)
42
+ #define PyComplex_CheckExact(op) Py_IS_TYPE(op, &PyComplex_Type)
43
+
44
+ #ifndef Py_LIMITED_API
45
+ PyAPI_FUNC(PyObject *) PyComplex_FromCComplex(Py_complex);
46
+ #endif
47
+ PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
48
+
49
+ PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op);
50
+ PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op);
51
+ #ifndef Py_LIMITED_API
52
+ PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
53
+ #endif
54
+
55
+ /* Format the object based on the format_spec, as defined in PEP 3101
56
+ (Advanced String Formatting). */
57
+ #ifndef Py_LIMITED_API
58
+ PyAPI_FUNC(int) _PyComplex_FormatAdvancedWriter(
59
+ _PyUnicodeWriter *writer,
60
+ PyObject *obj,
61
+ PyObject *format_spec,
62
+ Py_ssize_t start,
63
+ Py_ssize_t end);
64
+ #endif
65
+
66
+ #ifdef __cplusplus
67
+ }
68
+ #endif
69
+ #endif /* !Py_COMPLEXOBJECT_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/context.h ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CONTEXT_H
2
+ #define Py_CONTEXT_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ #ifndef Py_LIMITED_API
8
+
9
+
10
+ PyAPI_DATA(PyTypeObject) PyContext_Type;
11
+ typedef struct _pycontextobject PyContext;
12
+
13
+ PyAPI_DATA(PyTypeObject) PyContextVar_Type;
14
+ typedef struct _pycontextvarobject PyContextVar;
15
+
16
+ PyAPI_DATA(PyTypeObject) PyContextToken_Type;
17
+ typedef struct _pycontexttokenobject PyContextToken;
18
+
19
+
20
+ #define PyContext_CheckExact(o) Py_IS_TYPE(o, &PyContext_Type)
21
+ #define PyContextVar_CheckExact(o) Py_IS_TYPE(o, &PyContextVar_Type)
22
+ #define PyContextToken_CheckExact(o) Py_IS_TYPE(o, &PyContextToken_Type)
23
+
24
+
25
+ PyAPI_FUNC(PyObject *) PyContext_New(void);
26
+ PyAPI_FUNC(PyObject *) PyContext_Copy(PyObject *);
27
+ PyAPI_FUNC(PyObject *) PyContext_CopyCurrent(void);
28
+
29
+ PyAPI_FUNC(int) PyContext_Enter(PyObject *);
30
+ PyAPI_FUNC(int) PyContext_Exit(PyObject *);
31
+
32
+
33
+ /* Create a new context variable.
34
+
35
+ default_value can be NULL.
36
+ */
37
+ PyAPI_FUNC(PyObject *) PyContextVar_New(
38
+ const char *name, PyObject *default_value);
39
+
40
+
41
+ /* Get a value for the variable.
42
+
43
+ Returns -1 if an error occurred during lookup.
44
+
45
+ Returns 0 if value either was or was not found.
46
+
47
+ If value was found, *value will point to it.
48
+ If not, it will point to:
49
+
50
+ - default_value, if not NULL;
51
+ - the default value of "var", if not NULL;
52
+ - NULL.
53
+
54
+ '*value' will be a new ref, if not NULL.
55
+ */
56
+ PyAPI_FUNC(int) PyContextVar_Get(
57
+ PyObject *var, PyObject *default_value, PyObject **value);
58
+
59
+
60
+ /* Set a new value for the variable.
61
+ Returns NULL if an error occurs.
62
+ */
63
+ PyAPI_FUNC(PyObject *) PyContextVar_Set(PyObject *var, PyObject *value);
64
+
65
+
66
+ /* Reset a variable to its previous value.
67
+ Returns 0 on success, -1 on error.
68
+ */
69
+ PyAPI_FUNC(int) PyContextVar_Reset(PyObject *var, PyObject *token);
70
+
71
+
72
+ /* This method is exposed only for CPython tests. Don not use it. */
73
+ PyAPI_FUNC(PyObject *) _PyContext_NewHamtForTests(void);
74
+
75
+
76
+ #endif /* !Py_LIMITED_API */
77
+
78
+ #ifdef __cplusplus
79
+ }
80
+ #endif
81
+ #endif /* !Py_CONTEXT_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/abstract.h ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_ABSTRACTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* === Object Protocol ================================================== */
6
+
7
+ #ifdef PY_SSIZE_T_CLEAN
8
+ # define _PyObject_CallMethodId _PyObject_CallMethodId_SizeT
9
+ #endif
10
+
11
+ /* Convert keyword arguments from the FASTCALL (stack: C array, kwnames: tuple)
12
+ format to a Python dictionary ("kwargs" dict).
13
+
14
+ The type of kwnames keys is not checked. The final function getting
15
+ arguments is responsible to check if all keys are strings, for example using
16
+ PyArg_ParseTupleAndKeywords() or PyArg_ValidateKeywordArguments().
17
+
18
+ Duplicate keys are merged using the last value. If duplicate keys must raise
19
+ an exception, the caller is responsible to implement an explicit keys on
20
+ kwnames. */
21
+ PyAPI_FUNC(PyObject *) _PyStack_AsDict(
22
+ PyObject *const *values,
23
+ PyObject *kwnames);
24
+
25
+ /* Suggested size (number of positional arguments) for arrays of PyObject*
26
+ allocated on a C stack to avoid allocating memory on the heap memory. Such
27
+ array is used to pass positional arguments to call functions of the
28
+ PyObject_Vectorcall() family.
29
+
30
+ The size is chosen to not abuse the C stack and so limit the risk of stack
31
+ overflow. The size is also chosen to allow using the small stack for most
32
+ function calls of the Python standard library. On 64-bit CPU, it allocates
33
+ 40 bytes on the stack. */
34
+ #define _PY_FASTCALL_SMALL_STACK 5
35
+
36
+ PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(
37
+ PyThreadState *tstate,
38
+ PyObject *callable,
39
+ PyObject *result,
40
+ const char *where);
41
+
42
+ /* === Vectorcall protocol (PEP 590) ============================= */
43
+
44
+ /* Call callable using tp_call. Arguments are like PyObject_Vectorcall()
45
+ or PyObject_FastCallDict() (both forms are supported),
46
+ except that nargs is plainly the number of arguments without flags. */
47
+ PyAPI_FUNC(PyObject *) _PyObject_MakeTpCall(
48
+ PyThreadState *tstate,
49
+ PyObject *callable,
50
+ PyObject *const *args, Py_ssize_t nargs,
51
+ PyObject *keywords);
52
+
53
+ #define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
54
+
55
+ static inline Py_ssize_t
56
+ PyVectorcall_NARGS(size_t n)
57
+ {
58
+ return n & ~PY_VECTORCALL_ARGUMENTS_OFFSET;
59
+ }
60
+
61
+ static inline vectorcallfunc
62
+ PyVectorcall_Function(PyObject *callable)
63
+ {
64
+ PyTypeObject *tp;
65
+ Py_ssize_t offset;
66
+ vectorcallfunc ptr;
67
+
68
+ assert(callable != NULL);
69
+ tp = Py_TYPE(callable);
70
+ if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
71
+ return NULL;
72
+ }
73
+ assert(PyCallable_Check(callable));
74
+ offset = tp->tp_vectorcall_offset;
75
+ assert(offset > 0);
76
+ memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
77
+ return ptr;
78
+ }
79
+
80
+ /* Call the callable object 'callable' with the "vectorcall" calling
81
+ convention.
82
+
83
+ args is a C array for positional arguments.
84
+
85
+ nargsf is the number of positional arguments plus optionally the flag
86
+ PY_VECTORCALL_ARGUMENTS_OFFSET which means that the caller is allowed to
87
+ modify args[-1].
88
+
89
+ kwnames is a tuple of keyword names. The values of the keyword arguments
90
+ are stored in "args" after the positional arguments (note that the number
91
+ of keyword arguments does not change nargsf). kwnames can also be NULL if
92
+ there are no keyword arguments.
93
+
94
+ keywords must only contain strings and all keys must be unique.
95
+
96
+ Return the result on success. Raise an exception and return NULL on
97
+ error. */
98
+ static inline PyObject *
99
+ _PyObject_VectorcallTstate(PyThreadState *tstate, PyObject *callable,
100
+ PyObject *const *args, size_t nargsf,
101
+ PyObject *kwnames)
102
+ {
103
+ vectorcallfunc func;
104
+ PyObject *res;
105
+
106
+ assert(kwnames == NULL || PyTuple_Check(kwnames));
107
+ assert(args != NULL || PyVectorcall_NARGS(nargsf) == 0);
108
+
109
+ func = PyVectorcall_Function(callable);
110
+ if (func == NULL) {
111
+ Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
112
+ return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwnames);
113
+ }
114
+ res = func(callable, args, nargsf, kwnames);
115
+ return _Py_CheckFunctionResult(tstate, callable, res, NULL);
116
+ }
117
+
118
+ static inline PyObject *
119
+ PyObject_Vectorcall(PyObject *callable, PyObject *const *args,
120
+ size_t nargsf, PyObject *kwnames)
121
+ {
122
+ PyThreadState *tstate = PyThreadState_Get();
123
+ return _PyObject_VectorcallTstate(tstate, callable,
124
+ args, nargsf, kwnames);
125
+ }
126
+
127
+ // Backwards compatibility aliases for API that was provisional in Python 3.8
128
+ #define _PyObject_Vectorcall PyObject_Vectorcall
129
+ #define _PyObject_VectorcallMethod PyObject_VectorcallMethod
130
+ #define _PyObject_FastCallDict PyObject_VectorcallDict
131
+ #define _PyVectorcall_Function PyVectorcall_Function
132
+ #define _PyObject_CallOneArg PyObject_CallOneArg
133
+ #define _PyObject_CallMethodNoArgs PyObject_CallMethodNoArgs
134
+ #define _PyObject_CallMethodOneArg PyObject_CallMethodOneArg
135
+
136
+ /* Same as PyObject_Vectorcall except that keyword arguments are passed as
137
+ dict, which may be NULL if there are no keyword arguments. */
138
+ PyAPI_FUNC(PyObject *) PyObject_VectorcallDict(
139
+ PyObject *callable,
140
+ PyObject *const *args,
141
+ size_t nargsf,
142
+ PyObject *kwargs);
143
+
144
+ /* Call "callable" (which must support vectorcall) with positional arguments
145
+ "tuple" and keyword arguments "dict". "dict" may also be NULL */
146
+ PyAPI_FUNC(PyObject *) PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict);
147
+
148
+ static inline PyObject *
149
+ _PyObject_FastCallTstate(PyThreadState *tstate, PyObject *func, PyObject *const *args, Py_ssize_t nargs)
150
+ {
151
+ return _PyObject_VectorcallTstate(tstate, func, args, (size_t)nargs, NULL);
152
+ }
153
+
154
+ /* Same as PyObject_Vectorcall except without keyword arguments */
155
+ static inline PyObject *
156
+ _PyObject_FastCall(PyObject *func, PyObject *const *args, Py_ssize_t nargs)
157
+ {
158
+ PyThreadState *tstate = PyThreadState_Get();
159
+ return _PyObject_FastCallTstate(tstate, func, args, nargs);
160
+ }
161
+
162
+ /* Call a callable without any arguments
163
+ Private static inline function variant of public function
164
+ PyObject_CallNoArgs(). */
165
+ static inline PyObject *
166
+ _PyObject_CallNoArg(PyObject *func) {
167
+ PyThreadState *tstate = PyThreadState_Get();
168
+ return _PyObject_VectorcallTstate(tstate, func, NULL, 0, NULL);
169
+ }
170
+
171
+ static inline PyObject *
172
+ PyObject_CallOneArg(PyObject *func, PyObject *arg)
173
+ {
174
+ PyObject *_args[2];
175
+ PyObject **args;
176
+ PyThreadState *tstate;
177
+ size_t nargsf;
178
+
179
+ assert(arg != NULL);
180
+ args = _args + 1; // For PY_VECTORCALL_ARGUMENTS_OFFSET
181
+ args[0] = arg;
182
+ tstate = PyThreadState_Get();
183
+ nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
184
+ return _PyObject_VectorcallTstate(tstate, func, args, nargsf, NULL);
185
+ }
186
+
187
+ PyAPI_FUNC(PyObject *) PyObject_VectorcallMethod(
188
+ PyObject *name, PyObject *const *args,
189
+ size_t nargsf, PyObject *kwnames);
190
+
191
+ static inline PyObject *
192
+ PyObject_CallMethodNoArgs(PyObject *self, PyObject *name)
193
+ {
194
+ return PyObject_VectorcallMethod(name, &self,
195
+ 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
196
+ }
197
+
198
+ static inline PyObject *
199
+ PyObject_CallMethodOneArg(PyObject *self, PyObject *name, PyObject *arg)
200
+ {
201
+ PyObject *args[2] = {self, arg};
202
+
203
+ assert(arg != NULL);
204
+ return PyObject_VectorcallMethod(name, args,
205
+ 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
206
+ }
207
+
208
+ /* Like PyObject_CallMethod(), but expect a _Py_Identifier*
209
+ as the method name. */
210
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId(PyObject *obj,
211
+ _Py_Identifier *name,
212
+ const char *format, ...);
213
+
214
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId_SizeT(PyObject *obj,
215
+ _Py_Identifier *name,
216
+ const char *format,
217
+ ...);
218
+
219
+ PyAPI_FUNC(PyObject *) _PyObject_CallMethodIdObjArgs(
220
+ PyObject *obj,
221
+ struct _Py_Identifier *name,
222
+ ...);
223
+
224
+ static inline PyObject *
225
+ _PyObject_VectorcallMethodId(
226
+ _Py_Identifier *name, PyObject *const *args,
227
+ size_t nargsf, PyObject *kwnames)
228
+ {
229
+ PyObject *oname = _PyUnicode_FromId(name); /* borrowed */
230
+ if (!oname) {
231
+ return NULL;
232
+ }
233
+ return PyObject_VectorcallMethod(oname, args, nargsf, kwnames);
234
+ }
235
+
236
+ static inline PyObject *
237
+ _PyObject_CallMethodIdNoArgs(PyObject *self, _Py_Identifier *name)
238
+ {
239
+ return _PyObject_VectorcallMethodId(name, &self,
240
+ 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
241
+ }
242
+
243
+ static inline PyObject *
244
+ _PyObject_CallMethodIdOneArg(PyObject *self, _Py_Identifier *name, PyObject *arg)
245
+ {
246
+ PyObject *args[2] = {self, arg};
247
+
248
+ assert(arg != NULL);
249
+ return _PyObject_VectorcallMethodId(name, args,
250
+ 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
251
+ }
252
+
253
+ PyAPI_FUNC(int) _PyObject_HasLen(PyObject *o);
254
+
255
+ /* Guess the size of object 'o' using len(o) or o.__length_hint__().
256
+ If neither of those return a non-negative value, then return the default
257
+ value. If one of the calls fails, this function returns -1. */
258
+ PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t);
259
+
260
+ /* === New Buffer API ============================================ */
261
+
262
+ /* Return 1 if the getbuffer function is available, otherwise return 0. */
263
+ PyAPI_FUNC(int) PyObject_CheckBuffer(PyObject *obj);
264
+
265
+ /* This is a C-API version of the getbuffer function call. It checks
266
+ to make sure object has the required function pointer and issues the
267
+ call.
268
+
269
+ Returns -1 and raises an error on failure and returns 0 on success. */
270
+ PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
271
+ int flags);
272
+
273
+ /* Get the memory area pointed to by the indices for the buffer given.
274
+ Note that view->ndim is the assumed size of indices. */
275
+ PyAPI_FUNC(void *) PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices);
276
+
277
+ /* Return the implied itemsize of the data-format area from a
278
+ struct-style description. */
279
+ PyAPI_FUNC(Py_ssize_t) PyBuffer_SizeFromFormat(const char *format);
280
+
281
+ /* Implementation in memoryobject.c */
282
+ PyAPI_FUNC(int) PyBuffer_ToContiguous(void *buf, Py_buffer *view,
283
+ Py_ssize_t len, char order);
284
+
285
+ PyAPI_FUNC(int) PyBuffer_FromContiguous(Py_buffer *view, void *buf,
286
+ Py_ssize_t len, char order);
287
+
288
+ /* Copy len bytes of data from the contiguous chunk of memory
289
+ pointed to by buf into the buffer exported by obj. Return
290
+ 0 on success and return -1 and raise a PyBuffer_Error on
291
+ error (i.e. the object does not have a buffer interface or
292
+ it is not working).
293
+
294
+ If fort is 'F', then if the object is multi-dimensional,
295
+ then the data will be copied into the array in
296
+ Fortran-style (first dimension varies the fastest). If
297
+ fort is 'C', then the data will be copied into the array
298
+ in C-style (last dimension varies the fastest). If fort
299
+ is 'A', then it does not matter and the copy will be made
300
+ in whatever way is more efficient. */
301
+ PyAPI_FUNC(int) PyObject_CopyData(PyObject *dest, PyObject *src);
302
+
303
+ /* Copy the data from the src buffer to the buffer of destination. */
304
+ PyAPI_FUNC(int) PyBuffer_IsContiguous(const Py_buffer *view, char fort);
305
+
306
+ /*Fill the strides array with byte-strides of a contiguous
307
+ (Fortran-style if fort is 'F' or C-style otherwise)
308
+ array of the given shape with the given number of bytes
309
+ per element. */
310
+ PyAPI_FUNC(void) PyBuffer_FillContiguousStrides(int ndims,
311
+ Py_ssize_t *shape,
312
+ Py_ssize_t *strides,
313
+ int itemsize,
314
+ char fort);
315
+
316
+ /* Fills in a buffer-info structure correctly for an exporter
317
+ that can only share a contiguous chunk of memory of
318
+ "unsigned bytes" of the given length.
319
+
320
+ Returns 0 on success and -1 (with raising an error) on error. */
321
+ PyAPI_FUNC(int) PyBuffer_FillInfo(Py_buffer *view, PyObject *o, void *buf,
322
+ Py_ssize_t len, int readonly,
323
+ int flags);
324
+
325
+ /* Releases a Py_buffer obtained from getbuffer ParseTuple's "s*". */
326
+ PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);
327
+
328
+ /* === Sequence protocol ================================================ */
329
+
330
+ /* Assume tp_as_sequence and sq_item exist and that 'i' does not
331
+ need to be corrected for a negative index. */
332
+ #define PySequence_ITEM(o, i)\
333
+ ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
334
+
335
+ #define PY_ITERSEARCH_COUNT 1
336
+ #define PY_ITERSEARCH_INDEX 2
337
+ #define PY_ITERSEARCH_CONTAINS 3
338
+
339
+ /* Iterate over seq.
340
+
341
+ Result depends on the operation:
342
+
343
+ PY_ITERSEARCH_COUNT: return # of times obj appears in seq; -1 if
344
+ error.
345
+ PY_ITERSEARCH_INDEX: return 0-based index of first occurrence of
346
+ obj in seq; set ValueError and return -1 if none found;
347
+ also return -1 on error.
348
+ PY_ITERSEARCH_CONTAINS: return 1 if obj in seq, else 0; -1 on
349
+ error. */
350
+ PyAPI_FUNC(Py_ssize_t) _PySequence_IterSearch(PyObject *seq,
351
+ PyObject *obj, int operation);
352
+
353
+ /* === Mapping protocol ================================================= */
354
+
355
+ PyAPI_FUNC(int) _PyObject_RealIsInstance(PyObject *inst, PyObject *cls);
356
+
357
+ PyAPI_FUNC(int) _PyObject_RealIsSubclass(PyObject *derived, PyObject *cls);
358
+
359
+ PyAPI_FUNC(char *const *) _PySequence_BytesToCharpArray(PyObject* self);
360
+
361
+ PyAPI_FUNC(void) _Py_FreeCharPArray(char *const array[]);
362
+
363
+ /* For internal use by buffer API functions */
364
+ PyAPI_FUNC(void) _Py_add_one_to_index_F(int nd, Py_ssize_t *index,
365
+ const Py_ssize_t *shape);
366
+ PyAPI_FUNC(void) _Py_add_one_to_index_C(int nd, Py_ssize_t *index,
367
+ const Py_ssize_t *shape);
368
+
369
+ /* Convert Python int to Py_ssize_t. Do nothing if the argument is None. */
370
+ PyAPI_FUNC(int) _Py_convert_optional_to_ssize_t(PyObject *, void *);
371
+
372
+ /* Same as PyNumber_Index but can return an instance of a subclass of int. */
373
+ PyAPI_FUNC(PyObject *) _PyNumber_Index(PyObject *o);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/bytearrayobject.h ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_BYTEARRAYOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* Object layout */
6
+ typedef struct {
7
+ PyObject_VAR_HEAD
8
+ Py_ssize_t ob_alloc; /* How many bytes allocated in ob_bytes */
9
+ char *ob_bytes; /* Physical backing buffer */
10
+ char *ob_start; /* Logical start inside ob_bytes */
11
+ Py_ssize_t ob_exports; /* How many buffer exports */
12
+ } PyByteArrayObject;
13
+
14
+ /* Macros, trading safety for speed */
15
+ #define PyByteArray_AS_STRING(self) \
16
+ (assert(PyByteArray_Check(self)), \
17
+ Py_SIZE(self) ? ((PyByteArrayObject *)(self))->ob_start : _PyByteArray_empty_string)
18
+ #define PyByteArray_GET_SIZE(self) (assert(PyByteArray_Check(self)), Py_SIZE(self))
19
+
20
+ PyAPI_DATA(char) _PyByteArray_empty_string[];
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/bytesobject.h ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_BYTESOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ PyObject_VAR_HEAD
7
+ Py_hash_t ob_shash;
8
+ char ob_sval[1];
9
+
10
+ /* Invariants:
11
+ * ob_sval contains space for 'ob_size+1' elements.
12
+ * ob_sval[ob_size] == 0.
13
+ * ob_shash is the hash of the byte string or -1 if not computed yet.
14
+ */
15
+ } PyBytesObject;
16
+
17
+ PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
18
+ PyAPI_FUNC(PyObject*) _PyBytes_FormatEx(
19
+ const char *format,
20
+ Py_ssize_t format_len,
21
+ PyObject *args,
22
+ int use_bytearray);
23
+ PyAPI_FUNC(PyObject*) _PyBytes_FromHex(
24
+ PyObject *string,
25
+ int use_bytearray);
26
+
27
+ /* Helper for PyBytes_DecodeEscape that detects invalid escape chars. */
28
+ PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape2(const char *, Py_ssize_t,
29
+ const char *,
30
+ int *, const char **);
31
+ // Export for binary compatibility.
32
+ PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
33
+ const char *, const char **);
34
+
35
+ /* Macro, trading safety for speed */
36
+ #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
37
+ (((PyBytesObject *)(op))->ob_sval))
38
+ #define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
39
+
40
+ /* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
41
+ x must be an iterable object. */
42
+ PyAPI_FUNC(PyObject *) _PyBytes_Join(PyObject *sep, PyObject *x);
43
+
44
+
45
+ /* The _PyBytesWriter structure is big: it contains an embedded "stack buffer".
46
+ A _PyBytesWriter variable must be declared at the end of variables in a
47
+ function to optimize the memory allocation on the stack. */
48
+ typedef struct {
49
+ /* bytes, bytearray or NULL (when the small buffer is used) */
50
+ PyObject *buffer;
51
+
52
+ /* Number of allocated size. */
53
+ Py_ssize_t allocated;
54
+
55
+ /* Minimum number of allocated bytes,
56
+ incremented by _PyBytesWriter_Prepare() */
57
+ Py_ssize_t min_size;
58
+
59
+ /* If non-zero, use a bytearray instead of a bytes object for buffer. */
60
+ int use_bytearray;
61
+
62
+ /* If non-zero, overallocate the buffer (default: 0).
63
+ This flag must be zero if use_bytearray is non-zero. */
64
+ int overallocate;
65
+
66
+ /* Stack buffer */
67
+ int use_small_buffer;
68
+ char small_buffer[512];
69
+ } _PyBytesWriter;
70
+
71
+ /* Initialize a bytes writer
72
+
73
+ By default, the overallocation is disabled. Set the overallocate attribute
74
+ to control the allocation of the buffer. */
75
+ PyAPI_FUNC(void) _PyBytesWriter_Init(_PyBytesWriter *writer);
76
+
77
+ /* Get the buffer content and reset the writer.
78
+ Return a bytes object, or a bytearray object if use_bytearray is non-zero.
79
+ Raise an exception and return NULL on error. */
80
+ PyAPI_FUNC(PyObject *) _PyBytesWriter_Finish(_PyBytesWriter *writer,
81
+ void *str);
82
+
83
+ /* Deallocate memory of a writer (clear its internal buffer). */
84
+ PyAPI_FUNC(void) _PyBytesWriter_Dealloc(_PyBytesWriter *writer);
85
+
86
+ /* Allocate the buffer to write size bytes.
87
+ Return the pointer to the beginning of buffer data.
88
+ Raise an exception and return NULL on error. */
89
+ PyAPI_FUNC(void*) _PyBytesWriter_Alloc(_PyBytesWriter *writer,
90
+ Py_ssize_t size);
91
+
92
+ /* Ensure that the buffer is large enough to write *size* bytes.
93
+ Add size to the writer minimum size (min_size attribute).
94
+
95
+ str is the current pointer inside the buffer.
96
+ Return the updated current pointer inside the buffer.
97
+ Raise an exception and return NULL on error. */
98
+ PyAPI_FUNC(void*) _PyBytesWriter_Prepare(_PyBytesWriter *writer,
99
+ void *str,
100
+ Py_ssize_t size);
101
+
102
+ /* Resize the buffer to make it larger.
103
+ The new buffer may be larger than size bytes because of overallocation.
104
+ Return the updated current pointer inside the buffer.
105
+ Raise an exception and return NULL on error.
106
+
107
+ Note: size must be greater than the number of allocated bytes in the writer.
108
+
109
+ This function doesn't use the writer minimum size (min_size attribute).
110
+
111
+ See also _PyBytesWriter_Prepare().
112
+ */
113
+ PyAPI_FUNC(void*) _PyBytesWriter_Resize(_PyBytesWriter *writer,
114
+ void *str,
115
+ Py_ssize_t size);
116
+
117
+ /* Write bytes.
118
+ Raise an exception and return NULL on error. */
119
+ PyAPI_FUNC(void*) _PyBytesWriter_WriteBytes(_PyBytesWriter *writer,
120
+ void *str,
121
+ const void *bytes,
122
+ Py_ssize_t size);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/ceval.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_CEVAL_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);
6
+ PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
7
+ PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);
8
+ PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg);
9
+ PyAPI_FUNC(int) _PyEval_GetCoroutineOriginTrackingDepth(void);
10
+ PyAPI_FUNC(int) _PyEval_SetAsyncGenFirstiter(PyObject *);
11
+ PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFirstiter(void);
12
+ PyAPI_FUNC(int) _PyEval_SetAsyncGenFinalizer(PyObject *);
13
+ PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFinalizer(void);
14
+
15
+ /* Helper to look up a builtin object */
16
+ PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
17
+ /* Look at the current frame's (if any) code's co_flags, and turn on
18
+ the corresponding compiler flags in cf->cf_flags. Return 1 if any
19
+ flag was set, else return 0. */
20
+ PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
21
+
22
+ PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int exc);
23
+
24
+ PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds);
25
+ PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void);
26
+
27
+ PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc);
28
+
29
+ PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);
30
+ PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/code.h ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_CODE_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef uint16_t _Py_CODEUNIT;
6
+
7
+ #ifdef WORDS_BIGENDIAN
8
+ # define _Py_OPCODE(word) ((word) >> 8)
9
+ # define _Py_OPARG(word) ((word) & 255)
10
+ #else
11
+ # define _Py_OPCODE(word) ((word) & 255)
12
+ # define _Py_OPARG(word) ((word) >> 8)
13
+ #endif
14
+
15
+ typedef struct _PyOpcache _PyOpcache;
16
+
17
+ /* Bytecode object */
18
+ struct PyCodeObject {
19
+ PyObject_HEAD
20
+ int co_argcount; /* #arguments, except *args */
21
+ int co_posonlyargcount; /* #positional only arguments */
22
+ int co_kwonlyargcount; /* #keyword only arguments */
23
+ int co_nlocals; /* #local variables */
24
+ int co_stacksize; /* #entries needed for evaluation stack */
25
+ int co_flags; /* CO_..., see below */
26
+ int co_firstlineno; /* first source line number */
27
+ PyObject *co_code; /* instruction opcodes */
28
+ PyObject *co_consts; /* list (constants used) */
29
+ PyObject *co_names; /* list of strings (names used) */
30
+ PyObject *co_varnames; /* tuple of strings (local variable names) */
31
+ PyObject *co_freevars; /* tuple of strings (free variable names) */
32
+ PyObject *co_cellvars; /* tuple of strings (cell variable names) */
33
+ /* The rest aren't used in either hash or comparisons, except for co_name,
34
+ used in both. This is done to preserve the name and line number
35
+ for tracebacks and debuggers; otherwise, constant de-duplication
36
+ would collapse identical functions/lambdas defined on different lines.
37
+ */
38
+ Py_ssize_t *co_cell2arg; /* Maps cell vars which are arguments. */
39
+ PyObject *co_filename; /* unicode (where it was loaded from) */
40
+ PyObject *co_name; /* unicode (name, for reference) */
41
+ PyObject *co_linetable; /* string (encoding addr<->lineno mapping) See
42
+ Objects/lnotab_notes.txt for details. */
43
+ void *co_zombieframe; /* for optimization only (see frameobject.c) */
44
+ PyObject *co_weakreflist; /* to support weakrefs to code objects */
45
+ /* Scratch space for extra data relating to the code object.
46
+ Type is a void* to keep the format private in codeobject.c to force
47
+ people to go through the proper APIs. */
48
+ void *co_extra;
49
+
50
+ /* Per opcodes just-in-time cache
51
+ *
52
+ * To reduce cache size, we use indirect mapping from opcode index to
53
+ * cache object:
54
+ * cache = co_opcache[co_opcache_map[next_instr - first_instr] - 1]
55
+ */
56
+
57
+ // co_opcache_map is indexed by (next_instr - first_instr).
58
+ // * 0 means there is no cache for this opcode.
59
+ // * n > 0 means there is cache in co_opcache[n-1].
60
+ unsigned char *co_opcache_map;
61
+ _PyOpcache *co_opcache;
62
+ int co_opcache_flag; // used to determine when create a cache.
63
+ unsigned char co_opcache_size; // length of co_opcache.
64
+ };
65
+
66
+ /* Masks for co_flags above */
67
+ #define CO_OPTIMIZED 0x0001
68
+ #define CO_NEWLOCALS 0x0002
69
+ #define CO_VARARGS 0x0004
70
+ #define CO_VARKEYWORDS 0x0008
71
+ #define CO_NESTED 0x0010
72
+ #define CO_GENERATOR 0x0020
73
+ /* The CO_NOFREE flag is set if there are no free or cell variables.
74
+ This information is redundant, but it allows a single flag test
75
+ to determine whether there is any extra work to be done when the
76
+ call frame it setup.
77
+ */
78
+ #define CO_NOFREE 0x0040
79
+
80
+ /* The CO_COROUTINE flag is set for coroutine functions (defined with
81
+ ``async def`` keywords) */
82
+ #define CO_COROUTINE 0x0080
83
+ #define CO_ITERABLE_COROUTINE 0x0100
84
+ #define CO_ASYNC_GENERATOR 0x0200
85
+
86
+ /* bpo-39562: These constant values are changed in Python 3.9
87
+ to prevent collision with compiler flags. CO_FUTURE_ and PyCF_
88
+ constants must be kept unique. PyCF_ constants can use bits from
89
+ 0x0100 to 0x10000. CO_FUTURE_ constants use bits starting at 0x20000. */
90
+ #define CO_FUTURE_DIVISION 0x20000
91
+ #define CO_FUTURE_ABSOLUTE_IMPORT 0x40000 /* do absolute imports by default */
92
+ #define CO_FUTURE_WITH_STATEMENT 0x80000
93
+ #define CO_FUTURE_PRINT_FUNCTION 0x100000
94
+ #define CO_FUTURE_UNICODE_LITERALS 0x200000
95
+
96
+ #define CO_FUTURE_BARRY_AS_BDFL 0x400000
97
+ #define CO_FUTURE_GENERATOR_STOP 0x800000
98
+ #define CO_FUTURE_ANNOTATIONS 0x1000000
99
+
100
+ /* This value is found in the co_cell2arg array when the associated cell
101
+ variable does not correspond to an argument. */
102
+ #define CO_CELL_NOT_AN_ARG (-1)
103
+
104
+ /* This should be defined if a future statement modifies the syntax.
105
+ For example, when a keyword is added.
106
+ */
107
+ #define PY_PARSER_REQUIRES_FUTURE_KEYWORD
108
+
109
+ #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
110
+
111
+ PyAPI_DATA(PyTypeObject) PyCode_Type;
112
+
113
+ #define PyCode_Check(op) Py_IS_TYPE(op, &PyCode_Type)
114
+ #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
115
+
116
+ /* Public interface */
117
+ PyAPI_FUNC(PyCodeObject *) PyCode_New(
118
+ int, int, int, int, int, PyObject *, PyObject *,
119
+ PyObject *, PyObject *, PyObject *, PyObject *,
120
+ PyObject *, PyObject *, int, PyObject *);
121
+
122
+ PyAPI_FUNC(PyCodeObject *) PyCode_NewWithPosOnlyArgs(
123
+ int, int, int, int, int, int, PyObject *, PyObject *,
124
+ PyObject *, PyObject *, PyObject *, PyObject *,
125
+ PyObject *, PyObject *, int, PyObject *);
126
+ /* same as struct above */
127
+
128
+ /* Creates a new empty code object with the specified source location. */
129
+ PyAPI_FUNC(PyCodeObject *)
130
+ PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno);
131
+
132
+ /* Return the line number associated with the specified bytecode index
133
+ in this code object. If you just need the line number of a frame,
134
+ use PyFrame_GetLineNumber() instead. */
135
+ PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
136
+
137
+ /* for internal use only */
138
+ struct _opaque {
139
+ int computed_line;
140
+ const char *lo_next;
141
+ const char *limit;
142
+ };
143
+
144
+ typedef struct _line_offsets {
145
+ int ar_start;
146
+ int ar_end;
147
+ int ar_line;
148
+ struct _opaque opaque;
149
+ } PyCodeAddressRange;
150
+
151
+ /* Update *bounds to describe the first and one-past-the-last instructions in the
152
+ same line as lasti. Return the number of that line.
153
+ */
154
+ PyAPI_FUNC(int) _PyCode_CheckLineNumber(int lasti, PyCodeAddressRange *bounds);
155
+
156
+ /* Create a comparable key used to compare constants taking in account the
157
+ * object type. It is used to make sure types are not coerced (e.g., float and
158
+ * complex) _and_ to distinguish 0.0 from -0.0 e.g. on IEEE platforms
159
+ *
160
+ * Return (type(obj), obj, ...): a tuple with variable size (at least 2 items)
161
+ * depending on the type and the value. The type is the first item to not
162
+ * compare bytes and str which can raise a BytesWarning exception. */
163
+ PyAPI_FUNC(PyObject*) _PyCode_ConstantKey(PyObject *obj);
164
+
165
+ PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts,
166
+ PyObject *names, PyObject *lnotab);
167
+
168
+
169
+ PyAPI_FUNC(int) _PyCode_GetExtra(PyObject *code, Py_ssize_t index,
170
+ void **extra);
171
+ PyAPI_FUNC(int) _PyCode_SetExtra(PyObject *code, Py_ssize_t index,
172
+ void *extra);
173
+
174
+ /** API for initializing the line number table. */
175
+ int _PyCode_InitAddressRange(PyCodeObject* co, PyCodeAddressRange *bounds);
176
+
177
+ /** Out of process API for initializing the line number table. */
178
+ void PyLineTable_InitAddressRange(const char *linetable, Py_ssize_t length, int firstlineno, PyCodeAddressRange *range);
179
+
180
+ /** API for traversing the line number table. */
181
+ int PyLineTable_NextAddressRange(PyCodeAddressRange *range);
182
+ int PyLineTable_PreviousAddressRange(PyCodeAddressRange *range);
183
+
184
+
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/compile.h ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_COMPILE_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* Public interface */
6
+ #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
7
+ CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
8
+ CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \
9
+ CO_FUTURE_GENERATOR_STOP | CO_FUTURE_ANNOTATIONS)
10
+ #define PyCF_MASK_OBSOLETE (CO_NESTED)
11
+
12
+ /* bpo-39562: CO_FUTURE_ and PyCF_ constants must be kept unique.
13
+ PyCF_ constants can use bits from 0x0100 to 0x10000.
14
+ CO_FUTURE_ constants use bits starting at 0x20000. */
15
+ #define PyCF_SOURCE_IS_UTF8 0x0100
16
+ #define PyCF_DONT_IMPLY_DEDENT 0x0200
17
+ #define PyCF_ONLY_AST 0x0400
18
+ #define PyCF_IGNORE_COOKIE 0x0800
19
+ #define PyCF_TYPE_COMMENTS 0x1000
20
+ #define PyCF_ALLOW_TOP_LEVEL_AWAIT 0x2000
21
+ #define PyCF_ALLOW_INCOMPLETE_INPUT 0x4000
22
+ #define PyCF_COMPILE_MASK (PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT | \
23
+ PyCF_TYPE_COMMENTS | PyCF_DONT_IMPLY_DEDENT | \
24
+ PyCF_ALLOW_INCOMPLETE_INPUT)
25
+
26
+ typedef struct {
27
+ int cf_flags; /* bitmask of CO_xxx flags relevant to future */
28
+ int cf_feature_version; /* minor Python version (PyCF_ONLY_AST) */
29
+ } PyCompilerFlags;
30
+
31
+ #define _PyCompilerFlags_INIT \
32
+ (PyCompilerFlags){.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION}
33
+
34
+ /* Future feature support */
35
+
36
+ typedef struct {
37
+ int ff_features; /* flags set by future statements */
38
+ int ff_lineno; /* line number of last future statement */
39
+ } PyFutureFeatures;
40
+
41
+ #define FUTURE_NESTED_SCOPES "nested_scopes"
42
+ #define FUTURE_GENERATORS "generators"
43
+ #define FUTURE_DIVISION "division"
44
+ #define FUTURE_ABSOLUTE_IMPORT "absolute_import"
45
+ #define FUTURE_WITH_STATEMENT "with_statement"
46
+ #define FUTURE_PRINT_FUNCTION "print_function"
47
+ #define FUTURE_UNICODE_LITERALS "unicode_literals"
48
+ #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL"
49
+ #define FUTURE_GENERATOR_STOP "generator_stop"
50
+ #define FUTURE_ANNOTATIONS "annotations"
51
+
52
+ #define PY_INVALID_STACK_EFFECT INT_MAX
53
+ PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
54
+ PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/dictobject.h ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_DICTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct _dictkeysobject PyDictKeysObject;
6
+
7
+ /* The ma_values pointer is NULL for a combined table
8
+ * or points to an array of PyObject* for a split table
9
+ */
10
+ typedef struct {
11
+ PyObject_HEAD
12
+
13
+ /* Number of items in the dictionary */
14
+ Py_ssize_t ma_used;
15
+
16
+ /* Dictionary version: globally unique, value change each time
17
+ the dictionary is modified */
18
+ uint64_t ma_version_tag;
19
+
20
+ PyDictKeysObject *ma_keys;
21
+
22
+ /* If ma_values is NULL, the table is "combined": keys and values
23
+ are stored in ma_keys.
24
+
25
+ If ma_values is not NULL, the table is split:
26
+ keys are stored in ma_keys and values are stored in ma_values */
27
+ PyObject **ma_values;
28
+ } PyDictObject;
29
+
30
+ PyAPI_FUNC(PyObject *) _PyDict_GetItem_KnownHash(PyObject *mp, PyObject *key,
31
+ Py_hash_t hash);
32
+ PyAPI_FUNC(PyObject *) _PyDict_GetItemIdWithError(PyObject *dp,
33
+ struct _Py_Identifier *key);
34
+ PyAPI_FUNC(PyObject *) _PyDict_GetItemStringWithError(PyObject *, const char *);
35
+ PyAPI_FUNC(PyObject *) PyDict_SetDefault(
36
+ PyObject *mp, PyObject *key, PyObject *defaultobj);
37
+ PyAPI_FUNC(int) _PyDict_SetItem_KnownHash(PyObject *mp, PyObject *key,
38
+ PyObject *item, Py_hash_t hash);
39
+ PyAPI_FUNC(int) _PyDict_DelItem_KnownHash(PyObject *mp, PyObject *key,
40
+ Py_hash_t hash);
41
+ PyAPI_FUNC(int) _PyDict_DelItemIf(PyObject *mp, PyObject *key,
42
+ int (*predicate)(PyObject *value));
43
+ PyDictKeysObject *_PyDict_NewKeysForClass(void);
44
+ PyAPI_FUNC(int) _PyDict_Next(
45
+ PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, Py_hash_t *hash);
46
+
47
+ /* Get the number of items of a dictionary. */
48
+ #define PyDict_GET_SIZE(mp) (assert(PyDict_Check(mp)),((PyDictObject *)mp)->ma_used)
49
+ PyAPI_FUNC(int) _PyDict_Contains_KnownHash(PyObject *, PyObject *, Py_hash_t);
50
+ PyAPI_FUNC(int) _PyDict_ContainsId(PyObject *, struct _Py_Identifier *);
51
+ PyAPI_FUNC(PyObject *) _PyDict_NewPresized(Py_ssize_t minused);
52
+ PyAPI_FUNC(void) _PyDict_MaybeUntrack(PyObject *mp);
53
+ PyAPI_FUNC(int) _PyDict_HasOnlyStringKeys(PyObject *mp);
54
+ Py_ssize_t _PyDict_KeysSize(PyDictKeysObject *keys);
55
+ PyAPI_FUNC(Py_ssize_t) _PyDict_SizeOf(PyDictObject *);
56
+ PyAPI_FUNC(PyObject *) _PyDict_Pop(PyObject *, PyObject *, PyObject *);
57
+ PyObject *_PyDict_Pop_KnownHash(PyObject *, PyObject *, Py_hash_t, PyObject *);
58
+ PyObject *_PyDict_FromKeys(PyObject *, PyObject *, PyObject *);
59
+ #define _PyDict_HasSplitTable(d) ((d)->ma_values != NULL)
60
+
61
+ /* Like PyDict_Merge, but override can be 0, 1 or 2. If override is 0,
62
+ the first occurrence of a key wins, if override is 1, the last occurrence
63
+ of a key wins, if override is 2, a KeyError with conflicting key as
64
+ argument is raised.
65
+ */
66
+ PyAPI_FUNC(int) _PyDict_MergeEx(PyObject *mp, PyObject *other, int override);
67
+ PyAPI_FUNC(int) _PyDict_SetItemId(PyObject *dp, struct _Py_Identifier *key, PyObject *item);
68
+
69
+ PyAPI_FUNC(int) _PyDict_DelItemId(PyObject *mp, struct _Py_Identifier *key);
70
+ PyAPI_FUNC(void) _PyDict_DebugMallocStats(FILE *out);
71
+
72
+ int _PyObjectDict_SetItem(PyTypeObject *tp, PyObject **dictptr, PyObject *name, PyObject *value);
73
+ PyObject *_PyDict_LoadGlobal(PyDictObject *, PyDictObject *, PyObject *);
74
+ Py_ssize_t _PyDict_GetItemHint(PyDictObject *, PyObject *, Py_ssize_t, PyObject **);
75
+
76
+ /* _PyDictView */
77
+
78
+ typedef struct {
79
+ PyObject_HEAD
80
+ PyDictObject *dv_dict;
81
+ } _PyDictViewObject;
82
+
83
+ PyAPI_FUNC(PyObject *) _PyDictView_New(PyObject *, PyTypeObject *);
84
+ PyAPI_FUNC(PyObject *) _PyDictView_Intersect(PyObject* self, PyObject *other);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/fileobject.h ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_FILEOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
6
+
7
+ /* The std printer acts as a preliminary sys.stderr until the new io
8
+ infrastructure is in place. */
9
+ PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
10
+ PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
11
+
12
+ typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
13
+
14
+ PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
15
+ PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
16
+ PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
17
+
18
+ PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/fileutils.h ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_FILEUTILS_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef enum {
6
+ _Py_ERROR_UNKNOWN=0,
7
+ _Py_ERROR_STRICT,
8
+ _Py_ERROR_SURROGATEESCAPE,
9
+ _Py_ERROR_REPLACE,
10
+ _Py_ERROR_IGNORE,
11
+ _Py_ERROR_BACKSLASHREPLACE,
12
+ _Py_ERROR_SURROGATEPASS,
13
+ _Py_ERROR_XMLCHARREFREPLACE,
14
+ _Py_ERROR_OTHER
15
+ } _Py_error_handler;
16
+
17
+ PyAPI_FUNC(_Py_error_handler) _Py_GetErrorHandler(const char *errors);
18
+
19
+ PyAPI_FUNC(int) _Py_DecodeLocaleEx(
20
+ const char *arg,
21
+ wchar_t **wstr,
22
+ size_t *wlen,
23
+ const char **reason,
24
+ int current_locale,
25
+ _Py_error_handler errors);
26
+
27
+ PyAPI_FUNC(int) _Py_EncodeLocaleEx(
28
+ const wchar_t *text,
29
+ char **str,
30
+ size_t *error_pos,
31
+ const char **reason,
32
+ int current_locale,
33
+ _Py_error_handler errors);
34
+
35
+ PyAPI_FUNC(char*) _Py_EncodeLocaleRaw(
36
+ const wchar_t *text,
37
+ size_t *error_pos);
38
+
39
+ PyAPI_FUNC(PyObject *) _Py_device_encoding(int);
40
+
41
+ #if defined(MS_WINDOWS) || defined(__APPLE__)
42
+ /* On Windows, the count parameter of read() is an int (bpo-9015, bpo-9611).
43
+ On macOS 10.13, read() and write() with more than INT_MAX bytes
44
+ fail with EINVAL (bpo-24658). */
45
+ # define _PY_READ_MAX INT_MAX
46
+ # define _PY_WRITE_MAX INT_MAX
47
+ #else
48
+ /* write() should truncate the input to PY_SSIZE_T_MAX bytes,
49
+ but it's safer to do it ourself to have a portable behaviour */
50
+ # define _PY_READ_MAX PY_SSIZE_T_MAX
51
+ # define _PY_WRITE_MAX PY_SSIZE_T_MAX
52
+ #endif
53
+
54
+ #ifdef MS_WINDOWS
55
+ struct _Py_stat_struct {
56
+ unsigned long st_dev;
57
+ uint64_t st_ino;
58
+ unsigned short st_mode;
59
+ int st_nlink;
60
+ int st_uid;
61
+ int st_gid;
62
+ unsigned long st_rdev;
63
+ __int64 st_size;
64
+ time_t st_atime;
65
+ int st_atime_nsec;
66
+ time_t st_mtime;
67
+ int st_mtime_nsec;
68
+ time_t st_ctime;
69
+ int st_ctime_nsec;
70
+ unsigned long st_file_attributes;
71
+ unsigned long st_reparse_tag;
72
+ };
73
+ #else
74
+ # define _Py_stat_struct stat
75
+ #endif
76
+
77
+ PyAPI_FUNC(int) _Py_fstat(
78
+ int fd,
79
+ struct _Py_stat_struct *status);
80
+
81
+ PyAPI_FUNC(int) _Py_fstat_noraise(
82
+ int fd,
83
+ struct _Py_stat_struct *status);
84
+
85
+ PyAPI_FUNC(int) _Py_stat(
86
+ PyObject *path,
87
+ struct stat *status);
88
+
89
+ PyAPI_FUNC(int) _Py_open(
90
+ const char *pathname,
91
+ int flags);
92
+
93
+ PyAPI_FUNC(int) _Py_open_noraise(
94
+ const char *pathname,
95
+ int flags);
96
+
97
+ PyAPI_FUNC(FILE *) _Py_wfopen(
98
+ const wchar_t *path,
99
+ const wchar_t *mode);
100
+
101
+ PyAPI_FUNC(FILE*) _Py_fopen_obj(
102
+ PyObject *path,
103
+ const char *mode);
104
+
105
+ PyAPI_FUNC(Py_ssize_t) _Py_read(
106
+ int fd,
107
+ void *buf,
108
+ size_t count);
109
+
110
+ PyAPI_FUNC(Py_ssize_t) _Py_write(
111
+ int fd,
112
+ const void *buf,
113
+ size_t count);
114
+
115
+ PyAPI_FUNC(Py_ssize_t) _Py_write_noraise(
116
+ int fd,
117
+ const void *buf,
118
+ size_t count);
119
+
120
+ #ifdef HAVE_READLINK
121
+ PyAPI_FUNC(int) _Py_wreadlink(
122
+ const wchar_t *path,
123
+ wchar_t *buf,
124
+ /* Number of characters of 'buf' buffer
125
+ including the trailing NUL character */
126
+ size_t buflen);
127
+ #endif
128
+
129
+ #ifdef HAVE_REALPATH
130
+ PyAPI_FUNC(wchar_t*) _Py_wrealpath(
131
+ const wchar_t *path,
132
+ wchar_t *resolved_path,
133
+ /* Number of characters of 'resolved_path' buffer
134
+ including the trailing NUL character */
135
+ size_t resolved_path_len);
136
+ #endif
137
+
138
+ #ifndef MS_WINDOWS
139
+ PyAPI_FUNC(int) _Py_isabs(const wchar_t *path);
140
+ #endif
141
+
142
+ PyAPI_FUNC(int) _Py_abspath(const wchar_t *path, wchar_t **abspath_p);
143
+
144
+ PyAPI_FUNC(wchar_t*) _Py_wgetcwd(
145
+ wchar_t *buf,
146
+ /* Number of characters of 'buf' buffer
147
+ including the trailing NUL character */
148
+ size_t buflen);
149
+
150
+ PyAPI_FUNC(int) _Py_get_inheritable(int fd);
151
+
152
+ PyAPI_FUNC(int) _Py_set_inheritable(int fd, int inheritable,
153
+ int *atomic_flag_works);
154
+
155
+ PyAPI_FUNC(int) _Py_set_inheritable_async_safe(int fd, int inheritable,
156
+ int *atomic_flag_works);
157
+
158
+ PyAPI_FUNC(int) _Py_dup(int fd);
159
+
160
+ #ifndef MS_WINDOWS
161
+ PyAPI_FUNC(int) _Py_get_blocking(int fd);
162
+
163
+ PyAPI_FUNC(int) _Py_set_blocking(int fd, int blocking);
164
+ #else /* MS_WINDOWS */
165
+ PyAPI_FUNC(void*) _Py_get_osfhandle_noraise(int fd);
166
+
167
+ PyAPI_FUNC(void*) _Py_get_osfhandle(int fd);
168
+
169
+ PyAPI_FUNC(int) _Py_open_osfhandle_noraise(void *handle, int flags);
170
+
171
+ PyAPI_FUNC(int) _Py_open_osfhandle(void *handle, int flags);
172
+ #endif /* MS_WINDOWS */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/frameobject.h ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Frame object interface */
2
+
3
+ #ifndef Py_CPYTHON_FRAMEOBJECT_H
4
+ # error "this header file must not be included directly"
5
+ #endif
6
+
7
+ /* These values are chosen so that the inline functions below all
8
+ * compare f_state to zero.
9
+ */
10
+ enum _framestate {
11
+ FRAME_CREATED = -2,
12
+ FRAME_SUSPENDED = -1,
13
+ FRAME_EXECUTING = 0,
14
+ FRAME_RETURNED = 1,
15
+ FRAME_UNWINDING = 2,
16
+ FRAME_RAISED = 3,
17
+ FRAME_CLEARED = 4
18
+ };
19
+
20
+ typedef signed char PyFrameState;
21
+
22
+ typedef struct {
23
+ int b_type; /* what kind of block this is */
24
+ int b_handler; /* where to jump to find handler */
25
+ int b_level; /* value stack level to pop to */
26
+ } PyTryBlock;
27
+
28
+ struct _frame {
29
+ PyObject_VAR_HEAD
30
+ struct _frame *f_back; /* previous frame, or NULL */
31
+ PyCodeObject *f_code; /* code segment */
32
+ PyObject *f_builtins; /* builtin symbol table (PyDictObject) */
33
+ PyObject *f_globals; /* global symbol table (PyDictObject) */
34
+ PyObject *f_locals; /* local symbol table (any mapping) */
35
+ PyObject **f_valuestack; /* points after the last local */
36
+ PyObject *f_trace; /* Trace function */
37
+ int f_stackdepth; /* Depth of value stack */
38
+ char f_trace_lines; /* Emit per-line trace events? */
39
+ char f_trace_opcodes; /* Emit per-opcode trace events? */
40
+
41
+ /* Borrowed reference to a generator, or NULL */
42
+ PyObject *f_gen;
43
+
44
+ int f_lasti; /* Last instruction if called */
45
+ int f_lineno; /* Current line number. Only valid if non-zero */
46
+ int f_iblock; /* index in f_blockstack */
47
+ PyFrameState f_state; /* What state the frame is in */
48
+ PyTryBlock f_blockstack[CO_MAXBLOCKS]; /* for try and loop blocks */
49
+ PyObject *f_localsplus[1]; /* locals+stack, dynamically sized */
50
+ };
51
+
52
+ static inline int _PyFrame_IsRunnable(struct _frame *f) {
53
+ return f->f_state < FRAME_EXECUTING;
54
+ }
55
+
56
+ static inline int _PyFrame_IsExecuting(struct _frame *f) {
57
+ return f->f_state == FRAME_EXECUTING;
58
+ }
59
+
60
+ static inline int _PyFrameHasCompleted(struct _frame *f) {
61
+ return f->f_state > FRAME_EXECUTING;
62
+ }
63
+
64
+ /* Standard object interface */
65
+
66
+ PyAPI_DATA(PyTypeObject) PyFrame_Type;
67
+
68
+ #define PyFrame_Check(op) Py_IS_TYPE(op, &PyFrame_Type)
69
+
70
+ PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
71
+ PyObject *, PyObject *);
72
+
73
+ /* only internal use */
74
+ PyFrameObject*
75
+ _PyFrame_New_NoTrack(PyThreadState *, PyFrameConstructor *, PyObject *);
76
+
77
+
78
+ /* The rest of the interface is specific for frame objects */
79
+
80
+ /* Block management functions */
81
+
82
+ PyAPI_FUNC(void) PyFrame_BlockSetup(PyFrameObject *, int, int, int);
83
+ PyAPI_FUNC(PyTryBlock *) PyFrame_BlockPop(PyFrameObject *);
84
+
85
+ /* Conversions between "fast locals" and locals in dictionary */
86
+
87
+ PyAPI_FUNC(void) PyFrame_LocalsToFast(PyFrameObject *, int);
88
+
89
+ PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f);
90
+ PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);
91
+
92
+ PyAPI_FUNC(void) _PyFrame_DebugMallocStats(FILE *out);
93
+
94
+ PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/import.h ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_IMPORT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyMODINIT_FUNC PyInit__imp(void);
6
+
7
+ PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
8
+
9
+ PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);
10
+ PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
11
+ PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
12
+
13
+ PyAPI_FUNC(void) _PyImport_AcquireLock(void);
14
+ PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
15
+
16
+ /* Obsolete since 3.5, will be removed in 3.11. */
17
+ Py_DEPRECATED(3.10) PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
18
+
19
+ PyAPI_FUNC(int) _PyImport_FixupBuiltin(
20
+ PyObject *mod,
21
+ const char *name, /* UTF-8 encoded string */
22
+ PyObject *modules
23
+ );
24
+ PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
25
+ PyObject *, PyObject *);
26
+
27
+ struct _inittab {
28
+ const char *name; /* ASCII encoded string */
29
+ PyObject* (*initfunc)(void);
30
+ };
31
+ PyAPI_DATA(struct _inittab *) PyImport_Inittab;
32
+ PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
33
+
34
+ struct _frozen {
35
+ const char *name; /* ASCII encoded string */
36
+ const unsigned char *code;
37
+ int size;
38
+ };
39
+
40
+ /* Embedding apps may change this pointer to point to their favorite
41
+ collection of frozen modules: */
42
+
43
+ PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
44
+
45
+ PyAPI_DATA(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *);
46
+ PyAPI_DATA(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/initconfig.h ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_PYCORECONFIG_H
2
+ #define Py_PYCORECONFIG_H
3
+ #ifndef Py_LIMITED_API
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ /* --- PyStatus ----------------------------------------------- */
9
+
10
+ typedef struct {
11
+ enum {
12
+ _PyStatus_TYPE_OK=0,
13
+ _PyStatus_TYPE_ERROR=1,
14
+ _PyStatus_TYPE_EXIT=2
15
+ } _type;
16
+ const char *func;
17
+ const char *err_msg;
18
+ int exitcode;
19
+ } PyStatus;
20
+
21
+ PyAPI_FUNC(PyStatus) PyStatus_Ok(void);
22
+ PyAPI_FUNC(PyStatus) PyStatus_Error(const char *err_msg);
23
+ PyAPI_FUNC(PyStatus) PyStatus_NoMemory(void);
24
+ PyAPI_FUNC(PyStatus) PyStatus_Exit(int exitcode);
25
+ PyAPI_FUNC(int) PyStatus_IsError(PyStatus err);
26
+ PyAPI_FUNC(int) PyStatus_IsExit(PyStatus err);
27
+ PyAPI_FUNC(int) PyStatus_Exception(PyStatus err);
28
+
29
+ /* --- PyWideStringList ------------------------------------------------ */
30
+
31
+ typedef struct {
32
+ /* If length is greater than zero, items must be non-NULL
33
+ and all items strings must be non-NULL */
34
+ Py_ssize_t length;
35
+ wchar_t **items;
36
+ } PyWideStringList;
37
+
38
+ PyAPI_FUNC(PyStatus) PyWideStringList_Append(PyWideStringList *list,
39
+ const wchar_t *item);
40
+ PyAPI_FUNC(PyStatus) PyWideStringList_Insert(PyWideStringList *list,
41
+ Py_ssize_t index,
42
+ const wchar_t *item);
43
+
44
+
45
+ /* --- PyPreConfig ----------------------------------------------- */
46
+
47
+ typedef struct PyPreConfig {
48
+ int _config_init; /* _PyConfigInitEnum value */
49
+
50
+ /* Parse Py_PreInitializeFromBytesArgs() arguments?
51
+ See PyConfig.parse_argv */
52
+ int parse_argv;
53
+
54
+ /* If greater than 0, enable isolated mode: sys.path contains
55
+ neither the script's directory nor the user's site-packages directory.
56
+
57
+ Set to 1 by the -I command line option. If set to -1 (default), inherit
58
+ Py_IsolatedFlag value. */
59
+ int isolated;
60
+
61
+ /* If greater than 0: use environment variables.
62
+ Set to 0 by -E command line option. If set to -1 (default), it is
63
+ set to !Py_IgnoreEnvironmentFlag. */
64
+ int use_environment;
65
+
66
+ /* Set the LC_CTYPE locale to the user preferred locale? If equals to 0,
67
+ set coerce_c_locale and coerce_c_locale_warn to 0. */
68
+ int configure_locale;
69
+
70
+ /* Coerce the LC_CTYPE locale if it's equal to "C"? (PEP 538)
71
+
72
+ Set to 0 by PYTHONCOERCECLOCALE=0. Set to 1 by PYTHONCOERCECLOCALE=1.
73
+ Set to 2 if the user preferred LC_CTYPE locale is "C".
74
+
75
+ If it is equal to 1, LC_CTYPE locale is read to decide if it should be
76
+ coerced or not (ex: PYTHONCOERCECLOCALE=1). Internally, it is set to 2
77
+ if the LC_CTYPE locale must be coerced.
78
+
79
+ Disable by default (set to 0). Set it to -1 to let Python decide if it
80
+ should be enabled or not. */
81
+ int coerce_c_locale;
82
+
83
+ /* Emit a warning if the LC_CTYPE locale is coerced?
84
+
85
+ Set to 1 by PYTHONCOERCECLOCALE=warn.
86
+
87
+ Disable by default (set to 0). Set it to -1 to let Python decide if it
88
+ should be enabled or not. */
89
+ int coerce_c_locale_warn;
90
+
91
+ #ifdef MS_WINDOWS
92
+ /* If greater than 1, use the "mbcs" encoding instead of the UTF-8
93
+ encoding for the filesystem encoding.
94
+
95
+ Set to 1 if the PYTHONLEGACYWINDOWSFSENCODING environment variable is
96
+ set to a non-empty string. If set to -1 (default), inherit
97
+ Py_LegacyWindowsFSEncodingFlag value.
98
+
99
+ See PEP 529 for more details. */
100
+ int legacy_windows_fs_encoding;
101
+ #endif
102
+
103
+ /* Enable UTF-8 mode? (PEP 540)
104
+
105
+ Disabled by default (equals to 0).
106
+
107
+ Set to 1 by "-X utf8" and "-X utf8=1" command line options.
108
+ Set to 1 by PYTHONUTF8=1 environment variable.
109
+
110
+ Set to 0 by "-X utf8=0" and PYTHONUTF8=0.
111
+
112
+ If equals to -1, it is set to 1 if the LC_CTYPE locale is "C" or
113
+ "POSIX", otherwise it is set to 0. Inherit Py_UTF8Mode value value. */
114
+ int utf8_mode;
115
+
116
+ /* If non-zero, enable the Python Development Mode.
117
+
118
+ Set to 1 by the -X dev command line option. Set by the PYTHONDEVMODE
119
+ environment variable. */
120
+ int dev_mode;
121
+
122
+ /* Memory allocator: PYTHONMALLOC env var.
123
+ See PyMemAllocatorName for valid values. */
124
+ int allocator;
125
+ } PyPreConfig;
126
+
127
+ PyAPI_FUNC(void) PyPreConfig_InitPythonConfig(PyPreConfig *config);
128
+ PyAPI_FUNC(void) PyPreConfig_InitIsolatedConfig(PyPreConfig *config);
129
+
130
+
131
+ /* --- PyConfig ---------------------------------------------- */
132
+
133
+ /* This structure is best documented in the Doc/c-api/init_config.rst file. */
134
+ typedef struct PyConfig {
135
+ int _config_init; /* _PyConfigInitEnum value */
136
+
137
+ int isolated;
138
+ int use_environment;
139
+ int dev_mode;
140
+ int install_signal_handlers;
141
+ int use_hash_seed;
142
+ unsigned long hash_seed;
143
+ int faulthandler;
144
+ int tracemalloc;
145
+ int import_time;
146
+ int show_ref_count;
147
+ int dump_refs;
148
+ int malloc_stats;
149
+ wchar_t *filesystem_encoding;
150
+ wchar_t *filesystem_errors;
151
+ wchar_t *pycache_prefix;
152
+ int parse_argv;
153
+ PyWideStringList orig_argv;
154
+ PyWideStringList argv;
155
+ PyWideStringList xoptions;
156
+ PyWideStringList warnoptions;
157
+ int site_import;
158
+ int bytes_warning;
159
+ int warn_default_encoding;
160
+ int inspect;
161
+ int interactive;
162
+ int optimization_level;
163
+ int parser_debug;
164
+ int write_bytecode;
165
+ int verbose;
166
+ int quiet;
167
+ int user_site_directory;
168
+ int configure_c_stdio;
169
+ int buffered_stdio;
170
+ wchar_t *stdio_encoding;
171
+ wchar_t *stdio_errors;
172
+ #ifdef MS_WINDOWS
173
+ int legacy_windows_stdio;
174
+ #endif
175
+ wchar_t *check_hash_pycs_mode;
176
+
177
+ /* --- Path configuration inputs ------------ */
178
+ int pathconfig_warnings;
179
+ wchar_t *program_name;
180
+ wchar_t *pythonpath_env;
181
+ wchar_t *home;
182
+ wchar_t *platlibdir;
183
+
184
+ /* --- Path configuration outputs ----------- */
185
+ int module_search_paths_set;
186
+ PyWideStringList module_search_paths;
187
+ wchar_t *executable;
188
+ wchar_t *base_executable;
189
+ wchar_t *prefix;
190
+ wchar_t *base_prefix;
191
+ wchar_t *exec_prefix;
192
+ wchar_t *base_exec_prefix;
193
+
194
+ /* --- Parameter only used by Py_Main() ---------- */
195
+ int skip_source_first_line;
196
+ wchar_t *run_command;
197
+ wchar_t *run_module;
198
+ wchar_t *run_filename;
199
+
200
+ /* --- Private fields ---------------------------- */
201
+
202
+ // Install importlib? If equals to 0, importlib is not initialized at all.
203
+ // Needed by freeze_importlib.
204
+ int _install_importlib;
205
+
206
+ // If equal to 0, stop Python initialization before the "main" phase.
207
+ int _init_main;
208
+
209
+ // If non-zero, disallow threads, subprocesses, and fork.
210
+ // Default: 0.
211
+ int _isolated_interpreter;
212
+ } PyConfig;
213
+
214
+ PyAPI_FUNC(void) PyConfig_InitPythonConfig(PyConfig *config);
215
+ PyAPI_FUNC(void) PyConfig_InitIsolatedConfig(PyConfig *config);
216
+ PyAPI_FUNC(void) PyConfig_Clear(PyConfig *);
217
+ PyAPI_FUNC(PyStatus) PyConfig_SetString(
218
+ PyConfig *config,
219
+ wchar_t **config_str,
220
+ const wchar_t *str);
221
+ PyAPI_FUNC(PyStatus) PyConfig_SetBytesString(
222
+ PyConfig *config,
223
+ wchar_t **config_str,
224
+ const char *str);
225
+ PyAPI_FUNC(PyStatus) PyConfig_Read(PyConfig *config);
226
+ PyAPI_FUNC(PyStatus) PyConfig_SetBytesArgv(
227
+ PyConfig *config,
228
+ Py_ssize_t argc,
229
+ char * const *argv);
230
+ PyAPI_FUNC(PyStatus) PyConfig_SetArgv(PyConfig *config,
231
+ Py_ssize_t argc,
232
+ wchar_t * const *argv);
233
+ PyAPI_FUNC(PyStatus) PyConfig_SetWideStringList(PyConfig *config,
234
+ PyWideStringList *list,
235
+ Py_ssize_t length, wchar_t **items);
236
+
237
+
238
+ /* --- Helper functions --------------------------------------- */
239
+
240
+ /* Get the original command line arguments, before Python modified them.
241
+
242
+ See also PyConfig.orig_argv. */
243
+ PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
244
+
245
+ #ifdef __cplusplus
246
+ }
247
+ #endif
248
+ #endif /* !Py_LIMITED_API */
249
+ #endif /* !Py_PYCORECONFIG_H */
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/interpreteridobject.h ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_INTERPRETERIDOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ /* Interpreter ID Object */
6
+
7
+ PyAPI_DATA(PyTypeObject) _PyInterpreterID_Type;
8
+
9
+ PyAPI_FUNC(PyObject *) _PyInterpreterID_New(int64_t);
10
+ PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *);
11
+ PyAPI_FUNC(PyInterpreterState *) _PyInterpreterID_LookUp(PyObject *);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/listobject.h ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_LISTOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ typedef struct {
6
+ PyObject_VAR_HEAD
7
+ /* Vector of pointers to list elements. list[0] is ob_item[0], etc. */
8
+ PyObject **ob_item;
9
+
10
+ /* ob_item contains space for 'allocated' elements. The number
11
+ * currently in use is ob_size.
12
+ * Invariants:
13
+ * 0 <= ob_size <= allocated
14
+ * len(list) == ob_size
15
+ * ob_item == NULL implies ob_size == allocated == 0
16
+ * list.sort() temporarily sets allocated to -1 to detect mutations.
17
+ *
18
+ * Items must normally not be NULL, except during construction when
19
+ * the list is not yet visible outside the function that builds it.
20
+ */
21
+ Py_ssize_t allocated;
22
+ } PyListObject;
23
+
24
+ PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
25
+ PyAPI_FUNC(void) _PyList_DebugMallocStats(FILE *out);
26
+
27
+ /* Macro, trading safety for speed */
28
+
29
+ /* Cast argument to PyListObject* type. */
30
+ #define _PyList_CAST(op) (assert(PyList_Check(op)), (PyListObject *)(op))
31
+
32
+ #define PyList_GET_ITEM(op, i) (_PyList_CAST(op)->ob_item[i])
33
+ #define PyList_SET_ITEM(op, i, v) ((void)(_PyList_CAST(op)->ob_item[i] = (v)))
34
+ #define PyList_GET_SIZE(op) Py_SIZE(_PyList_CAST(op))
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/methodobject.h ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_METHODOBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_DATA(PyTypeObject) PyCMethod_Type;
6
+
7
+ #define PyCMethod_CheckExact(op) Py_IS_TYPE(op, &PyCMethod_Type)
8
+ #define PyCMethod_Check(op) PyObject_TypeCheck(op, &PyCMethod_Type)
9
+
10
+ /* Macros for direct access to these values. Type checks are *not*
11
+ done, so use with care. */
12
+ #define PyCFunction_GET_FUNCTION(func) \
13
+ (((PyCFunctionObject *)func) -> m_ml -> ml_meth)
14
+ #define PyCFunction_GET_SELF(func) \
15
+ (((PyCFunctionObject *)func) -> m_ml -> ml_flags & METH_STATIC ? \
16
+ NULL : ((PyCFunctionObject *)func) -> m_self)
17
+ #define PyCFunction_GET_FLAGS(func) \
18
+ (((PyCFunctionObject *)func) -> m_ml -> ml_flags)
19
+ #define PyCFunction_GET_CLASS(func) \
20
+ (((PyCFunctionObject *)func) -> m_ml -> ml_flags & METH_METHOD ? \
21
+ ((PyCMethodObject *)func) -> mm_class : NULL)
22
+
23
+ typedef struct {
24
+ PyObject_HEAD
25
+ PyMethodDef *m_ml; /* Description of the C function to call */
26
+ PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
27
+ PyObject *m_module; /* The __module__ attribute, can be anything */
28
+ PyObject *m_weakreflist; /* List of weak references */
29
+ vectorcallfunc vectorcall;
30
+ } PyCFunctionObject;
31
+
32
+ typedef struct {
33
+ PyCFunctionObject func;
34
+ PyTypeObject *mm_class; /* Class that defines this method */
35
+ } PyCMethodObject;
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/object.h ADDED
@@ -0,0 +1,552 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_OBJECT_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ PyAPI_FUNC(void) _Py_NewReference(PyObject *op);
6
+
7
+ #ifdef Py_TRACE_REFS
8
+ /* Py_TRACE_REFS is such major surgery that we call external routines. */
9
+ PyAPI_FUNC(void) _Py_ForgetReference(PyObject *);
10
+ #endif
11
+
12
+ #ifdef Py_REF_DEBUG
13
+ PyAPI_FUNC(Py_ssize_t) _Py_GetRefTotal(void);
14
+ #endif
15
+
16
+
17
+ /********************* String Literals ****************************************/
18
+ /* This structure helps managing static strings. The basic usage goes like this:
19
+ Instead of doing
20
+
21
+ r = PyObject_CallMethod(o, "foo", "args", ...);
22
+
23
+ do
24
+
25
+ _Py_IDENTIFIER(foo);
26
+ ...
27
+ r = _PyObject_CallMethodId(o, &PyId_foo, "args", ...);
28
+
29
+ PyId_foo is a static variable, either on block level or file level. On first
30
+ usage, the string "foo" is interned, and the structures are linked. On interpreter
31
+ shutdown, all strings are released.
32
+
33
+ Alternatively, _Py_static_string allows choosing the variable name.
34
+ _PyUnicode_FromId returns a borrowed reference to the interned string.
35
+ _PyObject_{Get,Set,Has}AttrId are __getattr__ versions using _Py_Identifier*.
36
+ */
37
+ typedef struct _Py_Identifier {
38
+ const char* string;
39
+ // Index in PyInterpreterState.unicode.ids.array. It is process-wide
40
+ // unique and must be initialized to -1.
41
+ Py_ssize_t index;
42
+ } _Py_Identifier;
43
+
44
+ #define _Py_static_string_init(value) { .string = value, .index = -1 }
45
+ #define _Py_static_string(varname, value) static _Py_Identifier varname = _Py_static_string_init(value)
46
+ #define _Py_IDENTIFIER(varname) _Py_static_string(PyId_##varname, #varname)
47
+
48
+ /* buffer interface */
49
+ typedef struct bufferinfo {
50
+ void *buf;
51
+ PyObject *obj; /* owned reference */
52
+ Py_ssize_t len;
53
+ Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
54
+ pointed to by strides in simple case.*/
55
+ int readonly;
56
+ int ndim;
57
+ char *format;
58
+ Py_ssize_t *shape;
59
+ Py_ssize_t *strides;
60
+ Py_ssize_t *suboffsets;
61
+ void *internal;
62
+ } Py_buffer;
63
+
64
+ typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
65
+ typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
66
+
67
+ typedef PyObject *(*vectorcallfunc)(PyObject *callable, PyObject *const *args,
68
+ size_t nargsf, PyObject *kwnames);
69
+
70
+ /* Maximum number of dimensions */
71
+ #define PyBUF_MAX_NDIM 64
72
+
73
+ /* Flags for getting buffers */
74
+ #define PyBUF_SIMPLE 0
75
+ #define PyBUF_WRITABLE 0x0001
76
+ /* we used to include an E, backwards compatible alias */
77
+ #define PyBUF_WRITEABLE PyBUF_WRITABLE
78
+ #define PyBUF_FORMAT 0x0004
79
+ #define PyBUF_ND 0x0008
80
+ #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
81
+ #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
82
+ #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
83
+ #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
84
+ #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
85
+
86
+ #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
87
+ #define PyBUF_CONTIG_RO (PyBUF_ND)
88
+
89
+ #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
90
+ #define PyBUF_STRIDED_RO (PyBUF_STRIDES)
91
+
92
+ #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
93
+ #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT)
94
+
95
+ #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_WRITABLE | PyBUF_FORMAT)
96
+ #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT)
97
+
98
+
99
+ #define PyBUF_READ 0x100
100
+ #define PyBUF_WRITE 0x200
101
+ /* End buffer interface */
102
+
103
+
104
+ typedef struct {
105
+ /* Number implementations must check *both*
106
+ arguments for proper type and implement the necessary conversions
107
+ in the slot functions themselves. */
108
+
109
+ binaryfunc nb_add;
110
+ binaryfunc nb_subtract;
111
+ binaryfunc nb_multiply;
112
+ binaryfunc nb_remainder;
113
+ binaryfunc nb_divmod;
114
+ ternaryfunc nb_power;
115
+ unaryfunc nb_negative;
116
+ unaryfunc nb_positive;
117
+ unaryfunc nb_absolute;
118
+ inquiry nb_bool;
119
+ unaryfunc nb_invert;
120
+ binaryfunc nb_lshift;
121
+ binaryfunc nb_rshift;
122
+ binaryfunc nb_and;
123
+ binaryfunc nb_xor;
124
+ binaryfunc nb_or;
125
+ unaryfunc nb_int;
126
+ void *nb_reserved; /* the slot formerly known as nb_long */
127
+ unaryfunc nb_float;
128
+
129
+ binaryfunc nb_inplace_add;
130
+ binaryfunc nb_inplace_subtract;
131
+ binaryfunc nb_inplace_multiply;
132
+ binaryfunc nb_inplace_remainder;
133
+ ternaryfunc nb_inplace_power;
134
+ binaryfunc nb_inplace_lshift;
135
+ binaryfunc nb_inplace_rshift;
136
+ binaryfunc nb_inplace_and;
137
+ binaryfunc nb_inplace_xor;
138
+ binaryfunc nb_inplace_or;
139
+
140
+ binaryfunc nb_floor_divide;
141
+ binaryfunc nb_true_divide;
142
+ binaryfunc nb_inplace_floor_divide;
143
+ binaryfunc nb_inplace_true_divide;
144
+
145
+ unaryfunc nb_index;
146
+
147
+ binaryfunc nb_matrix_multiply;
148
+ binaryfunc nb_inplace_matrix_multiply;
149
+ } PyNumberMethods;
150
+
151
+ typedef struct {
152
+ lenfunc sq_length;
153
+ binaryfunc sq_concat;
154
+ ssizeargfunc sq_repeat;
155
+ ssizeargfunc sq_item;
156
+ void *was_sq_slice;
157
+ ssizeobjargproc sq_ass_item;
158
+ void *was_sq_ass_slice;
159
+ objobjproc sq_contains;
160
+
161
+ binaryfunc sq_inplace_concat;
162
+ ssizeargfunc sq_inplace_repeat;
163
+ } PySequenceMethods;
164
+
165
+ typedef struct {
166
+ lenfunc mp_length;
167
+ binaryfunc mp_subscript;
168
+ objobjargproc mp_ass_subscript;
169
+ } PyMappingMethods;
170
+
171
+ typedef PySendResult (*sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
172
+
173
+ typedef struct {
174
+ unaryfunc am_await;
175
+ unaryfunc am_aiter;
176
+ unaryfunc am_anext;
177
+ sendfunc am_send;
178
+ } PyAsyncMethods;
179
+
180
+ typedef struct {
181
+ getbufferproc bf_getbuffer;
182
+ releasebufferproc bf_releasebuffer;
183
+ } PyBufferProcs;
184
+
185
+ /* Allow printfunc in the tp_vectorcall_offset slot for
186
+ * backwards-compatibility */
187
+ typedef Py_ssize_t printfunc;
188
+
189
+ // If this structure is modified, Doc/includes/typestruct.h should be updated
190
+ // as well.
191
+ struct _typeobject {
192
+ PyObject_VAR_HEAD
193
+ const char *tp_name; /* For printing, in format "<module>.<name>" */
194
+ Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
195
+
196
+ /* Methods to implement standard operations */
197
+
198
+ destructor tp_dealloc;
199
+ Py_ssize_t tp_vectorcall_offset;
200
+ getattrfunc tp_getattr;
201
+ setattrfunc tp_setattr;
202
+ PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2)
203
+ or tp_reserved (Python 3) */
204
+ reprfunc tp_repr;
205
+
206
+ /* Method suites for standard classes */
207
+
208
+ PyNumberMethods *tp_as_number;
209
+ PySequenceMethods *tp_as_sequence;
210
+ PyMappingMethods *tp_as_mapping;
211
+
212
+ /* More standard operations (here for binary compatibility) */
213
+
214
+ hashfunc tp_hash;
215
+ ternaryfunc tp_call;
216
+ reprfunc tp_str;
217
+ getattrofunc tp_getattro;
218
+ setattrofunc tp_setattro;
219
+
220
+ /* Functions to access object as input/output buffer */
221
+ PyBufferProcs *tp_as_buffer;
222
+
223
+ /* Flags to define presence of optional/expanded features */
224
+ unsigned long tp_flags;
225
+
226
+ const char *tp_doc; /* Documentation string */
227
+
228
+ /* Assigned meaning in release 2.0 */
229
+ /* call function for all accessible objects */
230
+ traverseproc tp_traverse;
231
+
232
+ /* delete references to contained objects */
233
+ inquiry tp_clear;
234
+
235
+ /* Assigned meaning in release 2.1 */
236
+ /* rich comparisons */
237
+ richcmpfunc tp_richcompare;
238
+
239
+ /* weak reference enabler */
240
+ Py_ssize_t tp_weaklistoffset;
241
+
242
+ /* Iterators */
243
+ getiterfunc tp_iter;
244
+ iternextfunc tp_iternext;
245
+
246
+ /* Attribute descriptor and subclassing stuff */
247
+ struct PyMethodDef *tp_methods;
248
+ struct PyMemberDef *tp_members;
249
+ struct PyGetSetDef *tp_getset;
250
+ // Strong reference on a heap type, borrowed reference on a static type
251
+ struct _typeobject *tp_base;
252
+ PyObject *tp_dict;
253
+ descrgetfunc tp_descr_get;
254
+ descrsetfunc tp_descr_set;
255
+ Py_ssize_t tp_dictoffset;
256
+ initproc tp_init;
257
+ allocfunc tp_alloc;
258
+ newfunc tp_new;
259
+ freefunc tp_free; /* Low-level free-memory routine */
260
+ inquiry tp_is_gc; /* For PyObject_IS_GC */
261
+ PyObject *tp_bases;
262
+ PyObject *tp_mro; /* method resolution order */
263
+ PyObject *tp_cache;
264
+ PyObject *tp_subclasses;
265
+ PyObject *tp_weaklist;
266
+ destructor tp_del;
267
+
268
+ /* Type attribute cache version tag. Added in version 2.6 */
269
+ unsigned int tp_version_tag;
270
+
271
+ destructor tp_finalize;
272
+ vectorcallfunc tp_vectorcall;
273
+ };
274
+
275
+ /* The *real* layout of a type object when allocated on the heap */
276
+ typedef struct _heaptypeobject {
277
+ /* Note: there's a dependency on the order of these members
278
+ in slotptr() in typeobject.c . */
279
+ PyTypeObject ht_type;
280
+ PyAsyncMethods as_async;
281
+ PyNumberMethods as_number;
282
+ PyMappingMethods as_mapping;
283
+ PySequenceMethods as_sequence; /* as_sequence comes after as_mapping,
284
+ so that the mapping wins when both
285
+ the mapping and the sequence define
286
+ a given operator (e.g. __getitem__).
287
+ see add_operators() in typeobject.c . */
288
+ PyBufferProcs as_buffer;
289
+ PyObject *ht_name, *ht_slots, *ht_qualname;
290
+ struct _dictkeysobject *ht_cached_keys;
291
+ PyObject *ht_module;
292
+ /* here are optional user slots, followed by the members. */
293
+ } PyHeapTypeObject;
294
+
295
+ /* access macro to the members which are floating "behind" the object */
296
+ #define PyHeapType_GET_MEMBERS(etype) \
297
+ ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize))
298
+
299
+ PyAPI_FUNC(const char *) _PyType_Name(PyTypeObject *);
300
+ PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *);
301
+ PyAPI_FUNC(PyObject *) _PyType_LookupId(PyTypeObject *, _Py_Identifier *);
302
+ PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, _Py_Identifier *);
303
+ PyAPI_FUNC(PyTypeObject *) _PyType_CalculateMetaclass(PyTypeObject *, PyObject *);
304
+ PyAPI_FUNC(PyObject *) _PyType_GetDocFromInternalDoc(const char *, const char *);
305
+ PyAPI_FUNC(PyObject *) _PyType_GetTextSignatureFromInternalDoc(const char *, const char *);
306
+ struct PyModuleDef;
307
+ PyAPI_FUNC(PyObject *) _PyType_GetModuleByDef(PyTypeObject *, struct PyModuleDef *);
308
+
309
+ struct _Py_Identifier;
310
+ PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int);
311
+ PyAPI_FUNC(void) _Py_BreakPoint(void);
312
+ PyAPI_FUNC(void) _PyObject_Dump(PyObject *);
313
+ PyAPI_FUNC(int) _PyObject_IsFreed(PyObject *);
314
+
315
+ PyAPI_FUNC(int) _PyObject_IsAbstract(PyObject *);
316
+ PyAPI_FUNC(PyObject *) _PyObject_GetAttrId(PyObject *, struct _Py_Identifier *);
317
+ PyAPI_FUNC(int) _PyObject_SetAttrId(PyObject *, struct _Py_Identifier *, PyObject *);
318
+ /* Replacements of PyObject_GetAttr() and _PyObject_GetAttrId() which
319
+ don't raise AttributeError.
320
+
321
+ Return 1 and set *result != NULL if an attribute is found.
322
+ Return 0 and set *result == NULL if an attribute is not found;
323
+ an AttributeError is silenced.
324
+ Return -1 and set *result == NULL if an error other than AttributeError
325
+ is raised.
326
+ */
327
+ PyAPI_FUNC(int) _PyObject_LookupAttr(PyObject *, PyObject *, PyObject **);
328
+ PyAPI_FUNC(int) _PyObject_LookupAttrId(PyObject *, struct _Py_Identifier *, PyObject **);
329
+
330
+ PyAPI_FUNC(int) _PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
331
+
332
+ PyAPI_FUNC(PyObject **) _PyObject_GetDictPtr(PyObject *);
333
+ PyAPI_FUNC(PyObject *) _PyObject_NextNotImplemented(PyObject *);
334
+ PyAPI_FUNC(void) PyObject_CallFinalizer(PyObject *);
335
+ PyAPI_FUNC(int) PyObject_CallFinalizerFromDealloc(PyObject *);
336
+
337
+ /* Same as PyObject_Generic{Get,Set}Attr, but passing the attributes
338
+ dict as the last parameter. */
339
+ PyAPI_FUNC(PyObject *)
340
+ _PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *, int);
341
+ PyAPI_FUNC(int)
342
+ _PyObject_GenericSetAttrWithDict(PyObject *, PyObject *,
343
+ PyObject *, PyObject *);
344
+
345
+ PyAPI_FUNC(PyObject *) _PyObject_FunctionStr(PyObject *);
346
+
347
+ /* Safely decref `op` and set `op` to `op2`.
348
+ *
349
+ * As in case of Py_CLEAR "the obvious" code can be deadly:
350
+ *
351
+ * Py_DECREF(op);
352
+ * op = op2;
353
+ *
354
+ * The safe way is:
355
+ *
356
+ * Py_SETREF(op, op2);
357
+ *
358
+ * That arranges to set `op` to `op2` _before_ decref'ing, so that any code
359
+ * triggered as a side-effect of `op` getting torn down no longer believes
360
+ * `op` points to a valid object.
361
+ *
362
+ * Py_XSETREF is a variant of Py_SETREF that uses Py_XDECREF instead of
363
+ * Py_DECREF.
364
+ */
365
+
366
+ #define Py_SETREF(op, op2) \
367
+ do { \
368
+ PyObject *_py_tmp = _PyObject_CAST(op); \
369
+ (op) = (op2); \
370
+ Py_DECREF(_py_tmp); \
371
+ } while (0)
372
+
373
+ #define Py_XSETREF(op, op2) \
374
+ do { \
375
+ PyObject *_py_tmp = _PyObject_CAST(op); \
376
+ (op) = (op2); \
377
+ Py_XDECREF(_py_tmp); \
378
+ } while (0)
379
+
380
+
381
+ PyAPI_DATA(PyTypeObject) _PyNone_Type;
382
+ PyAPI_DATA(PyTypeObject) _PyNotImplemented_Type;
383
+
384
+ /* Maps Py_LT to Py_GT, ..., Py_GE to Py_LE.
385
+ * Defined in object.c.
386
+ */
387
+ PyAPI_DATA(int) _Py_SwappedOp[];
388
+
389
+ PyAPI_FUNC(void)
390
+ _PyDebugAllocatorStats(FILE *out, const char *block_name, int num_blocks,
391
+ size_t sizeof_block);
392
+ PyAPI_FUNC(void)
393
+ _PyObject_DebugTypeStats(FILE *out);
394
+
395
+ /* Define a pair of assertion macros:
396
+ _PyObject_ASSERT_FROM(), _PyObject_ASSERT_WITH_MSG() and _PyObject_ASSERT().
397
+
398
+ These work like the regular C assert(), in that they will abort the
399
+ process with a message on stderr if the given condition fails to hold,
400
+ but compile away to nothing if NDEBUG is defined.
401
+
402
+ However, before aborting, Python will also try to call _PyObject_Dump() on
403
+ the given object. This may be of use when investigating bugs in which a
404
+ particular object is corrupt (e.g. buggy a tp_visit method in an extension
405
+ module breaking the garbage collector), to help locate the broken objects.
406
+
407
+ The WITH_MSG variant allows you to supply an additional message that Python
408
+ will attempt to print to stderr, after the object dump. */
409
+ #ifdef NDEBUG
410
+ /* No debugging: compile away the assertions: */
411
+ # define _PyObject_ASSERT_FROM(obj, expr, msg, filename, lineno, func) \
412
+ ((void)0)
413
+ #else
414
+ /* With debugging: generate checks: */
415
+ # define _PyObject_ASSERT_FROM(obj, expr, msg, filename, lineno, func) \
416
+ ((expr) \
417
+ ? (void)(0) \
418
+ : _PyObject_AssertFailed((obj), Py_STRINGIFY(expr), \
419
+ (msg), (filename), (lineno), (func)))
420
+ #endif
421
+
422
+ #define _PyObject_ASSERT_WITH_MSG(obj, expr, msg) \
423
+ _PyObject_ASSERT_FROM(obj, expr, msg, __FILE__, __LINE__, __func__)
424
+ #define _PyObject_ASSERT(obj, expr) \
425
+ _PyObject_ASSERT_WITH_MSG(obj, expr, NULL)
426
+
427
+ #define _PyObject_ASSERT_FAILED_MSG(obj, msg) \
428
+ _PyObject_AssertFailed((obj), NULL, (msg), __FILE__, __LINE__, __func__)
429
+
430
+ /* Declare and define _PyObject_AssertFailed() even when NDEBUG is defined,
431
+ to avoid causing compiler/linker errors when building extensions without
432
+ NDEBUG against a Python built with NDEBUG defined.
433
+
434
+ msg, expr and function can be NULL. */
435
+ PyAPI_FUNC(void) _Py_NO_RETURN _PyObject_AssertFailed(
436
+ PyObject *obj,
437
+ const char *expr,
438
+ const char *msg,
439
+ const char *file,
440
+ int line,
441
+ const char *function);
442
+
443
+ /* Check if an object is consistent. For example, ensure that the reference
444
+ counter is greater than or equal to 1, and ensure that ob_type is not NULL.
445
+
446
+ Call _PyObject_AssertFailed() if the object is inconsistent.
447
+
448
+ If check_content is zero, only check header fields: reduce the overhead.
449
+
450
+ The function always return 1. The return value is just here to be able to
451
+ write:
452
+
453
+ assert(_PyObject_CheckConsistency(obj, 1)); */
454
+ PyAPI_FUNC(int) _PyObject_CheckConsistency(
455
+ PyObject *op,
456
+ int check_content);
457
+
458
+
459
+ /* Trashcan mechanism, thanks to Christian Tismer.
460
+
461
+ When deallocating a container object, it's possible to trigger an unbounded
462
+ chain of deallocations, as each Py_DECREF in turn drops the refcount on "the
463
+ next" object in the chain to 0. This can easily lead to stack overflows,
464
+ especially in threads (which typically have less stack space to work with).
465
+
466
+ A container object can avoid this by bracketing the body of its tp_dealloc
467
+ function with a pair of macros:
468
+
469
+ static void
470
+ mytype_dealloc(mytype *p)
471
+ {
472
+ ... declarations go here ...
473
+
474
+ PyObject_GC_UnTrack(p); // must untrack first
475
+ Py_TRASHCAN_BEGIN(p, mytype_dealloc)
476
+ ... The body of the deallocator goes here, including all calls ...
477
+ ... to Py_DECREF on contained objects. ...
478
+ Py_TRASHCAN_END // there should be no code after this
479
+ }
480
+
481
+ CAUTION: Never return from the middle of the body! If the body needs to
482
+ "get out early", put a label immediately before the Py_TRASHCAN_END
483
+ call, and goto it. Else the call-depth counter (see below) will stay
484
+ above 0 forever, and the trashcan will never get emptied.
485
+
486
+ How it works: The BEGIN macro increments a call-depth counter. So long
487
+ as this counter is small, the body of the deallocator is run directly without
488
+ further ado. But if the counter gets large, it instead adds p to a list of
489
+ objects to be deallocated later, skips the body of the deallocator, and
490
+ resumes execution after the END macro. The tp_dealloc routine then returns
491
+ without deallocating anything (and so unbounded call-stack depth is avoided).
492
+
493
+ When the call stack finishes unwinding again, code generated by the END macro
494
+ notices this, and calls another routine to deallocate all the objects that
495
+ may have been added to the list of deferred deallocations. In effect, a
496
+ chain of N deallocations is broken into (N-1)/(PyTrash_UNWIND_LEVEL-1) pieces,
497
+ with the call stack never exceeding a depth of PyTrash_UNWIND_LEVEL.
498
+
499
+ Since the tp_dealloc of a subclass typically calls the tp_dealloc of the base
500
+ class, we need to ensure that the trashcan is only triggered on the tp_dealloc
501
+ of the actual class being deallocated. Otherwise we might end up with a
502
+ partially-deallocated object. To check this, the tp_dealloc function must be
503
+ passed as second argument to Py_TRASHCAN_BEGIN().
504
+ */
505
+
506
+ /* This is the old private API, invoked by the macros before 3.2.4.
507
+ Kept for binary compatibility of extensions using the stable ABI. */
508
+ PyAPI_FUNC(void) _PyTrash_deposit_object(PyObject*);
509
+ PyAPI_FUNC(void) _PyTrash_destroy_chain(void);
510
+
511
+ /* This is the old private API, invoked by the macros before 3.9.
512
+ Kept for binary compatibility of extensions using the stable ABI. */
513
+ PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyObject*);
514
+ PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(void);
515
+
516
+ /* Forward declarations for PyThreadState */
517
+ struct _ts;
518
+
519
+ /* Python 3.9 private API, invoked by the macros below. */
520
+ PyAPI_FUNC(int) _PyTrash_begin(struct _ts *tstate, PyObject *op);
521
+ PyAPI_FUNC(void) _PyTrash_end(struct _ts *tstate);
522
+ /* Python 3.10 private API, invoked by the Py_TRASHCAN_BEGIN(). */
523
+ PyAPI_FUNC(int) _PyTrash_cond(PyObject *op, destructor dealloc);
524
+
525
+ #define PyTrash_UNWIND_LEVEL 50
526
+
527
+ #define Py_TRASHCAN_BEGIN_CONDITION(op, cond) \
528
+ do { \
529
+ PyThreadState *_tstate = NULL; \
530
+ /* If "cond" is false, then _tstate remains NULL and the deallocator \
531
+ * is run normally without involving the trashcan */ \
532
+ if (cond) { \
533
+ _tstate = PyThreadState_Get(); \
534
+ if (_PyTrash_begin(_tstate, _PyObject_CAST(op))) { \
535
+ break; \
536
+ } \
537
+ }
538
+ /* The body of the deallocator is here. */
539
+ #define Py_TRASHCAN_END \
540
+ if (_tstate) { \
541
+ _PyTrash_end(_tstate); \
542
+ } \
543
+ } while (0);
544
+
545
+ #define Py_TRASHCAN_BEGIN(op, dealloc) \
546
+ Py_TRASHCAN_BEGIN_CONDITION(op, \
547
+ _PyTrash_cond(_PyObject_CAST(op), (destructor)dealloc))
548
+
549
+ /* For backwards compatibility, these macros enable the trashcan
550
+ * unconditionally */
551
+ #define Py_TRASHCAN_SAFE_BEGIN(op) Py_TRASHCAN_BEGIN_CONDITION(op, 1)
552
+ #define Py_TRASHCAN_SAFE_END(op) Py_TRASHCAN_END
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/objimpl.h ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_CPYTHON_OBJIMPL_H
2
+ # error "this header file must not be included directly"
3
+ #endif
4
+
5
+ #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
6
+
7
+ /* _PyObject_VAR_SIZE returns the number of bytes (as size_t) allocated for a
8
+ vrbl-size object with nitems items, exclusive of gc overhead (if any). The
9
+ value is rounded up to the closest multiple of sizeof(void *), in order to
10
+ ensure that pointer fields at the end of the object are correctly aligned
11
+ for the platform (this is of special importance for subclasses of, e.g.,
12
+ str or int, so that pointers can be stored after the embedded data).
13
+
14
+ Note that there's no memory wastage in doing this, as malloc has to
15
+ return (at worst) pointer-aligned memory anyway.
16
+ */
17
+ #if ((SIZEOF_VOID_P - 1) & SIZEOF_VOID_P) != 0
18
+ # error "_PyObject_VAR_SIZE requires SIZEOF_VOID_P be a power of 2"
19
+ #endif
20
+
21
+ #define _PyObject_VAR_SIZE(typeobj, nitems) \
22
+ _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
23
+ (nitems)*(typeobj)->tp_itemsize, \
24
+ SIZEOF_VOID_P)
25
+
26
+
27
+ /* This example code implements an object constructor with a custom
28
+ allocator, where PyObject_New is inlined, and shows the important
29
+ distinction between two steps (at least):
30
+ 1) the actual allocation of the object storage;
31
+ 2) the initialization of the Python specific fields
32
+ in this storage with PyObject_{Init, InitVar}.
33
+
34
+ PyObject *
35
+ YourObject_New(...)
36
+ {
37
+ PyObject *op;
38
+
39
+ op = (PyObject *) Your_Allocator(_PyObject_SIZE(YourTypeStruct));
40
+ if (op == NULL) {
41
+ return PyErr_NoMemory();
42
+ }
43
+
44
+ PyObject_Init(op, &YourTypeStruct);
45
+
46
+ op->ob_field = value;
47
+ ...
48
+ return op;
49
+ }
50
+
51
+ Note that in C++, the use of the new operator usually implies that
52
+ the 1st step is performed automatically for you, so in a C++ class
53
+ constructor you would start directly with PyObject_Init/InitVar. */
54
+
55
+ /* This function returns the number of allocated memory blocks, regardless of size */
56
+ PyAPI_FUNC(Py_ssize_t) _Py_GetAllocatedBlocks(void);
57
+
58
+ /* Macros */
59
+ #ifdef WITH_PYMALLOC
60
+ PyAPI_FUNC(int) _PyObject_DebugMallocStats(FILE *out);
61
+ #endif
62
+
63
+
64
+ typedef struct {
65
+ /* user context passed as the first argument to the 2 functions */
66
+ void *ctx;
67
+
68
+ /* allocate an arena of size bytes */
69
+ void* (*alloc) (void *ctx, size_t size);
70
+
71
+ /* free an arena */
72
+ void (*free) (void *ctx, void *ptr, size_t size);
73
+ } PyObjectArenaAllocator;
74
+
75
+ /* Get the arena allocator. */
76
+ PyAPI_FUNC(void) PyObject_GetArenaAllocator(PyObjectArenaAllocator *allocator);
77
+
78
+ /* Set the arena allocator. */
79
+ PyAPI_FUNC(void) PyObject_SetArenaAllocator(PyObjectArenaAllocator *allocator);
80
+
81
+
82
+ /* Test if an object implements the garbage collector protocol */
83
+ PyAPI_FUNC(int) PyObject_IS_GC(PyObject *obj);
84
+
85
+
86
+ /* Code built with Py_BUILD_CORE must include pycore_gc.h instead which
87
+ defines a different _PyGC_FINALIZED() macro. */
88
+ #ifndef Py_BUILD_CORE
89
+ // Kept for backward compatibility with Python 3.8
90
+ # define _PyGC_FINALIZED(o) PyObject_GC_IsFinalized(o)
91
+ #endif
92
+
93
+ PyAPI_FUNC(PyObject *) _PyObject_GC_Malloc(size_t size);
94
+ PyAPI_FUNC(PyObject *) _PyObject_GC_Calloc(size_t size);
95
+
96
+
97
+ /* Test if a type supports weak references */
98
+ #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0)
99
+
100
+ PyAPI_FUNC(PyObject **) PyObject_GET_WEAKREFS_LISTPTR(PyObject *op);
miniconda3/pkgs/python-3.10.20-h741d88c_0/include/python3.10/cpython/odictobject.h ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef Py_ODICTOBJECT_H
2
+ #define Py_ODICTOBJECT_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+
8
+ /* OrderedDict */
9
+ /* This API is optional and mostly redundant. */
10
+
11
+ #ifndef Py_LIMITED_API
12
+
13
+ typedef struct _odictobject PyODictObject;
14
+
15
+ PyAPI_DATA(PyTypeObject) PyODict_Type;
16
+ PyAPI_DATA(PyTypeObject) PyODictIter_Type;
17
+ PyAPI_DATA(PyTypeObject) PyODictKeys_Type;
18
+ PyAPI_DATA(PyTypeObject) PyODictItems_Type;
19
+ PyAPI_DATA(PyTypeObject) PyODictValues_Type;
20
+
21
+ #define PyODict_Check(op) PyObject_TypeCheck(op, &PyODict_Type)
22
+ #define PyODict_CheckExact(op) Py_IS_TYPE(op, &PyODict_Type)
23
+ #define PyODict_SIZE(op) PyDict_GET_SIZE((op))
24
+
25
+ PyAPI_FUNC(PyObject *) PyODict_New(void);
26
+ PyAPI_FUNC(int) PyODict_SetItem(PyObject *od, PyObject *key, PyObject *item);
27
+ PyAPI_FUNC(int) PyODict_DelItem(PyObject *od, PyObject *key);
28
+
29
+ /* wrappers around PyDict* functions */
30
+ #define PyODict_GetItem(od, key) PyDict_GetItem(_PyObject_CAST(od), key)
31
+ #define PyODict_GetItemWithError(od, key) \
32
+ PyDict_GetItemWithError(_PyObject_CAST(od), key)
33
+ #define PyODict_Contains(od, key) PyDict_Contains(_PyObject_CAST(od), key)
34
+ #define PyODict_Size(od) PyDict_Size(_PyObject_CAST(od))
35
+ #define PyODict_GetItemString(od, key) \
36
+ PyDict_GetItemString(_PyObject_CAST(od), key)
37
+
38
+ #endif
39
+
40
+ #ifdef __cplusplus
41
+ }
42
+ #endif
43
+ #endif /* !Py_ODICTOBJECT_H */