Key | Value |
---|---|
FileName | ./usr/lib/python3/dist-packages/parso/python/diff.py |
FileSize | 22529 |
MD5 | 7B3F606CC9EE3351593BAF77E2D30EB7 |
SHA-1 | 2B45328CC2A59B3C839A0A44D213A4FA5069AEF5 |
SHA-256 | 66B1E60C3C89272A1D1B209E4E6FD97C2EDACD43FE62D9D69EE8D2D4120B22AB |
SSDEEP | 384:6zPZnXLjiF9qZJc+VB/tAndeDfkgjKl7Fkqo:61D/SndeDfWFkqo |
TLSH | T165A26367A4808EA696C39DAF6D9AB54673BE286B50841574FCFC80447F0072482FBFF5 |
hashlookup:parent-total | 2 |
hashlookup:trust | 60 |
The searched file hash is included in 2 parent files which include package known and seen by metalookup. A sample is included below:
Key | Value |
---|---|
FileSize | 60582 |
MD5 | 42D6548473400E36406237A5136FCBB6 |
PackageDescription | Python parser that supports error recovery Parso is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors in your Python file. . Parso has been battle-tested by jedi. It was pulled out of jedi to be useful for other projects as well. . Parso consists of a small API to parse Python and analyse the syntax tree. . A simple example: . >>> import parso >>> module = parso.parse('hello + 1', version="3.6") >>> expr = module.children[0] >>> expr PythonNode(arith_expr, [<Name: hello@1,0>, <Operator: +>, <Number: 1>]) >>> print(expr.get_code()) hello + 1 >>> name = expr.children[0] >>> name <Name: hello@1,0> >>> name.end_pos (1, 5) >>> expr.end_pos (1, 9) . To list multiple issues: . >>> grammar = parso.load_grammar() >>> module = grammar.parse('foo +\nbar\ncontinue') >>> error1, error2 = grammar.iter_errors(module) >>> error1.message 'SyntaxError: invalid syntax' >>> error2.message "SyntaxError: 'continue' not properly in loop" |
PackageMaintainer | Piotr Ożarowski <piotr@debian.org> |
PackageName | python-parso |
PackageSection | python |
PackageVersion | 0.2.1-1~bpo9+1 |
SHA-1 | 3657FFE4A1B7113941CA6CBBCA18C10ACAB093EB |
SHA-256 | 27C35F0228AA856836BE1E8AC04909941A2257FB4F5FB1276B6E136BE7C0F8B6 |
Key | Value |
---|---|
FileSize | 60656 |
MD5 | E34DE225735721EB8392EE13EEFA75CF |
PackageDescription | Python parser that supports error recovery - Python 3.X Parso is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors in your Python file. . Parso has been battle-tested by jedi. It was pulled out of jedi to be useful for other projects as well. . Parso consists of a small API to parse Python and analyse the syntax tree. . A simple example: . >>> import parso >>> module = parso.parse('hello + 1', version="3.6") >>> expr = module.children[0] >>> expr PythonNode(arith_expr, [<Name: hello@1,0>, <Operator: +>, <Number: 1>]) >>> print(expr.get_code()) hello + 1 >>> name = expr.children[0] >>> name <Name: hello@1,0> >>> name.end_pos (1, 5) >>> expr.end_pos (1, 9) . To list multiple issues: . >>> grammar = parso.load_grammar() >>> module = grammar.parse('foo +\nbar\ncontinue') >>> error1, error2 = grammar.iter_errors(module) >>> error1.message 'SyntaxError: invalid syntax' >>> error2.message "SyntaxError: 'continue' not properly in loop" |
PackageMaintainer | Piotr Ożarowski <piotr@debian.org> |
PackageName | python3-parso |
PackageSection | python |
PackageVersion | 0.2.1-1~bpo9+1 |
SHA-1 | 4B7136E0F3E9CC672715E379396C60347F1C8C76 |
SHA-256 | FD6330415DD6E8082050E3E1A82A15D763CF9C5CDA3BA975A5A92E4B6AFB372E |