mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 08:24:43 +01:00
Delete and update some Python 3.7-specific todo notes
When I wrote some of these, I was wrong about the affected versions. Upgraded them to v3.9
This commit is contained in:
parent
b22763f3c6
commit
cc088211dc
1 changed files with 5 additions and 7 deletions
|
@ -2062,7 +2062,7 @@ cdef class _DynamicCapabilityClient:
|
||||||
cdef public object _parent, _cached_schema
|
cdef public object _parent, _cached_schema
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects
|
# Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
|
||||||
# appropriately
|
# appropriately
|
||||||
self.thisptr = C_DynamicCapability.Client()
|
self.thisptr = C_DynamicCapability.Client()
|
||||||
|
|
||||||
|
@ -2233,7 +2233,7 @@ cdef class TwoPartyClient:
|
||||||
cdef cbool closed
|
cdef cbool closed
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects
|
# Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
|
||||||
# appropriately
|
# appropriately
|
||||||
self.thisptr = Own[RpcSystem]()
|
self.thisptr = Own[RpcSystem]()
|
||||||
|
|
||||||
|
@ -2280,7 +2280,7 @@ cdef class TwoPartyServer:
|
||||||
cdef cbool closed
|
cdef cbool closed
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects
|
# Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
|
||||||
# appropriately
|
# appropriately
|
||||||
self.thisptr = Own[RpcSystem]()
|
self.thisptr = Own[RpcSystem]()
|
||||||
|
|
||||||
|
@ -2341,7 +2341,7 @@ cdef class _AsyncIoStream:
|
||||||
protocol.transport.close()
|
protocol.transport.close()
|
||||||
|
|
||||||
def __dealloc__(self):
|
def __dealloc__(self):
|
||||||
# Needed to make Python 3.7 happy, which seems to have trouble deallocating stack objects
|
# Needed to make Python <=3.9 happy, which seems to have trouble deallocating stack objects
|
||||||
# appropriately
|
# appropriately
|
||||||
self.thisptr = Own[AsyncIoStream]()
|
self.thisptr = Own[AsyncIoStream]()
|
||||||
|
|
||||||
|
@ -2424,9 +2424,7 @@ cdef class DummyBaseClass:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
cdef class _PyAsyncIoStreamProtocol(DummyBaseClass, asyncio.BufferedProtocol):
|
cdef class _PyAsyncIoStreamProtocol(DummyBaseClass, asyncio.BufferedProtocol):
|
||||||
# TODO: Temporary. Needed due to a missing __slots__ definitions in BufferedProtocol on Python 3.7.
|
cdef object _task
|
||||||
# See https://github.com/python/cpython/issues/79575. Can be removed once Python 3.7 is unsupported.
|
|
||||||
cdef dict __dict__
|
|
||||||
|
|
||||||
cdef public object transport
|
cdef public object transport
|
||||||
cdef object connected_callback
|
cdef object connected_callback
|
||||||
|
|
Loading…
Add table
Reference in a new issue