Skip to content

Commit

Permalink
Doctest for MemoryPool repr
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Aug 23, 2022
1 parent eed7303 commit ae55f75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/pyarrow/memory.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ cdef class ProxyMemoryPool(MemoryPool):
def default_memory_pool():
"""
Return the process-global memory pool.
Examples
--------
>>> default_memory_pool()
<pyarrow.MemoryPool backend_name=... bytes_allocated=0 max_memory=...>
"""
cdef:
MemoryPool pool = MemoryPool.__new__(MemoryPool)
Expand Down

0 comments on commit ae55f75

Please sign in to comment.