private-attribute-cpp 1.4.0__tar.gz → 1.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 1.4.0
3
+ Version: 1.4.1
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
@@ -2297,7 +2297,7 @@ ensure_subclass_tp(PyTypeObject* type_instance)
2297
2297
  ensure_tp((PyTypeObject*)subclass);
2298
2298
  #else
2299
2299
  PyObject* subclass;
2300
- if (PyWeakref_GetRef(value, (PyObject**)&subclass) == 0) {
2300
+ if (PyWeakref_GetRef(value, (PyObject**)&subclass) != 1) {
2301
2301
  continue;
2302
2302
  }
2303
2303
  if (!subclass || !PyType_Check(subclass)) {
@@ -2597,7 +2597,7 @@ subtype_change_all_slots(PyTypeObject* cls, const char* name)
2597
2597
  }
2598
2598
  #else
2599
2599
  PyObject* obj;
2600
- if (PyWeakref_GetRef(value, &obj) != 0) {
2600
+ if (PyWeakref_GetRef(value, &obj) != 1) {
2601
2601
  continue;
2602
2602
  }
2603
2603
  if (!obj) {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 1.4.0
3
+ Version: 1.4.1
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
@@ -19,7 +19,7 @@ readme = open('README.md').read()
19
19
 
20
20
  setup(
21
21
  name='private_attribute_cpp',
22
- version='1.4.0',
22
+ version='1.4.1',
23
23
  author="HuangHaoHua",
24
24
  author_email="13140752715@example.com",
25
25
  description='A Python package that provides a way to define private attributes in C++ implementation.',