Commits


Miles Granger authored and GitHub committed 6f302a30702
ARROW-17449: [Python] Better repr for Buffer, MemoryPool, NativeFile and Codec (#13921) Example: ```python In [1]: import io In [2]: import pyarrow as pa In [3]: pa.PythonFile(io.BytesIO()) Out[3]: <pyarrow.PythonFile closed=False own_file=False is_seekable=False is_writable=True is_readable=False> In [4]: pa.Codec('gzip') Out[4]: <pyarrow.Codec name=gzip compression_level=9> In [5]: pool = pa.default_memory_pool() In [6]: pool Out[6]: <pyarrow.MemoryPool backend_name=jemalloc bytes_allocated=0 max_memory=0> In [7]: pa.allocate_buffer(1024, memory_pool=pool) Out[7]: <pyarrow.Buffer address=0x7fd660a08000 size=1024 is_cpu=True is_mutable=True ``` Authored-by: Miles Granger <miles59923@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>