Skip to content

Commit 0ab2a44

Browse files
committed
Address Petr's code review of xxlimited.c
1 parent 7df9317 commit 0ab2a44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/xxlimited.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
def __init__(self):
2020
# In the C class, "_x_attr" is not accessible from Python code
2121
self._x_attr = {}
22-
self._x_buffer = bytesarray(10)
2322
self._x_exports = 0
2423
2524
def __getattr__(self, name):
@@ -33,6 +32,9 @@
3332
3433
@property
3534
def x_exports(self):
35+
"""Return the number of times an internal buffer is exported."""
36+
# Each Xxo instance has a 10-byte buffer that can be
37+
# accessed via the buffer interface (e.g. `memoryview`).
3638
return self._x_exports
3739
3840
def demo(o, /):

0 commit comments

Comments
 (0)