private-attribute-cpp 1.3.0__tar.gz → 1.3.2__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.3.0
3
+ Version: 1.3.2
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
@@ -1930,7 +1930,7 @@ PrivateAttrType_create(PyTypeObject* type, PrivateAttrCreationData& data)
1930
1930
  return nullptr;
1931
1931
  }
1932
1932
 
1933
- PyObject* new_type = type->tp_base->tp_new(type, type_args, data.base_kwds);
1933
+ PyObject* new_type = PyType_Type.tp_new(type, type_args, data.base_kwds);
1934
1934
  Py_DECREF(type_args);
1935
1935
 
1936
1936
  if (!new_type) {
@@ -2041,7 +2041,7 @@ PrivateAttrType_postprocess(PyObject* new_type, PrivateAttrCreationData& data)
2041
2041
  std::vector<uintptr_t> mro_vector;
2042
2042
  for (Py_ssize_t i = 1; i < mro_size; i++) {
2043
2043
  PyObject* item = PyTuple_GET_ITEM(mro, i);
2044
- if (!item || !PyType_Check(item) || !PyObject_IsInstance(item, (PyObject*)&PrivateAttrType)) {
2044
+ if (!item || !PyType_Check(item) || !need_analyse_type(item)) {
2045
2045
  continue;
2046
2046
  }
2047
2047
  mro_vector.push_back((uintptr_t)item);
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 1.3.0
3
+ Version: 1.3.2
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.3.0',
22
+ version='1.3.2',
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.',