Lines Matching defs:object
1028 * extract the char * from the bytes object and
1071 * path.object
1072 * The original object passed in (if get a PathLike object,
1073 * the result of PyOS_FSPath() is treated as the original object).
1074 * Own a reference to the object.
1076 * For internal use only. May point to a temporary object.
1112 PyObject *object;
1132 Py_CLEAR(path->object);
1162 path->object = path->cleanup = NULL;
1163 /* path->object owns a reference to the original object */
1212 /* still owns a reference to the original object */
1352 /* Still a reference owned by path->object, don't have to
1364 path->object = o;
1624 /* environ is not accessible as an extern in a shared object on OSX; use
1689 Windows error object, which is non-trivial.
1751 return path_object_error(path->object);
1757 return posix_path_object_error(path->object);
1763 return path_object_error2(path->object, path2->object);
2118 This object may be accessed either as a tuple of\n\
2238 This object may be accessed either as a tuple of\n\
2269 This object may be accessed either as a tuple of\n\
2881 Path to be examined; can be string, bytes, a path-like object or
2943 Path to be tested; can be string, bytes, or a path-like object.
3164 if (PySys_Audit("os.chdir", "(O)", path->object) < 0) {
3219 Path to be modified. May always be specified as a str, bytes, or a path-like object.
3268 if (PySys_Audit("os.chmod", "Oii", path->object, mode,
3429 if (PySys_Audit("os.chmod", "Oii", path->object, mode, -1) < 0) {
3474 if (PySys_Audit("os.chflags", "Ok", path->object, flags) < 0) {
3513 if (PySys_Audit("os.chflags", "Ok", path->object, flags) < 0) {
3615 Path to be examined; can be string, bytes, a path-like object, or open-file-descriptor int.
3669 if (PySys_Audit("os.chown", "OIIi", path->object, uid, gid,
3773 if (PySys_Audit("os.chown", "OIIi", path->object, uid, gid, -1) < 0) {
3972 if (PySys_Audit("os.link", "OOii", src->object, dst->object,
4172 /* only return bytes if they specified a bytes-like object */
4173 return_str = !PyObject_CheckBuffer(path->object);
4256 path can be specified as either str, bytes, or a path-like object. If path is bytes,
4275 path->object ? path->object : Py_None) < 0) {
4344 return win32_error_object("GetFullPathNameW", path->object);
4394 return win32_error_object("CreateFileW", path->object);
4407 path->object);
4476 result = win32_error_object("_getvolumepathname", path->object);
4519 result = Py_BuildValue("sO", "", path->object);
4527 result = Py_BuildValue("Os", path->object, "");
4541 path: object
4606 if (PySys_Audit("os.mkdir", "Oii", path->object, mode,
4800 if (PySys_Audit("os.rename", "OOii", src->object, dst->object,
4921 if (PySys_Audit("os.rmdir", "Oi", path->object,
5101 if (PySys_Audit("os.remove", "Oi", path->object,
5171 This object may be accessed either as a tuple of\n\
5188 Return an object identifying the current operating system.
5190 The object behaves like a named tuple with the following fields:
5470 times: object = None
5472 ns: object = NULL
5586 if (PySys_Audit("os.utime", "OOOi", path->object, times, ns ? ns : Py_None,
5862 argv: object
5901 if (PySys_Audit("os.exec", "OOO", path->object, argv, Py_None) < 0) {
5926 argv: object
5928 env: object
5959 "execve: environment must be a mapping object");
5977 if (PySys_Audit("os.exec", "OOO", path->object, argv, env) < 0) {
6195 /* Populate the file_actions object */
6309 "%s: environment must be a mapping object", func_name);
6353 if (PySys_Audit("os.posix_spawn", "OOO", path->object, argv, env) < 0) {
6373 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, path->object);
6404 argv: object
6406 env: object
6410 file_actions: object(c_default='NULL') = ()
6412 setpgroup: object = NULL
6418 setsigmask: object(c_default='NULL') = ()
6420 setsigdef: object(c_default='NULL') = ()
6422 scheduler: object = NULL
6450 argv: object
6452 env: object
6456 file_actions: object(c_default='NULL') = ()
6458 setpgroup: object = NULL
6464 setsigmask: object(c_default='NULL') = ()
6466 setsigdef: object(c_default='NULL') = ()
6468 scheduler: object = NULL
6530 argv: object
6597 if (PySys_Audit("os.spawn", "iOOO", mode, path->object, argv,
6630 argv: object
6632 env: object
6676 "spawnve() arg 3 must be a mapping object");
6712 if (PySys_Audit("os.spawn", "iOOO", mode, path->object, argv, env) < 0) {
6767 before: object=NULL
6769 after_in_child: object=NULL
6771 after_in_parent: object=NULL
6962 sched_priority: object
7002 PyErr_SetString(PyExc_TypeError, "must have a sched_param object");
7024 param as param_obj: object
7094 param as param_obj: object
7174 mask : object
8303 groups: object
8741 if (PyUnicode_Check(path->object))
8936 if (PySys_Audit("os.symlink", "OOi", src->object, dst->object,
9037 This object may be accessed either as a tuple of\n\
9099 The object returned behaves like a named tuple with these fields:
9301 if (PySys_Audit("open", "OOi", path->object, Py_None, flags) < 0) {
9337 PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, path->object);
9605 Read from a file descriptor. Returns a bytes object.
9701 buffers: object
9809 buffers: object
9913 Write a bytes object to a file descriptor.
9932 headers: object(c_default="NULL") = ()
9933 trailers: object(c_default="NULL") = ()
9952 headers: object(c_default="NULL") = ()
9953 trailers: object(c_default="NULL") = ()
9970 offset as offobj: object
10360 buffers: object
10449 buffers: object
10460 This function writes the contents of each object to the file descriptor and returns
10558 offset_src: object = None
10560 offset_dst: object = None
10627 offset_src: object = None
10629 offset_dst: object = None
10932 if (PySys_Audit("os.truncate", "On", path->object, length) < 0) {
12740 if (PySys_Audit("os.startfile", "Ou", filepath->object, operation) < 0) {
12743 if (PySys_Audit("os.startfile/2", "OuuOi", filepath->object, operation,
12744 arguments, cwd->object ? cwd->object : Py_None,
12755 win32_error_object("startfile", filepath->object);
12905 path may be either a string, a path-like object, or an open file descriptor.
12923 if (PySys_Audit("os.getxattr", "OO", path->object, attribute->object) < 0) {
12981 path may be either a string, a path-like object, or an open file descriptor.
12998 if (PySys_Audit("os.setxattr", "OOy#i", path->object, attribute->object,
13034 path may be either a string, a path-like object, or an open file descriptor.
13051 if (PySys_Audit("os.removexattr", "OO", path->object, attribute->object) < 0) {
13081 path may be either None, a string, a path-like object, or an open file descriptor.
13101 path->object ? path->object : Py_None) < 0) {
13184 Return a bytes object containing random bytes suitable for cryptographic use.
13754 Return stat_result object for the entry; cached per entry.
14158 if (!path->narrow || !PyObject_CheckBuffer(path->object)) {
14448 path can be specified as either str, bytes, or a path-like object. If path
14470 path->object ? path->object : Py_None) < 0) {
14559 Return the file system path representation of the object.
14561 If the object is str or bytes, then allow it to pass through with
14562 an incremented refcount. If the object defines __fspath__(), then
14581 "expected str, bytes or os.PathLike object, "
14607 path: object
14609 Return the file system path representation of the object.
14611 If the object is str or bytes, then allow it to pass through as-is. If the
14612 object defines __fspath__(), then return the result of that method. All other
14716 if (PySys_Audit("os.add_dll_directory", "(O)", path->object) < 0) {
14734 path->object, err);
14743 cookie: object
14807 status as status_obj: object