Lines Matching defs:filename

69     /* filename cannot be NULL: "<unknown>" is used if the Python frame
70 filename is NULL */
71 PyObject *filename;
298 if (frame1->filename != frame2->filename) {
299 assert(PyUnicode_Compare(frame1->filename, frame2->filename) != 0);
310 frame->filename = &_Py_STR(anon_unknown);
317 PyObject *filename = pyframe->f_code->co_filename;
319 if (filename == NULL) {
321 tracemalloc_error("failed to get the filename of the code object");
326 if (!PyUnicode_Check(filename)) {
328 tracemalloc_error("filename is not a unicode string");
332 if (!PyUnicode_IS_READY(filename)) {
336 tracemalloc_error("filename is not a ready unicode string");
341 /* intern the filename */
343 entry = _Py_hashtable_get_entry(tracemalloc_filenames, filename);
345 filename = (PyObject *)entry->key;
349 to the filename */
350 Py_INCREF(filename);
351 if (_Py_hashtable_set(tracemalloc_filenames, filename, NULL) < 0) {
352 Py_DECREF(filename);
354 tracemalloc_error("failed to intern the filename");
360 /* the tracemalloc_filenames table keeps a reference to the filename */
361 frame->filename = filename;
377 y = (Py_uhash_t)PyObject_Hash(frame->filename);
412 assert(traceback->frames[traceback->nframe].filename != NULL);
838 PyObject *filename = (PyObject *)value;
839 Py_DECREF(filename);
918 tracemalloc_empty_traceback.frames[0].filename = &_Py_STR(anon_unknown);
1088 Py_INCREF(frame->filename);
1089 PyTuple_SET_ITEM(frame_obj, 0, frame->filename);
1332 traceback is a tuple of (filename: str, lineno: int) tuples.
1354 of (filename, lineno) tuples */
1454 Return a tuple of (filename: str, lineno: int) tuples.
1489 _Py_DumpASCII(fd, frame->filename);