mirror of https://github.com/mtshiba/pylyzer
Add images
This commit is contained in:
parent
0dc178ab91
commit
cc3bf959ab
|
|
@ -29,8 +29,14 @@ However, pype is superior to them in the following points:
|
||||||
|
|
||||||
* Performance: pype can inspect Python scripts on average 100 times faster than pytype. This is largely due to the fact that pype is implemented in Rust, whereas pytype is implemented in Python.
|
* Performance: pype can inspect Python scripts on average 100 times faster than pytype. This is largely due to the fact that pype is implemented in Rust, whereas pytype is implemented in Python.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
* Detailed analysis
|
* Detailed analysis
|
||||||
|
|
||||||
pype can do more than the usual type testing. For example, it can detect out-of-bounds accesses to lists and accesses to nonexistent keys in dicts.
|
pype can do more than the usual type testing. For example, it can detect out-of-bounds accesses to lists and accesses to nonexistent keys in dicts.
|
||||||
|
|
||||||
* Reporting quality: While pytype's error reports are crude, showing only that an error has occurred, pype shows where the error occurred and provides clear error messages.
|

|
||||||
|
|
||||||
|
* Reports readability: While pytype's error reports are crude, showing only that an error has occurred, pype shows where the error occurred and provides clear error messages.
|
||||||
|
|
||||||
|

|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 218 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 120 KiB |
|
|
@ -22,7 +22,11 @@ class C:
|
||||||
x = 1 + "a"
|
x = 1 + "a"
|
||||||
|
|
||||||
dic = {"a": 1, "b": 2}
|
dic = {"a": 1, "b": 2}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print(dic["c"])
|
print(dic["c"])
|
||||||
|
|
||||||
|
|
||||||
a = [1, 2, 3]
|
a = [1, 2, 3]
|
||||||
print(a[4])
|
print(a[4])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue