PyCG 0.0.7__tar.gz → 0.0.8__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 (545) hide show
  1. pycg-0.0.8/.github/workflows/linters.yml +59 -0
  2. pycg-0.0.8/.github/workflows/test.yaml +27 -0
  3. pycg-0.0.8/.gitignore +166 -0
  4. pycg-0.0.8/Makefile +10 -0
  5. {PyCG-0.0.7 → pycg-0.0.8}/PKG-INFO +9 -7
  6. pycg-0.0.8/micro-benchmark/snippets/args/assigned_call/README.md +1 -0
  7. pycg-0.0.8/micro-benchmark/snippets/args/assigned_call/callgraph.json +9 -0
  8. pycg-0.0.8/micro-benchmark/snippets/args/assigned_call/main.py +8 -0
  9. pycg-0.0.8/micro-benchmark/snippets/args/call/README.md +1 -0
  10. pycg-0.0.8/micro-benchmark/snippets/args/call/callgraph.json +9 -0
  11. pycg-0.0.8/micro-benchmark/snippets/args/call/main.py +7 -0
  12. pycg-0.0.8/micro-benchmark/snippets/args/imported_assigned_call/README.md +1 -0
  13. pycg-0.0.8/micro-benchmark/snippets/args/imported_assigned_call/callgraph.json +10 -0
  14. pycg-0.0.8/micro-benchmark/snippets/args/imported_assigned_call/main.py +7 -0
  15. pycg-0.0.8/micro-benchmark/snippets/args/imported_assigned_call/to_import.py +2 -0
  16. pycg-0.0.8/micro-benchmark/snippets/args/imported_call/README.md +1 -0
  17. pycg-0.0.8/micro-benchmark/snippets/args/imported_call/callgraph.json +10 -0
  18. pycg-0.0.8/micro-benchmark/snippets/args/imported_call/main.py +6 -0
  19. pycg-0.0.8/micro-benchmark/snippets/args/imported_call/to_import.py +2 -0
  20. pycg-0.0.8/micro-benchmark/snippets/args/nested_call/README.md +1 -0
  21. pycg-0.0.8/micro-benchmark/snippets/args/nested_call/callgraph.json +12 -0
  22. pycg-0.0.8/micro-benchmark/snippets/args/nested_call/main.py +12 -0
  23. pycg-0.0.8/micro-benchmark/snippets/args/param_call/README.md +1 -0
  24. pycg-0.0.8/micro-benchmark/snippets/args/param_call/callgraph.json +11 -0
  25. pycg-0.0.8/micro-benchmark/snippets/args/param_call/main.py +10 -0
  26. pycg-0.0.8/micro-benchmark/snippets/assignments/chained/README.md +1 -0
  27. pycg-0.0.8/micro-benchmark/snippets/assignments/chained/callgraph.json +8 -0
  28. pycg-0.0.8/micro-benchmark/snippets/assignments/chained/main.py +13 -0
  29. pycg-0.0.8/micro-benchmark/snippets/assignments/recursive_tuple/README.md +1 -0
  30. pycg-0.0.8/micro-benchmark/snippets/assignments/recursive_tuple/callgraph.json +16 -0
  31. pycg-0.0.8/micro-benchmark/snippets/assignments/recursive_tuple/main.py +31 -0
  32. pycg-0.0.8/micro-benchmark/snippets/assignments/starred/README.md +1 -0
  33. pycg-0.0.8/micro-benchmark/snippets/assignments/starred/callgraph.json +12 -0
  34. pycg-0.0.8/micro-benchmark/snippets/assignments/starred/main.py +18 -0
  35. pycg-0.0.8/micro-benchmark/snippets/assignments/tuple/README.md +1 -0
  36. pycg-0.0.8/micro-benchmark/snippets/assignments/tuple/callgraph.json +10 -0
  37. pycg-0.0.8/micro-benchmark/snippets/assignments/tuple/main.py +18 -0
  38. pycg-0.0.8/micro-benchmark/snippets/builtins/functions/README.md +1 -0
  39. pycg-0.0.8/micro-benchmark/snippets/builtins/functions/callgraph.json +6 -0
  40. pycg-0.0.8/micro-benchmark/snippets/builtins/functions/main.py +2 -0
  41. pycg-0.0.8/micro-benchmark/snippets/builtins/map/README.md +1 -0
  42. pycg-0.0.8/micro-benchmark/snippets/builtins/map/callgraph.json +15 -0
  43. pycg-0.0.8/micro-benchmark/snippets/builtins/map/main.py +19 -0
  44. pycg-0.0.8/micro-benchmark/snippets/builtins/types/README.md +1 -0
  45. pycg-0.0.8/micro-benchmark/snippets/builtins/types/callgraph.json +10 -0
  46. pycg-0.0.8/micro-benchmark/snippets/builtins/types/main.py +7 -0
  47. pycg-0.0.8/micro-benchmark/snippets/classes/assigned_call/README.md +2 -0
  48. pycg-0.0.8/micro-benchmark/snippets/classes/assigned_call/callgraph.json +6 -0
  49. pycg-0.0.8/micro-benchmark/snippets/classes/assigned_call/main.py +7 -0
  50. pycg-0.0.8/micro-benchmark/snippets/classes/assigned_self_call/README.md +3 -0
  51. pycg-0.0.8/micro-benchmark/snippets/classes/assigned_self_call/callgraph.json +9 -0
  52. pycg-0.0.8/micro-benchmark/snippets/classes/assigned_self_call/main.py +10 -0
  53. pycg-0.0.8/micro-benchmark/snippets/classes/base_class_attr/README.md +1 -0
  54. pycg-0.0.8/micro-benchmark/snippets/classes/base_class_attr/callgraph.json +8 -0
  55. pycg-0.0.8/micro-benchmark/snippets/classes/base_class_attr/main.py +12 -0
  56. pycg-0.0.8/micro-benchmark/snippets/classes/base_class_calls_child/README.md +1 -0
  57. pycg-0.0.8/micro-benchmark/snippets/classes/base_class_calls_child/callgraph.json +15 -0
  58. pycg-0.0.8/micro-benchmark/snippets/classes/base_class_calls_child/main.py +23 -0
  59. pycg-0.0.8/micro-benchmark/snippets/classes/call/README.md +1 -0
  60. pycg-0.0.8/micro-benchmark/snippets/classes/call/callgraph.json +6 -0
  61. pycg-0.0.8/micro-benchmark/snippets/classes/call/main.py +6 -0
  62. pycg-0.0.8/micro-benchmark/snippets/classes/direct_call/README.md +2 -0
  63. pycg-0.0.8/micro-benchmark/snippets/classes/direct_call/callgraph.json +8 -0
  64. pycg-0.0.8/micro-benchmark/snippets/classes/direct_call/main.py +8 -0
  65. pycg-0.0.8/micro-benchmark/snippets/classes/imported_attr_access/README.md +1 -0
  66. pycg-0.0.8/micro-benchmark/snippets/classes/imported_attr_access/callgraph.json +7 -0
  67. pycg-0.0.8/micro-benchmark/snippets/classes/imported_attr_access/main.py +3 -0
  68. pycg-0.0.8/micro-benchmark/snippets/classes/imported_attr_access/to_import.py +2 -0
  69. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call/README.md +2 -0
  70. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call/callgraph.json +9 -0
  71. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call/main.py +4 -0
  72. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call/to_import.py +6 -0
  73. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call_without_init/README.md +2 -0
  74. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call_without_init/callgraph.json +7 -0
  75. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call_without_init/main.py +4 -0
  76. pycg-0.0.8/micro-benchmark/snippets/classes/imported_call_without_init/to_import.py +3 -0
  77. pycg-0.0.8/micro-benchmark/snippets/classes/imported_nested_attr_access/README.md +2 -0
  78. pycg-0.0.8/micro-benchmark/snippets/classes/imported_nested_attr_access/callgraph.json +7 -0
  79. pycg-0.0.8/micro-benchmark/snippets/classes/imported_nested_attr_access/main.py +3 -0
  80. pycg-0.0.8/micro-benchmark/snippets/classes/imported_nested_attr_access/nest/imported.py +2 -0
  81. pycg-0.0.8/micro-benchmark/snippets/classes/nested_call/callgraph.json +9 -0
  82. pycg-0.0.8/micro-benchmark/snippets/classes/nested_call/main.py +9 -0
  83. pycg-0.0.8/micro-benchmark/snippets/classes/nested_class_calls/README.md +1 -0
  84. pycg-0.0.8/micro-benchmark/snippets/classes/nested_class_calls/callgraph.json +16 -0
  85. pycg-0.0.8/micro-benchmark/snippets/classes/nested_class_calls/main.py +21 -0
  86. pycg-0.0.8/micro-benchmark/snippets/classes/parameter_call/README.md +1 -0
  87. pycg-0.0.8/micro-benchmark/snippets/classes/parameter_call/callgraph.json +12 -0
  88. pycg-0.0.8/micro-benchmark/snippets/classes/parameter_call/main.py +12 -0
  89. pycg-0.0.8/micro-benchmark/snippets/classes/return_call/README.md +1 -0
  90. pycg-0.0.8/micro-benchmark/snippets/classes/return_call/callgraph.json +8 -0
  91. pycg-0.0.8/micro-benchmark/snippets/classes/return_call/main.py +10 -0
  92. pycg-0.0.8/micro-benchmark/snippets/classes/return_call_direct/README.md +1 -0
  93. pycg-0.0.8/micro-benchmark/snippets/classes/return_call_direct/callgraph.json +8 -0
  94. pycg-0.0.8/micro-benchmark/snippets/classes/return_call_direct/main.py +9 -0
  95. pycg-0.0.8/micro-benchmark/snippets/classes/self_assign_func/README.md +1 -0
  96. pycg-0.0.8/micro-benchmark/snippets/classes/self_assign_func/callgraph.json +11 -0
  97. pycg-0.0.8/micro-benchmark/snippets/classes/self_assign_func/main.py +16 -0
  98. pycg-0.0.8/micro-benchmark/snippets/classes/self_assignment/README.md +1 -0
  99. pycg-0.0.8/micro-benchmark/snippets/classes/self_assignment/callgraph.json +11 -0
  100. pycg-0.0.8/micro-benchmark/snippets/classes/self_assignment/main.py +12 -0
  101. pycg-0.0.8/micro-benchmark/snippets/classes/self_call/README.md +1 -0
  102. pycg-0.0.8/micro-benchmark/snippets/classes/self_call/callgraph.json +13 -0
  103. pycg-0.0.8/micro-benchmark/snippets/classes/self_call/main.py +13 -0
  104. pycg-0.0.8/micro-benchmark/snippets/classes/static_method_call/README.md +1 -0
  105. pycg-0.0.8/micro-benchmark/snippets/classes/static_method_call/callgraph.json +6 -0
  106. pycg-0.0.8/micro-benchmark/snippets/classes/static_method_call/main.py +6 -0
  107. pycg-0.0.8/micro-benchmark/snippets/classes/super_class_return/README.md +1 -0
  108. pycg-0.0.8/micro-benchmark/snippets/classes/super_class_return/callgraph.json +8 -0
  109. pycg-0.0.8/micro-benchmark/snippets/classes/super_class_return/main.py +11 -0
  110. pycg-0.0.8/micro-benchmark/snippets/classes/tuple_assignment/README.md +1 -0
  111. pycg-0.0.8/micro-benchmark/snippets/classes/tuple_assignment/callgraph.json +14 -0
  112. pycg-0.0.8/micro-benchmark/snippets/classes/tuple_assignment/main.py +24 -0
  113. pycg-0.0.8/micro-benchmark/snippets/decorators/assigned/README.md +1 -0
  114. pycg-0.0.8/micro-benchmark/snippets/decorators/assigned/callgraph.json +9 -0
  115. pycg-0.0.8/micro-benchmark/snippets/decorators/assigned/main.py +14 -0
  116. pycg-0.0.8/micro-benchmark/snippets/decorators/call/README.md +1 -0
  117. pycg-0.0.8/micro-benchmark/snippets/decorators/call/callgraph.json +8 -0
  118. pycg-0.0.8/micro-benchmark/snippets/decorators/call/main.py +8 -0
  119. pycg-0.0.8/micro-benchmark/snippets/decorators/nested/README.md +1 -0
  120. pycg-0.0.8/micro-benchmark/snippets/decorators/nested/callgraph.json +11 -0
  121. pycg-0.0.8/micro-benchmark/snippets/decorators/nested/main.py +12 -0
  122. pycg-0.0.8/micro-benchmark/snippets/decorators/nested_decorators/README.md +2 -0
  123. pycg-0.0.8/micro-benchmark/snippets/decorators/nested_decorators/callgraph.json +17 -0
  124. pycg-0.0.8/micro-benchmark/snippets/decorators/nested_decorators/main.py +17 -0
  125. pycg-0.0.8/micro-benchmark/snippets/decorators/param_call/README.md +1 -0
  126. pycg-0.0.8/micro-benchmark/snippets/decorators/param_call/callgraph.json +10 -0
  127. pycg-0.0.8/micro-benchmark/snippets/decorators/param_call/main.py +9 -0
  128. pycg-0.0.8/micro-benchmark/snippets/decorators/return/README.md +1 -0
  129. pycg-0.0.8/micro-benchmark/snippets/decorators/return/callgraph.json +10 -0
  130. pycg-0.0.8/micro-benchmark/snippets/decorators/return/main.py +11 -0
  131. pycg-0.0.8/micro-benchmark/snippets/decorators/return_different_func/README.md +4 -0
  132. pycg-0.0.8/micro-benchmark/snippets/decorators/return_different_func/callgraph.json +14 -0
  133. pycg-0.0.8/micro-benchmark/snippets/decorators/return_different_func/main.py +14 -0
  134. pycg-0.0.8/micro-benchmark/snippets/dicts/add_key/README.md +1 -0
  135. pycg-0.0.8/micro-benchmark/snippets/dicts/add_key/callgraph.json +6 -0
  136. pycg-0.0.8/micro-benchmark/snippets/dicts/add_key/main.py +7 -0
  137. pycg-0.0.8/micro-benchmark/snippets/dicts/assign/README.md +1 -0
  138. pycg-0.0.8/micro-benchmark/snippets/dicts/assign/callgraph.json +7 -0
  139. pycg-0.0.8/micro-benchmark/snippets/dicts/assign/main.py +13 -0
  140. pycg-0.0.8/micro-benchmark/snippets/dicts/call/README.md +1 -0
  141. pycg-0.0.8/micro-benchmark/snippets/dicts/call/callgraph.json +8 -0
  142. pycg-0.0.8/micro-benchmark/snippets/dicts/call/main.py +14 -0
  143. pycg-0.0.8/micro-benchmark/snippets/dicts/ext_key/README.md +2 -0
  144. pycg-0.0.8/micro-benchmark/snippets/dicts/ext_key/callgraph.json +7 -0
  145. pycg-0.0.8/micro-benchmark/snippets/dicts/ext_key/ext.py +1 -0
  146. pycg-0.0.8/micro-benchmark/snippets/dicts/ext_key/main.py +8 -0
  147. pycg-0.0.8/micro-benchmark/snippets/dicts/nested/README.md +1 -0
  148. pycg-0.0.8/micro-benchmark/snippets/dicts/nested/callgraph.json +7 -0
  149. pycg-0.0.8/micro-benchmark/snippets/dicts/nested/main.py +15 -0
  150. pycg-0.0.8/micro-benchmark/snippets/dicts/new_key_param/README.md +1 -0
  151. pycg-0.0.8/micro-benchmark/snippets/dicts/new_key_param/callgraph.json +8 -0
  152. pycg-0.0.8/micro-benchmark/snippets/dicts/new_key_param/main.py +10 -0
  153. pycg-0.0.8/micro-benchmark/snippets/dicts/param/README.md +1 -0
  154. pycg-0.0.8/micro-benchmark/snippets/dicts/param/callgraph.json +9 -0
  155. pycg-0.0.8/micro-benchmark/snippets/dicts/param/main.py +9 -0
  156. pycg-0.0.8/micro-benchmark/snippets/dicts/param_key/README.md +1 -0
  157. pycg-0.0.8/micro-benchmark/snippets/dicts/param_key/callgraph.json +11 -0
  158. pycg-0.0.8/micro-benchmark/snippets/dicts/param_key/main.py +16 -0
  159. pycg-0.0.8/micro-benchmark/snippets/dicts/return/README.md +1 -0
  160. pycg-0.0.8/micro-benchmark/snippets/dicts/return/callgraph.json +8 -0
  161. pycg-0.0.8/micro-benchmark/snippets/dicts/return/main.py +9 -0
  162. pycg-0.0.8/micro-benchmark/snippets/dicts/return_assign/README.md +1 -0
  163. pycg-0.0.8/micro-benchmark/snippets/dicts/return_assign/callgraph.json +8 -0
  164. pycg-0.0.8/micro-benchmark/snippets/dicts/return_assign/main.py +9 -0
  165. pycg-0.0.8/micro-benchmark/snippets/dicts/type_coercion/README.md +1 -0
  166. pycg-0.0.8/micro-benchmark/snippets/dicts/type_coercion/callgraph.json +7 -0
  167. pycg-0.0.8/micro-benchmark/snippets/dicts/type_coercion/main.py +9 -0
  168. pycg-0.0.8/micro-benchmark/snippets/dicts/update/README.md +1 -0
  169. pycg-0.0.8/micro-benchmark/snippets/dicts/update/callgraph.json +7 -0
  170. pycg-0.0.8/micro-benchmark/snippets/dicts/update/main.py +10 -0
  171. pycg-0.0.8/micro-benchmark/snippets/direct_calls/assigned_call/README.md +1 -0
  172. pycg-0.0.8/micro-benchmark/snippets/direct_calls/assigned_call/callgraph.json +8 -0
  173. pycg-0.0.8/micro-benchmark/snippets/direct_calls/assigned_call/main.py +9 -0
  174. pycg-0.0.8/micro-benchmark/snippets/direct_calls/imported_return_call/README.md +1 -0
  175. pycg-0.0.8/micro-benchmark/snippets/direct_calls/imported_return_call/callgraph.json +9 -0
  176. pycg-0.0.8/micro-benchmark/snippets/direct_calls/imported_return_call/main.py +3 -0
  177. pycg-0.0.8/micro-benchmark/snippets/direct_calls/imported_return_call/to_import.py +5 -0
  178. pycg-0.0.8/micro-benchmark/snippets/direct_calls/return_call/README.md +1 -0
  179. pycg-0.0.8/micro-benchmark/snippets/direct_calls/return_call/callgraph.json +10 -0
  180. pycg-0.0.8/micro-benchmark/snippets/direct_calls/return_call/main.py +10 -0
  181. pycg-0.0.8/micro-benchmark/snippets/direct_calls/with_parameters/README.md +2 -0
  182. pycg-0.0.8/micro-benchmark/snippets/direct_calls/with_parameters/callgraph.json +10 -0
  183. pycg-0.0.8/micro-benchmark/snippets/direct_calls/with_parameters/main.py +10 -0
  184. pycg-0.0.8/micro-benchmark/snippets/dynamic/eval/README.md +1 -0
  185. pycg-0.0.8/micro-benchmark/snippets/dynamic/eval/callgraph.json +9 -0
  186. pycg-0.0.8/micro-benchmark/snippets/dynamic/eval/main.py +4 -0
  187. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise/README.md +1 -0
  188. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise/callgraph.json +6 -0
  189. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise/main.py +5 -0
  190. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise_assigned/README.md +1 -0
  191. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise_assigned/callgraph.json +6 -0
  192. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise_assigned/main.py +6 -0
  193. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise_attr/README.md +1 -0
  194. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise_attr/callgraph.json +6 -0
  195. pycg-0.0.8/micro-benchmark/snippets/exceptions/raise_attr/main.py +6 -0
  196. pycg-0.0.8/micro-benchmark/snippets/external/attribute/README.md +1 -0
  197. pycg-0.0.8/micro-benchmark/snippets/external/attribute/callgraph.json +8 -0
  198. pycg-0.0.8/micro-benchmark/snippets/external/attribute/main.py +4 -0
  199. pycg-0.0.8/micro-benchmark/snippets/external/attribute_assigned/README.md +1 -0
  200. pycg-0.0.8/micro-benchmark/snippets/external/attribute_assigned/callgraph.json +11 -0
  201. pycg-0.0.8/micro-benchmark/snippets/external/attribute_assigned/main.py +8 -0
  202. pycg-0.0.8/micro-benchmark/snippets/external/cls_parent/README.md +1 -0
  203. pycg-0.0.8/micro-benchmark/snippets/external/cls_parent/callgraph.json +11 -0
  204. pycg-0.0.8/micro-benchmark/snippets/external/cls_parent/main.py +8 -0
  205. pycg-0.0.8/micro-benchmark/snippets/external/function/README.md +1 -0
  206. pycg-0.0.8/micro-benchmark/snippets/external/function/callgraph.json +6 -0
  207. pycg-0.0.8/micro-benchmark/snippets/external/function/main.py +3 -0
  208. pycg-0.0.8/micro-benchmark/snippets/external/function_asname/README.md +1 -0
  209. pycg-0.0.8/micro-benchmark/snippets/external/function_asname/callgraph.json +6 -0
  210. pycg-0.0.8/micro-benchmark/snippets/external/function_asname/main.py +3 -0
  211. pycg-0.0.8/micro-benchmark/snippets/external/function_assigned/README.md +1 -0
  212. pycg-0.0.8/micro-benchmark/snippets/external/function_assigned/callgraph.json +6 -0
  213. pycg-0.0.8/micro-benchmark/snippets/external/function_assigned/main.py +5 -0
  214. pycg-0.0.8/micro-benchmark/snippets/functions/assigned_call/README.md +1 -0
  215. pycg-0.0.8/micro-benchmark/snippets/functions/assigned_call/callgraph.json +6 -0
  216. pycg-0.0.8/micro-benchmark/snippets/functions/assigned_call/main.py +5 -0
  217. pycg-0.0.8/micro-benchmark/snippets/functions/assigned_call_lit_param/README.md +1 -0
  218. pycg-0.0.8/micro-benchmark/snippets/functions/assigned_call_lit_param/callgraph.json +6 -0
  219. pycg-0.0.8/micro-benchmark/snippets/functions/assigned_call_lit_param/main.py +6 -0
  220. pycg-0.0.8/micro-benchmark/snippets/functions/call/README.md +1 -0
  221. pycg-0.0.8/micro-benchmark/snippets/functions/call/callgraph.json +6 -0
  222. pycg-0.0.8/micro-benchmark/snippets/functions/call/main.py +4 -0
  223. pycg-0.0.8/micro-benchmark/snippets/functions/imported_call/README.md +1 -0
  224. pycg-0.0.8/micro-benchmark/snippets/functions/imported_call/callgraph.json +7 -0
  225. pycg-0.0.8/micro-benchmark/snippets/functions/imported_call/main.py +4 -0
  226. pycg-0.0.8/micro-benchmark/snippets/functions/imported_call/to_import.py +2 -0
  227. pycg-0.0.8/micro-benchmark/snippets/generators/iter_param/README.md +1 -0
  228. pycg-0.0.8/micro-benchmark/snippets/generators/iter_param/callgraph.json +13 -0
  229. pycg-0.0.8/micro-benchmark/snippets/generators/iter_param/main.py +21 -0
  230. pycg-0.0.8/micro-benchmark/snippets/generators/iter_return/README.md +1 -0
  231. pycg-0.0.8/micro-benchmark/snippets/generators/iter_return/callgraph.json +12 -0
  232. pycg-0.0.8/micro-benchmark/snippets/generators/iter_return/main.py +21 -0
  233. pycg-0.0.8/micro-benchmark/snippets/generators/iterable/README.md +1 -0
  234. pycg-0.0.8/micro-benchmark/snippets/generators/iterable/callgraph.json +13 -0
  235. pycg-0.0.8/micro-benchmark/snippets/generators/iterable/main.py +17 -0
  236. pycg-0.0.8/micro-benchmark/snippets/generators/iterable_assigned/README.md +1 -0
  237. pycg-0.0.8/micro-benchmark/snippets/generators/iterable_assigned/callgraph.json +10 -0
  238. pycg-0.0.8/micro-benchmark/snippets/generators/iterable_assigned/main.py +20 -0
  239. pycg-0.0.8/micro-benchmark/snippets/generators/no_iter/README.md +1 -0
  240. pycg-0.0.8/micro-benchmark/snippets/generators/no_iter/callgraph.json +8 -0
  241. pycg-0.0.8/micro-benchmark/snippets/generators/no_iter/main.py +17 -0
  242. pycg-0.0.8/micro-benchmark/snippets/generators/yield/README.md +1 -0
  243. pycg-0.0.8/micro-benchmark/snippets/generators/yield/callgraph.json +8 -0
  244. pycg-0.0.8/micro-benchmark/snippets/generators/yield/main.py +11 -0
  245. pycg-0.0.8/micro-benchmark/snippets/imports/chained_import/README.md +2 -0
  246. pycg-0.0.8/micro-benchmark/snippets/imports/chained_import/callgraph.json +11 -0
  247. pycg-0.0.8/micro-benchmark/snippets/imports/chained_import/chained_import.py +2 -0
  248. pycg-0.0.8/micro-benchmark/snippets/imports/chained_import/from_import.py +4 -0
  249. pycg-0.0.8/micro-benchmark/snippets/imports/chained_import/main.py +3 -0
  250. pycg-0.0.8/micro-benchmark/snippets/imports/import_all/README.md +1 -0
  251. pycg-0.0.8/micro-benchmark/snippets/imports/import_all/callgraph.json +9 -0
  252. pycg-0.0.8/micro-benchmark/snippets/imports/import_all/from_module.py +5 -0
  253. pycg-0.0.8/micro-benchmark/snippets/imports/import_all/main.py +4 -0
  254. pycg-0.0.8/micro-benchmark/snippets/imports/import_as/README.md +1 -0
  255. pycg-0.0.8/micro-benchmark/snippets/imports/import_as/callgraph.json +6 -0
  256. pycg-0.0.8/micro-benchmark/snippets/imports/import_as/main.py +4 -0
  257. pycg-0.0.8/micro-benchmark/snippets/imports/import_as/to_import.py +2 -0
  258. pycg-0.0.8/micro-benchmark/snippets/imports/import_from/README.md +1 -0
  259. pycg-0.0.8/micro-benchmark/snippets/imports/import_from/callgraph.json +7 -0
  260. pycg-0.0.8/micro-benchmark/snippets/imports/import_from/from_module.py +2 -0
  261. pycg-0.0.8/micro-benchmark/snippets/imports/import_from/main.py +3 -0
  262. pycg-0.0.8/micro-benchmark/snippets/imports/init_func_import/README.md +1 -0
  263. pycg-0.0.8/micro-benchmark/snippets/imports/init_func_import/callgraph.json +10 -0
  264. pycg-0.0.8/micro-benchmark/snippets/imports/init_func_import/main.py +4 -0
  265. pycg-0.0.8/micro-benchmark/snippets/imports/init_func_import/nested/__init__.py +4 -0
  266. pycg-0.0.8/micro-benchmark/snippets/imports/init_func_import/nested/mod.py +2 -0
  267. pycg-0.0.8/micro-benchmark/snippets/imports/init_import/README.md +2 -0
  268. pycg-0.0.8/micro-benchmark/snippets/imports/init_import/callgraph.json +8 -0
  269. pycg-0.0.8/micro-benchmark/snippets/imports/init_import/main.py +3 -0
  270. pycg-0.0.8/micro-benchmark/snippets/imports/init_import/nested/__init__.py +1 -0
  271. pycg-0.0.8/micro-benchmark/snippets/imports/init_import/nested/nested.py +5 -0
  272. pycg-0.0.8/micro-benchmark/snippets/imports/parent_import/README.md +1 -0
  273. pycg-0.0.8/micro-benchmark/snippets/imports/parent_import/callgraph.json +9 -0
  274. pycg-0.0.8/micro-benchmark/snippets/imports/parent_import/main.py +4 -0
  275. pycg-0.0.8/micro-benchmark/snippets/imports/parent_import/nested/to_import.py +4 -0
  276. pycg-0.0.8/micro-benchmark/snippets/imports/parent_import/to_import2.py +2 -0
  277. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import/README.md +2 -0
  278. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import/callgraph.json +6 -0
  279. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import/main.py +4 -0
  280. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import/to_import.py +2 -0
  281. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/README.md +1 -0
  282. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/__init__.py +0 -0
  283. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/callgraph.json +12 -0
  284. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/main.py +3 -0
  285. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/nested/__init__.py +0 -0
  286. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/nested/relative.py +2 -0
  287. pycg-0.0.8/micro-benchmark/snippets/imports/relative_import_with_name/nested/to_import.py +4 -0
  288. pycg-0.0.8/micro-benchmark/snippets/imports/simple_import/README.md +1 -0
  289. pycg-0.0.8/micro-benchmark/snippets/imports/simple_import/callgraph.json +6 -0
  290. pycg-0.0.8/micro-benchmark/snippets/imports/simple_import/main.py +4 -0
  291. pycg-0.0.8/micro-benchmark/snippets/imports/simple_import/to_import.py +2 -0
  292. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import/README.md +3 -0
  293. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import/callgraph.json +8 -0
  294. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import/main.py +4 -0
  295. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import/to_import/__init__.py +2 -0
  296. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import/to_import/to_import.py +2 -0
  297. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_all/README.md +1 -0
  298. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_all/callgraph.json +10 -0
  299. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_all/from_module/__init__.py +0 -0
  300. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_all/from_module/nested_module.py +5 -0
  301. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_all/main.py +4 -0
  302. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_as/README.md +1 -0
  303. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_as/callgraph.json +8 -0
  304. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_as/main.py +4 -0
  305. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_as/to_import/__init__.py +2 -0
  306. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_as/to_import/to_import.py +2 -0
  307. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_from/README.md +1 -0
  308. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_from/callgraph.json +10 -0
  309. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_from/from_module/__init__.py +0 -0
  310. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_from/from_module/nested_module.py +5 -0
  311. pycg-0.0.8/micro-benchmark/snippets/imports/submodule_import_from/main.py +4 -0
  312. pycg-0.0.8/micro-benchmark/snippets/kwargs/assigned_call/README.md +1 -0
  313. pycg-0.0.8/micro-benchmark/snippets/kwargs/assigned_call/callgraph.json +9 -0
  314. pycg-0.0.8/micro-benchmark/snippets/kwargs/assigned_call/main.py +9 -0
  315. pycg-0.0.8/micro-benchmark/snippets/kwargs/call/README.md +1 -0
  316. pycg-0.0.8/micro-benchmark/snippets/kwargs/call/callgraph.json +13 -0
  317. pycg-0.0.8/micro-benchmark/snippets/kwargs/call/main.py +15 -0
  318. pycg-0.0.8/micro-benchmark/snippets/kwargs/chained_call/README.md +3 -0
  319. pycg-0.0.8/micro-benchmark/snippets/kwargs/chained_call/callgraph.json +13 -0
  320. pycg-0.0.8/micro-benchmark/snippets/kwargs/chained_call/main.py +10 -0
  321. pycg-0.0.8/micro-benchmark/snippets/lambdas/call/README.md +1 -0
  322. pycg-0.0.8/micro-benchmark/snippets/lambdas/call/callgraph.json +6 -0
  323. pycg-0.0.8/micro-benchmark/snippets/lambdas/call/main.py +3 -0
  324. pycg-0.0.8/micro-benchmark/snippets/lambdas/calls_parameter/README.md +1 -0
  325. pycg-0.0.8/micro-benchmark/snippets/lambdas/calls_parameter/callgraph.json +11 -0
  326. pycg-0.0.8/micro-benchmark/snippets/lambdas/calls_parameter/main.py +10 -0
  327. pycg-0.0.8/micro-benchmark/snippets/lambdas/chained_calls/README.md +1 -0
  328. pycg-0.0.8/micro-benchmark/snippets/lambdas/chained_calls/callgraph.json +19 -0
  329. pycg-0.0.8/micro-benchmark/snippets/lambdas/chained_calls/main.py +12 -0
  330. pycg-0.0.8/micro-benchmark/snippets/lambdas/parameter_call/README.md +1 -0
  331. pycg-0.0.8/micro-benchmark/snippets/lambdas/parameter_call/callgraph.json +9 -0
  332. pycg-0.0.8/micro-benchmark/snippets/lambdas/parameter_call/main.py +6 -0
  333. pycg-0.0.8/micro-benchmark/snippets/lambdas/return_call/README.md +1 -0
  334. pycg-0.0.8/micro-benchmark/snippets/lambdas/return_call/callgraph.json +8 -0
  335. pycg-0.0.8/micro-benchmark/snippets/lambdas/return_call/main.py +5 -0
  336. pycg-0.0.8/micro-benchmark/snippets/lists/comprehension_if/README.md +1 -0
  337. pycg-0.0.8/micro-benchmark/snippets/lists/comprehension_if/callgraph.json +8 -0
  338. pycg-0.0.8/micro-benchmark/snippets/lists/comprehension_if/main.py +4 -0
  339. pycg-0.0.8/micro-benchmark/snippets/lists/comprehension_val/README.md +1 -0
  340. pycg-0.0.8/micro-benchmark/snippets/lists/comprehension_val/callgraph.json +8 -0
  341. pycg-0.0.8/micro-benchmark/snippets/lists/comprehension_val/main.py +4 -0
  342. pycg-0.0.8/micro-benchmark/snippets/lists/ext_index/README.md +1 -0
  343. pycg-0.0.8/micro-benchmark/snippets/lists/ext_index/callgraph.json +8 -0
  344. pycg-0.0.8/micro-benchmark/snippets/lists/ext_index/ext.py +1 -0
  345. pycg-0.0.8/micro-benchmark/snippets/lists/ext_index/main.py +11 -0
  346. pycg-0.0.8/micro-benchmark/snippets/lists/nested/README.md +1 -0
  347. pycg-0.0.8/micro-benchmark/snippets/lists/nested/callgraph.json +7 -0
  348. pycg-0.0.8/micro-benchmark/snippets/lists/nested/main.py +9 -0
  349. pycg-0.0.8/micro-benchmark/snippets/lists/nested_comprehension/README.md +1 -0
  350. pycg-0.0.8/micro-benchmark/snippets/lists/nested_comprehension/callgraph.json +10 -0
  351. pycg-0.0.8/micro-benchmark/snippets/lists/nested_comprehension/main.py +7 -0
  352. pycg-0.0.8/micro-benchmark/snippets/lists/param_index/README.md +1 -0
  353. pycg-0.0.8/micro-benchmark/snippets/lists/param_index/callgraph.json +9 -0
  354. pycg-0.0.8/micro-benchmark/snippets/lists/param_index/main.py +9 -0
  355. pycg-0.0.8/micro-benchmark/snippets/lists/simple/README.md +1 -0
  356. pycg-0.0.8/micro-benchmark/snippets/lists/simple/callgraph.json +12 -0
  357. pycg-0.0.8/micro-benchmark/snippets/lists/simple/main.py +22 -0
  358. pycg-0.0.8/micro-benchmark/snippets/lists/slice/README.md +1 -0
  359. pycg-0.0.8/micro-benchmark/snippets/lists/slice/callgraph.json +8 -0
  360. pycg-0.0.8/micro-benchmark/snippets/lists/slice/main.py +14 -0
  361. pycg-0.0.8/micro-benchmark/snippets/mro/basic/README.md +1 -0
  362. pycg-0.0.8/micro-benchmark/snippets/mro/basic/callgraph.json +6 -0
  363. pycg-0.0.8/micro-benchmark/snippets/mro/basic/main.py +9 -0
  364. pycg-0.0.8/micro-benchmark/snippets/mro/basic_init/README.md +2 -0
  365. pycg-0.0.8/micro-benchmark/snippets/mro/basic_init/callgraph.json +8 -0
  366. pycg-0.0.8/micro-benchmark/snippets/mro/basic_init/main.py +10 -0
  367. pycg-0.0.8/micro-benchmark/snippets/mro/parents_same_superclass/README.md +12 -0
  368. pycg-0.0.8/micro-benchmark/snippets/mro/parents_same_superclass/callgraph.json +9 -0
  369. pycg-0.0.8/micro-benchmark/snippets/mro/parents_same_superclass/main.py +19 -0
  370. pycg-0.0.8/micro-benchmark/snippets/mro/self_assignment/README.md +1 -0
  371. pycg-0.0.8/micro-benchmark/snippets/mro/self_assignment/callgraph.json +12 -0
  372. pycg-0.0.8/micro-benchmark/snippets/mro/self_assignment/main.py +20 -0
  373. pycg-0.0.8/micro-benchmark/snippets/mro/super_call/README.md +1 -0
  374. pycg-0.0.8/micro-benchmark/snippets/mro/super_call/callgraph.json +15 -0
  375. pycg-0.0.8/micro-benchmark/snippets/mro/super_call/main.py +13 -0
  376. pycg-0.0.8/micro-benchmark/snippets/mro/two_parents/README.md +2 -0
  377. pycg-0.0.8/micro-benchmark/snippets/mro/two_parents/callgraph.json +9 -0
  378. pycg-0.0.8/micro-benchmark/snippets/mro/two_parents/main.py +16 -0
  379. pycg-0.0.8/micro-benchmark/snippets/mro/two_parents_method_defined/README.md +2 -0
  380. pycg-0.0.8/micro-benchmark/snippets/mro/two_parents_method_defined/callgraph.json +10 -0
  381. pycg-0.0.8/micro-benchmark/snippets/mro/two_parents_method_defined/main.py +17 -0
  382. pycg-0.0.8/micro-benchmark/snippets/returns/call/README.md +1 -0
  383. pycg-0.0.8/micro-benchmark/snippets/returns/call/callgraph.json +8 -0
  384. pycg-0.0.8/micro-benchmark/snippets/returns/call/main.py +8 -0
  385. pycg-0.0.8/micro-benchmark/snippets/returns/imported_call/README.md +1 -0
  386. pycg-0.0.8/micro-benchmark/snippets/returns/imported_call/callgraph.json +9 -0
  387. pycg-0.0.8/micro-benchmark/snippets/returns/imported_call/main.py +4 -0
  388. pycg-0.0.8/micro-benchmark/snippets/returns/imported_call/to_import.py +5 -0
  389. pycg-0.0.8/micro-benchmark/snippets/returns/nested_import_call/README.md +1 -0
  390. pycg-0.0.8/micro-benchmark/snippets/returns/nested_import_call/callgraph.json +10 -0
  391. pycg-0.0.8/micro-benchmark/snippets/returns/nested_import_call/main.py +4 -0
  392. pycg-0.0.8/micro-benchmark/snippets/returns/nested_import_call/to_import.py +4 -0
  393. pycg-0.0.8/micro-benchmark/snippets/returns/nested_import_call/to_import2.py +2 -0
  394. pycg-0.0.8/micro-benchmark/snippets/returns/return_complex/README.md +1 -0
  395. pycg-0.0.8/micro-benchmark/snippets/returns/return_complex/callgraph.json +17 -0
  396. pycg-0.0.8/micro-benchmark/snippets/returns/return_complex/main.py +21 -0
  397. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/chained/README.md +1 -0
  398. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/chained/key_errs.json +14 -0
  399. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/chained/main.py +6 -0
  400. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/recursive_tuple/README.md +1 -0
  401. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/recursive_tuple/key_errs.json +8 -0
  402. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/recursive_tuple/main.py +7 -0
  403. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/starred/README.md +1 -0
  404. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/starred/key_errs.json +14 -0
  405. pycg-0.0.8/micro-benchmark-key-errs/snippets/assignments/starred/main.py +8 -0
  406. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/assigned_str/README.md +2 -0
  407. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/assigned_str/key_errs.json +8 -0
  408. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/assigned_str/main.py +7 -0
  409. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/base_class_const/README.md +1 -0
  410. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/base_class_const/key_errs.json +8 -0
  411. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/base_class_const/main.py +11 -0
  412. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/return_str/README.md +2 -0
  413. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/return_str/key_errs.json +8 -0
  414. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/return_str/main.py +8 -0
  415. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_assignment/README.md +2 -0
  416. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_assignment/key_errs.json +8 -0
  417. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_assignment/main.py +8 -0
  418. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_const/README.md +1 -0
  419. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_const/key_errs.json +8 -0
  420. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_const/main.py +9 -0
  421. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_dict/README.md +1 -0
  422. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_dict/key_errs.json +8 -0
  423. pycg-0.0.8/micro-benchmark-key-errs/snippets/classes/self_dict/main.py +7 -0
  424. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/add_key/README.md +1 -0
  425. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/add_key/key_errs.json +8 -0
  426. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/add_key/main.py +5 -0
  427. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/ext_key/README.md +1 -0
  428. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/ext_key/ext.py +1 -0
  429. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/ext_key/key_errs.json +8 -0
  430. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/ext_key/main.py +4 -0
  431. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/mutable_param/README.md +2 -0
  432. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/mutable_param/key_errs.json +8 -0
  433. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/mutable_param/main.py +7 -0
  434. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/nested/README.md +1 -0
  435. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/nested/key_errs.json +14 -0
  436. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/nested/main.py +9 -0
  437. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/return/README.md +1 -0
  438. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/return/key_errs.json +8 -0
  439. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/return/main.py +6 -0
  440. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/return_direct/README.md +1 -0
  441. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/return_direct/key_errs.json +8 -0
  442. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/return_direct/main.py +5 -0
  443. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/simple/README.md +1 -0
  444. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/simple/key_errs.json +8 -0
  445. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/simple/main.py +3 -0
  446. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/type_coercion/README.md +1 -0
  447. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/type_coercion/key_errs.json +8 -0
  448. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/type_coercion/main.py +3 -0
  449. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/update/README.md +1 -0
  450. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/update/key_errs.json +1 -0
  451. pycg-0.0.8/micro-benchmark-key-errs/snippets/dicts/update/main.py +3 -0
  452. pycg-0.0.8/micro-benchmark-key-errs/snippets/kwargs/assigned_call/README.md +2 -0
  453. pycg-0.0.8/micro-benchmark-key-errs/snippets/kwargs/assigned_call/key_errs.json +8 -0
  454. pycg-0.0.8/micro-benchmark-key-errs/snippets/kwargs/assigned_call/main.py +8 -0
  455. pycg-0.0.8/micro-benchmark-key-errs/snippets/kwargs/call/README.md +2 -0
  456. pycg-0.0.8/micro-benchmark-key-errs/snippets/kwargs/call/key_errs.json +8 -0
  457. pycg-0.0.8/micro-benchmark-key-errs/snippets/kwargs/call/main.py +7 -0
  458. pycg-0.0.8/micro-benchmark-key-errs/snippets/lists/comprehension/README.md +1 -0
  459. pycg-0.0.8/micro-benchmark-key-errs/snippets/lists/comprehension/key_errs.json +8 -0
  460. pycg-0.0.8/micro-benchmark-key-errs/snippets/lists/comprehension/main.py +3 -0
  461. pycg-0.0.8/micro-benchmark-key-errs/snippets/lists/list_str/README.md +1 -0
  462. pycg-0.0.8/micro-benchmark-key-errs/snippets/lists/list_str/key_errs.json +8 -0
  463. pycg-0.0.8/micro-benchmark-key-errs/snippets/lists/list_str/main.py +5 -0
  464. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/assigned_call/README.md +2 -0
  465. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/assigned_call/key_errs.json +8 -0
  466. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/assigned_call/main.py +8 -0
  467. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/call/README.md +2 -0
  468. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/call/key_errs.json +8 -0
  469. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/call/main.py +7 -0
  470. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/imported_assigned_call/README.md +1 -0
  471. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/imported_assigned_call/key_errs.json +8 -0
  472. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/imported_assigned_call/main.py +11 -0
  473. pycg-0.0.8/micro-benchmark-key-errs/snippets/parameters/imported_assigned_call/to_import.py +2 -0
  474. pycg-0.0.8/pycg/__init__.py +0 -0
  475. {PyCG-0.0.7 → pycg-0.0.8}/pycg/formats/fasten.py +3 -3
  476. pycg-0.0.8/pycg/machinery/__init__.py +0 -0
  477. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/key_err.py +3 -3
  478. pycg-0.0.8/pycg/processing/__init__.py +0 -0
  479. {PyCG-0.0.7 → pycg-0.0.8}/pycg/pycg.py +3 -3
  480. pycg-0.0.8/pycg/tests/base.py +25 -0
  481. pycg-0.0.8/pycg/tests/callgraph_test.py +87 -0
  482. pycg-0.0.8/pycg/tests/definitions_test.py +90 -0
  483. pycg-0.0.8/pycg/tests/fasten_format_test.py +319 -0
  484. pycg-0.0.8/pycg/tests/imports_test.py +189 -0
  485. pycg-0.0.8/pycg/tests/pointers_test.py +112 -0
  486. pycg-0.0.8/pycg/tests/scopes_test.py +217 -0
  487. {PyCG-0.0.7 → pycg-0.0.8}/pyproject.toml +17 -1
  488. pycg-0.0.8/requirements-dev.txt +4 -0
  489. {PyCG-0.0.7 → pycg-0.0.8}/setup.cfg +0 -5
  490. {PyCG-0.0.7 → pycg-0.0.8}/setup.py +1 -1
  491. pycg-0.0.8/setup_devenv.sh +148 -0
  492. PyCG-0.0.7/PyCG.egg-info/PKG-INFO +0 -159
  493. PyCG-0.0.7/PyCG.egg-info/SOURCES.txt +0 -65
  494. PyCG-0.0.7/PyCG.egg-info/dependency_links.txt +0 -1
  495. PyCG-0.0.7/PyCG.egg-info/entry_points.txt +0 -2
  496. PyCG-0.0.7/PyCG.egg-info/top_level.txt +0 -3
  497. PyCG-0.0.7/micro-benchmark/args_test.py +0 -25
  498. PyCG-0.0.7/micro-benchmark/assignments_test.py +0 -19
  499. PyCG-0.0.7/micro-benchmark/builtins_test.py +0 -16
  500. PyCG-0.0.7/micro-benchmark/classes_test.py +0 -73
  501. PyCG-0.0.7/micro-benchmark/decorators_test.py +0 -28
  502. PyCG-0.0.7/micro-benchmark/dicts_test.py +0 -43
  503. PyCG-0.0.7/micro-benchmark/direct_calls_test.py +0 -19
  504. PyCG-0.0.7/micro-benchmark/dynamic_test.py +0 -10
  505. PyCG-0.0.7/micro-benchmark/exceptions_test.py +0 -16
  506. PyCG-0.0.7/micro-benchmark/external_test.py +0 -25
  507. PyCG-0.0.7/micro-benchmark/functions_test.py +0 -19
  508. PyCG-0.0.7/micro-benchmark/generators_test.py +0 -25
  509. PyCG-0.0.7/micro-benchmark/imports_test.py +0 -49
  510. PyCG-0.0.7/micro-benchmark/kwargs_test.py +0 -16
  511. PyCG-0.0.7/micro-benchmark/lambdas_test.py +0 -22
  512. PyCG-0.0.7/micro-benchmark/lists_test.py +0 -31
  513. PyCG-0.0.7/micro-benchmark/mro_test.py +0 -28
  514. PyCG-0.0.7/micro-benchmark/returns_test.py +0 -19
  515. {PyCG-0.0.7 → pycg-0.0.8}/LICENCE +0 -0
  516. {PyCG-0.0.7 → pycg-0.0.8}/README.md +0 -0
  517. {PyCG-0.0.7 → pycg-0.0.8}/micro-benchmark/__init__.py +0 -0
  518. {PyCG-0.0.7 → pycg-0.0.8}/micro-benchmark/base.py +0 -0
  519. {PyCG-0.0.7 → pycg-0.0.8}/micro-benchmark/create_pytests.py +0 -0
  520. {PyCG-0.0.7/pycg → pycg-0.0.8/micro-benchmark/snippets/imports/parent_import}/__init__.py +0 -0
  521. {PyCG-0.0.7/pycg/machinery → pycg-0.0.8/micro-benchmark/snippets/imports/parent_import/nested}/__init__.py +0 -0
  522. {PyCG-0.0.7/pycg/processing → pycg-0.0.8/micro-benchmark/snippets/imports/relative_import}/__init__.py +0 -0
  523. {PyCG-0.0.7 → pycg-0.0.8}/micro-benchmark-key-errs/__init__.py +0 -0
  524. {PyCG-0.0.7 → pycg-0.0.8}/micro-benchmark-key-errs/base.py +0 -0
  525. {PyCG-0.0.7 → pycg-0.0.8}/micro-benchmark-key-errs/create_pytests.py +0 -0
  526. {PyCG-0.0.7 → pycg-0.0.8}/pycg/__main__.py +0 -0
  527. {PyCG-0.0.7 → pycg-0.0.8}/pycg/formats/__init__.py +0 -0
  528. {PyCG-0.0.7 → pycg-0.0.8}/pycg/formats/as_graph.py +0 -0
  529. {PyCG-0.0.7 → pycg-0.0.8}/pycg/formats/base.py +0 -0
  530. {PyCG-0.0.7 → pycg-0.0.8}/pycg/formats/simple.py +0 -0
  531. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/callgraph.py +0 -0
  532. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/classes.py +0 -0
  533. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/definitions.py +0 -0
  534. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/imports.py +0 -0
  535. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/modules.py +0 -0
  536. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/pointers.py +0 -0
  537. {PyCG-0.0.7 → pycg-0.0.8}/pycg/machinery/scopes.py +0 -0
  538. {PyCG-0.0.7 → pycg-0.0.8}/pycg/processing/base.py +0 -0
  539. {PyCG-0.0.7 → pycg-0.0.8}/pycg/processing/cgprocessor.py +0 -0
  540. {PyCG-0.0.7 → pycg-0.0.8}/pycg/processing/keyerrprocessor.py +0 -0
  541. {PyCG-0.0.7 → pycg-0.0.8}/pycg/processing/postprocessor.py +0 -0
  542. {PyCG-0.0.7 → pycg-0.0.8}/pycg/processing/preprocessor.py +0 -0
  543. {PyCG-0.0.7 → pycg-0.0.8}/pycg/utils/__init__.py +0 -0
  544. {PyCG-0.0.7 → pycg-0.0.8}/pycg/utils/common.py +0 -0
  545. {PyCG-0.0.7 → pycg-0.0.8}/pycg/utils/constants.py +0 -0
@@ -0,0 +1,59 @@
1
+ name: Linters
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ flake8:
19
+ name: flake8
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Checkout
23
+ uses: actions/checkout@v3
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v4
26
+ with:
27
+ python-version: '3.10'
28
+ - run: python -m pip install flake8
29
+ - name: flake8
30
+ # Pinned to v2.0.0.
31
+ uses: liskin/gh-problem-matcher-wrap@d8afa2cfb66dd3f982b1950429e652bc14d0d7d2
32
+ with:
33
+ linters: flake8
34
+ run: flake8 --max-line-length 89 --ignore=E203,W503 pycg
35
+
36
+ isort:
37
+ runs-on: ubuntu-latest
38
+ steps:
39
+ - name: Checkout
40
+ uses: actions/checkout@v3
41
+ - name: Set up Python
42
+ uses: actions/setup-python@v4
43
+ with:
44
+ python-version: '3.10'
45
+ - run: python -m pip install isort
46
+ - name: isort
47
+ # Pinned to v2.0.0.
48
+ uses: liskin/gh-problem-matcher-wrap@d8afa2cfb66dd3f982b1950429e652bc14d0d7d2
49
+ with:
50
+ linters: isort
51
+ run: isort --check --diff pycg
52
+
53
+ black:
54
+ runs-on: ubuntu-latest
55
+ steps:
56
+ - name: Checkout
57
+ uses: actions/checkout@v3
58
+ - name: black
59
+ uses: psf/black@stable
@@ -0,0 +1,27 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+ jobs:
10
+ Test:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout Repository
15
+ uses: actions/checkout@v2
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v2
19
+ with:
20
+ python-version: '3.10'
21
+
22
+ - name: Install Dependencies
23
+ run: |
24
+ pip3 install mock
25
+
26
+ - name: Run Tests
27
+ run: make test
pycg-0.0.8/.gitignore ADDED
@@ -0,0 +1,166 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ # Others
163
+ *.pyc
164
+ *.sw*
165
+ micro-benchmark/*_test.py
166
+ micro-benchmark-key-errs/*_test.py
pycg-0.0.8/Makefile ADDED
@@ -0,0 +1,10 @@
1
+ test:
2
+ python3 -m unittest discover -s pycg/tests -p "*_test.py"
3
+
4
+ functional_test:
5
+ ./micro-benchmark/create_pytests.py
6
+ SNIPPETS_PATH="micro-benchmark/snippets" CALL_GRAPH_MODULE="pycg.pycg" CALL_GRAPH_CLASS="CallGraphGenerator" python3 -m unittest discover -s micro-benchmark -p "*_test.py"
7
+
8
+ key_err_test:
9
+ ./micro-benchmark-key-errs/create_pytests.py
10
+ SNIPPETS_PATH="micro-benchmark-key-errs/snippets" CALL_GRAPH_MODULE="pycg.pycg" CALL_GRAPH_CLASS="CallGraphGenerator" python3 -m unittest discover -s micro-benchmark-key-errs -p "*_test.py"
@@ -1,18 +1,20 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyCG
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: PyCG - Practical Python Call Graphs
5
- Home-page: https://github.com/vitsalis/pycg
6
- Author: Vitalis Salis
7
- Author-email: vitsalis@gmail.com
8
- License: Apache Software License
9
5
  Project-URL: Homepage, https://github.com/vitsalis/PyCG
10
6
  Project-URL: Bug Tracker, https://github.com/vitsalis/PyCG/issues
7
+ Author-email: Vitalis Salis <vitsalis@gmail.com>
8
+ License-File: LICENCE
11
9
  Classifier: License :: OSI Approved :: Apache Software License
12
10
  Classifier: Programming Language :: Python :: 3
13
11
  Requires-Python: >=3.4
12
+ Provides-Extra: dev
13
+ Requires-Dist: black>=22.12.0; extra == 'dev'
14
+ Requires-Dist: flake8>=6.0.0; extra == 'dev'
15
+ Requires-Dist: isort>=5.12.0; extra == 'dev'
16
+ Requires-Dist: mock; extra == 'dev'
14
17
  Description-Content-Type: text/markdown
15
- License-File: LICENCE
16
18
 
17
19
  # PyCG - Practical Python Call Graphs
18
20
 
@@ -156,4 +158,4 @@ pip3 install mock
156
158
  Τhen, simply run the tests by executing:
157
159
  ```
158
160
  make test
159
- ```
161
+ ```
@@ -0,0 +1 @@
1
+ A function `func` is defined which takes as a parameter a variable which has a function assigned to it which it later calls.
@@ -0,0 +1,9 @@
1
+ {
2
+ "main.func": [
3
+ "main.param_func"
4
+ ],
5
+ "main.param_func": [],
6
+ "main": [
7
+ "main.func"
8
+ ]
9
+ }
@@ -0,0 +1,8 @@
1
+ def param_func():
2
+ pass
3
+
4
+ def func(a):
5
+ a()
6
+
7
+ b = param_func
8
+ func(b)
@@ -0,0 +1 @@
1
+ A function `func` is defined which takes as a parameter a function which it later calls.
@@ -0,0 +1,9 @@
1
+ {
2
+ "main.func": [
3
+ "main.param_func"
4
+ ],
5
+ "main.param_func": [],
6
+ "main": [
7
+ "main.func"
8
+ ]
9
+ }
@@ -0,0 +1,7 @@
1
+ def param_func():
2
+ pass
3
+
4
+ def func(a):
5
+ a()
6
+
7
+ func(param_func)
@@ -0,0 +1 @@
1
+ Import a function from another module and call it with a function parameter which as been assigned to a variable.
@@ -0,0 +1,10 @@
1
+ {
2
+ "main": [
3
+ "to_import.func"
4
+ ],
5
+ "main.param_func": [],
6
+ "to_import.func": [
7
+ "main.param_func"
8
+ ],
9
+ "to_import": []
10
+ }
@@ -0,0 +1,7 @@
1
+ from to_import import func
2
+
3
+ def param_func():
4
+ pass
5
+
6
+ a = param_func
7
+ func(a)
@@ -0,0 +1 @@
1
+ Import a function from another module and call it with a function parameter
@@ -0,0 +1,10 @@
1
+ {
2
+ "main": [
3
+ "to_import.func"
4
+ ],
5
+ "main.param_func": [],
6
+ "to_import.func": [
7
+ "main.param_func"
8
+ ],
9
+ "to_import": []
10
+ }
@@ -0,0 +1,6 @@
1
+ from to_import import func
2
+
3
+ def param_func():
4
+ pass
5
+
6
+ func(param_func)
@@ -0,0 +1,2 @@
1
+ def func(a):
2
+ a()
@@ -0,0 +1 @@
1
+ Now the parameter function calls a nested function.
@@ -0,0 +1,12 @@
1
+ {
2
+ "main.func": [
3
+ "main.param_func"
4
+ ],
5
+ "main.param_func": [
6
+ "main.nested_func"
7
+ ],
8
+ "main.nested_func": [],
9
+ "main": [
10
+ "main.func"
11
+ ]
12
+ }
@@ -0,0 +1,12 @@
1
+ def nested_func():
2
+ pass
3
+
4
+ def param_func(a):
5
+ a()
6
+
7
+ def func(a):
8
+ a(nested_func)
9
+
10
+ b = param_func
11
+ c = func
12
+ c(b)
@@ -0,0 +1 @@
1
+ A parameter is passed as the return value of a different function call.
@@ -0,0 +1,11 @@
1
+ {
2
+ "main": [
3
+ "main.func",
4
+ "main.func2"
5
+ ],
6
+ "main.func": [
7
+ "main.func3"
8
+ ],
9
+ "main.func2": [],
10
+ "main.func3": []
11
+ }
@@ -0,0 +1,10 @@
1
+ def func(a):
2
+ a()
3
+
4
+ def func2():
5
+ return func3
6
+
7
+ def func3():
8
+ pass
9
+
10
+ func(func2())
@@ -0,0 +1 @@
1
+ Two variables are assigned a function via chained assignment.
@@ -0,0 +1,8 @@
1
+ {
2
+ "main": [
3
+ "main.func1",
4
+ "main.func2"
5
+ ],
6
+ "main.func1": [],
7
+ "main.func2": []
8
+ }
@@ -0,0 +1,13 @@
1
+ def func1():
2
+ pass
3
+
4
+ def func2():
5
+ pass
6
+
7
+ a = b = func1
8
+
9
+ b()
10
+
11
+ a = b = func2
12
+
13
+ a()
@@ -0,0 +1 @@
1
+ Three variables are assigned a value via a recursive tuple assignment.
@@ -0,0 +1,16 @@
1
+ {
2
+ "main": [
3
+ "main.func1",
4
+ "main.func2",
5
+ "main.func3",
6
+ "main.func4",
7
+ "main.func5",
8
+ "main.func6"
9
+ ],
10
+ "main.func1": [],
11
+ "main.func2": [],
12
+ "main.func3": [],
13
+ "main.func4": [],
14
+ "main.func5": [],
15
+ "main.func6": []
16
+ }
@@ -0,0 +1,31 @@
1
+ def func1():
2
+ pass
3
+
4
+ def func2():
5
+ pass
6
+
7
+ def func3():
8
+ pass
9
+
10
+ def func4():
11
+ pass
12
+
13
+ def func5():
14
+ pass
15
+
16
+ def func6():
17
+ pass
18
+
19
+ a, (b, c) = func1, (func2, func3)
20
+ a()
21
+ b()
22
+ c()
23
+
24
+ a, (b, (c, d)) = func1, (func2, (func3, func4))
25
+
26
+ d()
27
+
28
+ f, b = c, e = func5, func6
29
+
30
+ e()
31
+ f()
@@ -0,0 +1 @@
1
+ Functions are assigned to variables via starred assignment
@@ -0,0 +1,12 @@
1
+ {
2
+ "main": [
3
+ "main.func1",
4
+ "main.func2",
5
+ "main.func3",
6
+ "main.func4"
7
+ ],
8
+ "main.func1": [],
9
+ "main.func2": [],
10
+ "main.func3": [],
11
+ "main.func4": []
12
+ }
@@ -0,0 +1,18 @@
1
+ def func1():
2
+ pass
3
+
4
+ def func2():
5
+ pass
6
+
7
+ def func3():
8
+ pass
9
+
10
+ def func4():
11
+ pass
12
+
13
+ a, *b, c = func1, func2, func3, func4
14
+
15
+ a()
16
+ b[0]()
17
+ b[1]()
18
+ c()
@@ -0,0 +1 @@
1
+ Two variables are assigned a value via a tuple assignment.
@@ -0,0 +1,10 @@
1
+ {
2
+ "main": [
3
+ "main.func1",
4
+ "main.func2",
5
+ "main.func3"
6
+ ],
7
+ "main.func1": [],
8
+ "main.func2": [],
9
+ "main.func3": []
10
+ }
@@ -0,0 +1,18 @@
1
+ def func1():
2
+ pass
3
+
4
+ def func2():
5
+ pass
6
+
7
+ def func3():
8
+ pass
9
+
10
+ a, b = func1, func2
11
+ a()
12
+ b()
13
+
14
+ c, d, e = func1, func2, func3
15
+
16
+ c()
17
+ d()
18
+ e()
@@ -0,0 +1 @@
1
+ A builtin function is called.
@@ -0,0 +1,6 @@
1
+ {
2
+ "<builtin>.len": [],
3
+ "main": [
4
+ "<builtin>.len"
5
+ ]
6
+ }
@@ -0,0 +1,2 @@
1
+ array = [1, 2, 3]
2
+ len(array)
@@ -0,0 +1 @@
1
+ A function is applied to elements of a list via map.
@@ -0,0 +1,15 @@
1
+ {
2
+ "main": [
3
+ "<builtin>.map",
4
+ "main.func",
5
+ "main.func2",
6
+ "main.func3",
7
+ "main.func3.func"
8
+ ],
9
+ "main.func": [],
10
+ "main.func2": [
11
+ "main.func"
12
+ ],
13
+ "main.func3": [],
14
+ "<builtin>.map": []
15
+ }
@@ -0,0 +1,19 @@
1
+ def func(x):
2
+ pass
3
+
4
+ map([1, 2, 3], func)
5
+
6
+ def func2(x):
7
+ return func(x)
8
+
9
+ map([1, 2, 3], func2)
10
+
11
+ def func3(x):
12
+ def func():
13
+ return x
14
+ return func
15
+
16
+ res = map([1, 2, 3], func3)
17
+
18
+ for r in res:
19
+ r()
@@ -0,0 +1 @@
1
+ Calling of builtin functions of types.
@@ -0,0 +1,10 @@
1
+ {
2
+ "main": [
3
+ "<**PyStr**>.join",
4
+ "<**PyStr**>.split",
5
+ "<**PyDict**>.items"
6
+ ],
7
+ "<**PyStr**>.join": [],
8
+ "<**PyStr**>.split": [],
9
+ "<**PyDict**>.items": []
10
+ }