Commit 6e345820 authored by Denis Bilenko's avatar Denis Bilenko

add __repr__ to getaddrinfo_request

parent 8034e054
......@@ -397,8 +397,8 @@ cdef class getaddrinfo_request:
def __get__(self):
return <size_t>self._ptr
def __str__(self):
return '<%s ptr=%x>' % (self.__class__.__name__, self.ptr)
def __repr__(self):
return '%s(%x)' % (self.__class__.__name__, self.ptr)
def detach(self):
self._ptr = NULL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment