private-attribute-cpp 2.1.20__tar.gz → 2.1.21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {private_attribute_cpp-2.1.20/private_attribute_cpp.egg-info → private_attribute_cpp-2.1.21}/PKG-INFO +1 -1
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/private_attribute.cpp +3 -3
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/private_attribute.pyi +2 -2
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21/private_attribute_cpp.egg-info}/PKG-INFO +1 -1
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/setup.py +1 -1
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/LICENSE +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/MANIFEST.in +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/README.md +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/picosha2.h +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/private_attribute_cpp.egg-info/SOURCES.txt +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/private_attribute_cpp.egg-info/dependency_links.txt +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/private_attribute_cpp.egg-info/not-zip-safe +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/private_attribute_cpp.egg-info/top_level.txt +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/setup.cfg +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_attr_classify_owner.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_class_private_attrs.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_gc_collect.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_abc.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_attrs.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_func.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_inheritance.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_method.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_wrap.py +0 -0
- {private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_slots_cycle.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: private_attribute_cpp
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.21
|
|
4
4
|
Summary: A Python package that provides a way to define private attributes in C++ implementation.
|
|
5
5
|
Home-page: https://github.com/Locked-chess-official/private_attribute_cpp
|
|
6
6
|
Author: HuangHaoHua
|
|
@@ -508,8 +508,8 @@ custom_random_string(uintptr_t obj_id, const std::string& attr_name, PyObject* f
|
|
|
508
508
|
lock.unlock();
|
|
509
509
|
PyObject* python_result = PyObject_CallFunction(
|
|
510
510
|
func,
|
|
511
|
-
"
|
|
512
|
-
static_cast<
|
|
511
|
+
"Ks",
|
|
512
|
+
static_cast<unsigned long long>(obj_id),
|
|
513
513
|
attr_name.c_str()
|
|
514
514
|
);
|
|
515
515
|
if (python_result) {
|
|
@@ -1154,7 +1154,7 @@ listproxy_clear(PyObject* self) noexcept
|
|
|
1154
1154
|
|
|
1155
1155
|
static PyTypeObject listproxyType = {
|
|
1156
1156
|
PyVarObject_HEAD_INIT(NULL, 0)
|
|
1157
|
-
"private_attribute.
|
|
1157
|
+
"private_attribute._listproxy", // tp_name
|
|
1158
1158
|
sizeof(listproxy), // tp_basicsize
|
|
1159
1159
|
0, // tp_itemsize
|
|
1160
1160
|
(destructor)listproxy_dealloc, // tp_dealloc
|
|
@@ -25,7 +25,7 @@ class _PrivateAttrDict(TypedDict):
|
|
|
25
25
|
|
|
26
26
|
_T = TypeVar('_T')
|
|
27
27
|
|
|
28
|
-
class
|
|
28
|
+
class _listproxy(Generic[_T]):
|
|
29
29
|
"a read-only proxy of a list"
|
|
30
30
|
def copy(self) -> list[_T]: ...
|
|
31
31
|
def count(self, value: Any, /) -> int: ...
|
|
@@ -42,7 +42,7 @@ class _PrivateWrap(Generic[_T]):
|
|
|
42
42
|
...
|
|
43
43
|
|
|
44
44
|
@property
|
|
45
|
-
def funcs(self) ->
|
|
45
|
+
def funcs(self) -> _listproxy[FunctionType]:
|
|
46
46
|
"the original functions"
|
|
47
47
|
...
|
|
48
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: private_attribute_cpp
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.21
|
|
4
4
|
Summary: A Python package that provides a way to define private attributes in C++ implementation.
|
|
5
5
|
Home-page: https://github.com/Locked-chess-official/private_attribute_cpp
|
|
6
6
|
Author: HuangHaoHua
|
|
@@ -24,7 +24,7 @@ readme = open('README.md').read()
|
|
|
24
24
|
|
|
25
25
|
setup(
|
|
26
26
|
name='private_attribute_cpp',
|
|
27
|
-
version='2.1.
|
|
27
|
+
version='2.1.21',
|
|
28
28
|
author="HuangHaoHua",
|
|
29
29
|
author_email="13140752715@example.com",
|
|
30
30
|
description='A Python package that provides a way to define private attributes in C++ implementation.',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_attr_classify_owner.py
RENAMED
|
File without changes
|
{private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_class_private_attrs.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{private_attribute_cpp-2.1.20 → private_attribute_cpp-2.1.21}/tests/test_private_inheritance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|