private-attribute-cpp 2.2.8__tar.gz → 2.2.8.1__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.2.8 → private_attribute_cpp-2.2.8.1}/PKG-INFO +1 -1
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/private_attribute.cpp +1 -4
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/pyproject.toml +1 -1
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/CMakeLists.txt +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/LICENSE +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/README.md +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/picosha2.h +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/private_attribute.pyi +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_attr_classify_owner.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_class_private_attrs.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_gc_collect.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_init_subclass.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_abc.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_attrs.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_func.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_inheritance.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_method.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_wrap.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_slots_cycle.py +0 -0
- {private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_use_parents.py +0 -0
|
@@ -269,7 +269,6 @@ namespace {
|
|
|
269
269
|
static std::shared_mutex all_register_new_metaclass_mutex;
|
|
270
270
|
static std::unordered_map<uintptr_t, PyObjectStorage> all_register_type_weak_ref;
|
|
271
271
|
static std::unordered_map<uintptr_t, uintptr_t> weakref_type;
|
|
272
|
-
static std::unordered_set<uintptr_t> all_register_type;
|
|
273
272
|
// Single dict-backed strong-ref cache shared by the module itself (keyed by
|
|
274
273
|
// kModuleSelfKey) and by PrivateAttrBase (keyed by kPrivateAttrBaseKey),
|
|
275
274
|
// so clean_all_storages can release everything at interpreter shutdown.
|
|
@@ -528,7 +527,6 @@ clean_all_storages() noexcept
|
|
|
528
527
|
AllData::all_type_clear.clear();
|
|
529
528
|
AllData::all_type_del.clear();
|
|
530
529
|
AllData::all_register_type_weak_ref.clear();
|
|
531
|
-
AllData::all_register_type.clear();
|
|
532
530
|
AllData::store_module_self.clear();
|
|
533
531
|
}
|
|
534
532
|
|
|
@@ -3547,7 +3545,7 @@ static bool
|
|
|
3547
3545
|
is_registed_type(PyObject* type) noexcept
|
|
3548
3546
|
{
|
|
3549
3547
|
uintptr_t typ_id = (uintptr_t)type;
|
|
3550
|
-
return (AllData::
|
|
3548
|
+
return (AllData::all_register_type_weak_ref.find(typ_id) != AllData::all_register_type_weak_ref.end());
|
|
3551
3549
|
}
|
|
3552
3550
|
|
|
3553
3551
|
static PyObject* ensure_metaclass_tp(PyObject* /*self*/, PyObject* metaclass) noexcept;
|
|
@@ -4259,7 +4257,6 @@ metaclass_weakref_callback(PyObject* /*self*/, PyObject* weakref) noexcept
|
|
|
4259
4257
|
if (::AllData::weakref_type.find(weakref_id) == ::AllData::weakref_type.end()) Py_RETURN_NONE;
|
|
4260
4258
|
uintptr_t id = ::AllData::weakref_type[weakref_id];
|
|
4261
4259
|
::AllData::weakref_type.erase(weakref_id);
|
|
4262
|
-
::AllData::all_register_type.erase(id);
|
|
4263
4260
|
|
|
4264
4261
|
auto it = ::AllData::all_register_type_weak_ref.find(id);
|
|
4265
4262
|
if (it != ::AllData::all_register_type_weak_ref.end()) {
|
|
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "private_attribute_cpp"
|
|
7
|
-
version = "2.2.8"
|
|
7
|
+
version = "2.2.8.1"
|
|
8
8
|
description = "A Python package that provides a way to define private attributes in C++ implementation."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_attr_classify_owner.py
RENAMED
|
File without changes
|
{private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_class_private_attrs.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{private_attribute_cpp-2.2.8 → private_attribute_cpp-2.2.8.1}/tests/test_private_inheritance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|