Lines Matching full:path
3886 /* The normal path */
4061 PyObject *path = NULL;
4070 path = PyOS_FSPath(arg);
4071 if (path == NULL) {
4074 if (PyBytes_Check(path)) {
4075 output = path;
4078 output = PyUnicode_EncodeFSDefault(path);
4079 Py_DECREF(path);
4102 PyObject *path = NULL;
4112 path = PyOS_FSPath(arg);
4113 if (path == NULL) {
4118 path = arg;
4122 if (PyUnicode_Check(path)) {
4123 output = path;
4125 else if (PyBytes_Check(path) || is_buffer) {
4128 if (!PyBytes_Check(path) &&
4130 "path should be string, bytes, or os.PathLike, not %.200s",
4132 Py_DECREF(path);
4135 path_bytes = PyBytes_FromObject(path);
4136 Py_DECREF(path);
4149 "path should be string, bytes, or os.PathLike, not %.200s",
4151 Py_DECREF(path);
5048 /* Fast path, see in STRINGLIB(utf8_decode) for
5071 /* Fast path, see in STRINGLIB(utf8_decode) in stringlib/codecs.h
5116 // fast path: try ASCII string.
5126 // Use _PyUnicodeWriter after fast path is failed.
7238 /* Fast path: if it is a one-byte string, construct
7312 /* Fast-path: the error handler only writes one character,
7364 /* Fast path: if it is an ASCII-only string, construct bytes object
8132 /* fast-path for cp037, cp500 and iso8859_1 encodings. iso8859_1
9136 /* Fast path for ascii => ascii translation. Return 1 if the whole string
10116 /* inc refcount to keep this code path symmetric with the
12920 /* Fast-path ASCII */
14591 /* Fast path */
14899 /* Fast path */
14942 /* Fast path */
14959 /* Fast path */
15011 /* Fast path */