#compsci #python 

## getrefcount
![[Dynamic typing in Python#^1264ba]]
returns a list of references to an object

## setrecursionlimit() and getrecursionlimit()
```python
import sys
sys.setrecursionlimit(10000)
```
sets and fetches the max depth of the Python interpreter stack (default - 1000)

## path and path.insert
```python
sys.path # outputs the paths available for file search
sys.path.insert(%position%, %path%) # inserts the path
```

![[Pasted image 20250205135306.png]]
0th place is the local place, check there first
Alternatively:
```python
sys.path.append(%path%) # appends to the last part
```
cleaner but may find a different file in the previous file paths