__getstate__() — requests Function Reference
Architecture documentation for the __getstate__() function in cookies.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD c295ff97_ef76_564c_b442_862c4fedc3a3["__getstate__()"] 12ccbc5f_4c31_987c_5272_7babba58a1f2["RequestsCookieJar"] c295ff97_ef76_564c_b442_862c4fedc3a3 -->|defined in| 12ccbc5f_4c31_987c_5272_7babba58a1f2 9e1359c1_1379_2078_a638_b914c03e4f63["copy()"] c295ff97_ef76_564c_b442_862c4fedc3a3 -->|calls| 9e1359c1_1379_2078_a638_b914c03e4f63 style c295ff97_ef76_564c_b442_862c4fedc3a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/requests/cookies.py lines 415–420
def __getstate__(self):
"""Unlike a normal CookieJar, this class is pickleable."""
state = self.__dict__.copy()
# remove the unpickleable RLock object
state.pop("_cookies_lock")
return state
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does __getstate__() do?
__getstate__() is a function in the requests codebase, defined in src/requests/cookies.py.
Where is __getstate__() defined?
__getstate__() is defined in src/requests/cookies.py at line 415.
What does __getstate__() call?
__getstate__() calls 1 function(s): copy.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free