private-attribute-cpp 2.1.6__tar.gz → 2.1.7__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.
Files changed (23) hide show
  1. {private_attribute_cpp-2.1.6/private_attribute_cpp.egg-info → private_attribute_cpp-2.1.7}/PKG-INFO +1 -1
  2. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/private_attribute.cpp +6 -7
  3. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7/private_attribute_cpp.egg-info}/PKG-INFO +1 -1
  4. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/setup.py +1 -1
  5. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/LICENSE +0 -0
  6. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/MANIFEST.in +0 -0
  7. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/README.md +0 -0
  8. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/picosha2.h +0 -0
  9. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/private_attribute.pyi +0 -0
  10. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/private_attribute_cpp.egg-info/SOURCES.txt +0 -0
  11. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/private_attribute_cpp.egg-info/dependency_links.txt +0 -0
  12. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/private_attribute_cpp.egg-info/not-zip-safe +0 -0
  13. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/private_attribute_cpp.egg-info/top_level.txt +0 -0
  14. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/setup.cfg +0 -0
  15. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_attr_classify_owner.py +0 -0
  16. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_class_private_attrs.py +0 -0
  17. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_gc_collect.py +0 -0
  18. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_private_abc.py +0 -0
  19. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_private_attrs.py +0 -0
  20. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_private_func.py +0 -0
  21. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_private_inheritance.py +0 -0
  22. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_private_method.py +0 -0
  23. {private_attribute_cpp-2.1.6 → private_attribute_cpp-2.1.7}/tests/test_private_wrap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 2.1.6
3
+ Version: 2.1.7
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
@@ -1756,8 +1756,8 @@ static inquiry get_type_need_tp_clear(PyTypeObject* cls) noexcept;
1756
1756
  static int
1757
1757
  PrivateAttrType_tp_traverse(PyObject* self, visitproc visit, void* arg) noexcept
1758
1758
  {
1759
- PyTypeObject* typ = (PyTypeObject*)self;
1760
- uintptr_t typ_id = (uintptr_t)typ;
1759
+ PyTypeObject* typ = Py_TYPE(self);
1760
+ uintptr_t typ_id = (uintptr_t)self;
1761
1761
 
1762
1762
  // Re-entrancy guard: see PrivateAttrRecursionGuard above.
1763
1763
  if (!PrivateAttrRecursionGuard::try_enter((uintptr_t)self)) {
@@ -1793,9 +1793,8 @@ PrivateAttrType_tp_traverse(PyObject* self, visitproc visit, void* arg) noexcept
1793
1793
  // the visit when the metaclass is a heap type, matching subtype_traverse's
1794
1794
  // condition and avoiding the trivial/static type link.
1795
1795
  {
1796
- PyTypeObject* meta = Py_TYPE(self);
1797
- if (meta && (meta->tp_flags & Py_TPFLAGS_HEAPTYPE)) {
1798
- Py_VISIT((PyObject*)meta);
1796
+ if (typ->tp_flags & Py_TPFLAGS_HEAPTYPE) {
1797
+ Py_VISIT((PyObject*)typ);
1799
1798
  }
1800
1799
  }
1801
1800
 
@@ -1865,8 +1864,8 @@ PrivateAttrType_tp_traverse(PyObject* self, visitproc visit, void* arg) noexcept
1865
1864
  static int
1866
1865
  PrivateAttrType_tp_clear(PyObject* self) noexcept
1867
1866
  {
1868
- PyTypeObject* typ = (PyTypeObject*)self;
1869
- uintptr_t typ_id = (uintptr_t)typ;
1867
+ PyTypeObject* typ = Py_TYPE(self);
1868
+ uintptr_t typ_id = (uintptr_t)self;
1870
1869
 
1871
1870
  // Re-entrancy guard: see PrivateAttrRecursionGuard above.
1872
1871
  if (!PrivateAttrRecursionGuard::try_enter((uintptr_t)self)) {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 2.1.6
3
+ Version: 2.1.7
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
@@ -18,7 +18,7 @@ readme = open('README.md').read()
18
18
 
19
19
  setup(
20
20
  name='private_attribute_cpp',
21
- version='2.1.6',
21
+ version='2.1.7',
22
22
  author="HuangHaoHua",
23
23
  author_email="13140752715@example.com",
24
24
  description='A Python package that provides a way to define private attributes in C++ implementation.',