pyobject 1.2.8__tar.gz → 1.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.
Files changed (43) hide show
  1. {pyobject-1.2.8/pyobject.egg-info → pyobject-1.2.8.1}/PKG-INFO +1 -1
  2. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/__init__.py +1 -1
  3. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/objproxy/utils.py +3 -2
  4. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/pyobj_extension.c +1 -1
  5. {pyobject-1.2.8 → pyobject-1.2.8.1/pyobject.egg-info}/PKG-INFO +1 -1
  6. {pyobject-1.2.8 → pyobject-1.2.8.1}/LICENSE +0 -0
  7. {pyobject-1.2.8 → pyobject-1.2.8.1}/MANIFEST.in +0 -0
  8. {pyobject-1.2.8 → pyobject-1.2.8.1}/README.rst +0 -0
  9. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/browser.py +0 -0
  10. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/code_.py +0 -0
  11. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/examples/README.md +0 -0
  12. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/examples/__init__.py +0 -0
  13. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/examples/empty_cp37.pyc +0 -0
  14. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/examples/pyc_zipper_unpack.py +0 -0
  15. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/examples/pyc_zipper_zlib.py +0 -0
  16. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/examples/test_inject.py +0 -0
  17. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/back.gif +0 -0
  18. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/codeobject.gif +0 -0
  19. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/dict.gif +0 -0
  20. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/empty_dict.gif +0 -0
  21. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/empty_list.gif +0 -0
  22. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/empty_tuple.gif +0 -0
  23. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/forward.gif +0 -0
  24. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/function.gif +0 -0
  25. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/list.gif +0 -0
  26. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/number.gif +0 -0
  27. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/python.gif +0 -0
  28. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/python.ico +0 -0
  29. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/refresh.gif +0 -0
  30. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/string.gif +0 -0
  31. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/images/tuple.gif +0 -0
  32. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/objproxy/__init__.py +0 -0
  33. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/objproxy/dynobj.py +0 -0
  34. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/objproxy/optimize.py +0 -0
  35. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/other/browser_chs_locale.py +0 -0
  36. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/search.py +0 -0
  37. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject/tests/test_objproxy.py +0 -0
  38. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject.egg-info/SOURCES.txt +0 -0
  39. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject.egg-info/dependency_links.txt +0 -0
  40. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject.egg-info/requires.txt +0 -0
  41. {pyobject-1.2.8 → pyobject-1.2.8.1}/pyobject.egg-info/top_level.txt +0 -0
  42. {pyobject-1.2.8 → pyobject-1.2.8.1}/setup.cfg +0 -0
  43. {pyobject-1.2.8 → pyobject-1.2.8.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobject
3
- Version: 1.2.8
3
+ Version: 1.2.8.1
4
4
  Summary: A multifunctional all-in-one utility tool for managing internal Python objects, compatible with nearly all Python 3 versions. 一个多功能合一的提供操作Python对象底层工具的Python包, 支持几乎所有Python 3版本。
5
5
  Home-page: https://github.com/qfcy/pyobject
6
6
  Author: qfcy
@@ -6,7 +6,7 @@ import sys
6
6
  from warnings import warn
7
7
  from pprint import pprint
8
8
 
9
- __version__="1.2.8"
9
+ __version__="1.2.8.1"
10
10
 
11
11
  __all__=["objectname","bases","describe","desc"]
12
12
  _ignore_names=["__builtins__","__doc__"]
@@ -35,8 +35,9 @@ def subst_var(source, *assign_statements):
35
35
  # 代入变量的值,如replace_var("y=f(x)","x=1")返回"y=f(1)"
36
36
  replacements = {}
37
37
  for assign in assign_statements:
38
- node = ast.parse(assign, mode='exec').body[0]
39
- if not isinstance(node, ast.Assign):
38
+ body = ast.parse(assign, mode='exec').body
39
+ node = body[0] if body else None
40
+ if node is None or not isinstance(node, ast.Assign):
40
41
  raise NotAssignmentError(f"{assign} should be an assign statement")
41
42
  value = node.value
42
43
  for target in node.targets:
@@ -74,7 +74,7 @@ PyDoc_STRVAR(setrefcount_nogil_doc, u8"setrefcount_nogil(obj,ref_data)\n"
74
74
  #endif
75
75
 
76
76
  // 临时在posix禁用python 3.12+特性
77
- #ifndef WIN32
77
+ #ifndef _WIN32
78
78
  #ifdef _PY312
79
79
  #undef _PY312
80
80
  #endif
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobject
3
- Version: 1.2.8
3
+ Version: 1.2.8.1
4
4
  Summary: A multifunctional all-in-one utility tool for managing internal Python objects, compatible with nearly all Python 3 versions. 一个多功能合一的提供操作Python对象底层工具的Python包, 支持几乎所有Python 3版本。
5
5
  Home-page: https://github.com/qfcy/pyobject
6
6
  Author: qfcy
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes