| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| # bits of syntax | ||
| "( " | ||
| ") " | ||
| "[ " | ||
| "] " | ||
| ": " | ||
| ", " | ||
| "; " | ||
| "{ " | ||
| "} " | ||
|
|
||
| # operators | ||
| "+ " | ||
| "- " | ||
| "* " | ||
| "** " | ||
| "/ " | ||
| "// " | ||
| "| " | ||
| "& " | ||
| "< " | ||
| "> " | ||
| "= " | ||
| ". " | ||
| "% " | ||
| "` " | ||
| "^ " | ||
| "~ " | ||
| "@ " | ||
| "== " | ||
| "!= " | ||
| "<> " | ||
| "<< " | ||
| "<= " | ||
| ">= " | ||
| ">> " | ||
| "+= " | ||
| "-= " | ||
| "*= " | ||
| "** " | ||
| "/= " | ||
| "//= " | ||
| "|= " | ||
| "%= " | ||
| "&= " | ||
| "^= " | ||
| "<<= " | ||
| ">>= " | ||
| "**= " | ||
| ":= " | ||
| "@= " | ||
|
|
||
| # whitespace | ||
| " " | ||
| ":\\n " | ||
|
|
||
| # type signatures and functions | ||
| "-> " | ||
| ": List[int]" | ||
| ": Dict[int, str]" | ||
|
|
||
| "# type:" | ||
| "# type: List[int]" | ||
| "# type: Dict[int, str]" | ||
|
|
||
| ", *" | ||
| ", /" | ||
| ", *args" | ||
| ", **kwargs" | ||
| ", x=42" | ||
|
|
||
|
|
||
| # literals | ||
| "0x0a" | ||
| "0b0000" | ||
| "42" | ||
| "0o70" | ||
| "42j" | ||
| "42.01" | ||
| "-5" | ||
| "+42e-3" | ||
| "0_0_0" | ||
| "1e1_0" | ||
| ".1_4" | ||
|
|
||
| "{}" | ||
|
|
||
| # variable names | ||
| "x" | ||
| "y" | ||
|
|
||
| # strings | ||
| "r'x'" | ||
|
|
||
| "b'x'" | ||
|
|
||
| "rb\"x\"" | ||
|
|
||
| "br\"x\"" | ||
|
|
||
| "f'{x + 5}'" | ||
| "f\"{x + 5}\"" | ||
|
|
||
| "'''" | ||
| "\"\"\"" | ||
|
|
||
| "\\u" | ||
| "\\x" | ||
|
|
||
| # keywords | ||
| "def " | ||
| "del " | ||
| "pass " | ||
| "break " | ||
| "continue " | ||
| "return " | ||
| "raise " | ||
| "from " | ||
| "import " | ||
| ".. " | ||
| "... " | ||
| "__future__ " | ||
| "as " | ||
| "global " | ||
| "nonlocal " | ||
| "assert " | ||
| "print " | ||
| "if " | ||
| "elif " | ||
| "else: " | ||
| "while " | ||
| "try: " | ||
| "except " | ||
| "finally: " | ||
| "with " | ||
| "lambda " | ||
| "or " | ||
| "and " | ||
| "not " | ||
| "None " | ||
| "__peg_parser__" | ||
| "True " | ||
| "False " | ||
| "yield " | ||
| "async " | ||
| "await " | ||
| "for " | ||
| "in " | ||
| "is " | ||
| "class " | ||
|
|
||
| # shebangs and encodings | ||
| "#!" | ||
| "# coding:" | ||
| "# coding=" | ||
| "# coding: latin-1" | ||
| "# coding=latin-1" | ||
| "# coding: utf-8" | ||
| "# coding=utf-8" | ||
| "# coding: ascii" | ||
| "# coding=ascii" | ||
| "# coding: cp860" | ||
| "# coding=cp860" | ||
| "# coding: gbk" | ||
| "# coding=gbk" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from __future__ import annotations | ||
|
|
||
| def test() -> None: | ||
| x: list[int] = [] | ||
| x: dict[int, str] = {} | ||
| x: set[bytes] = {} | ||
| print(5 + 42 * 3, x) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| class Foo(metaclass=42): | ||
| __slots__ = ['x'] | ||
| pass | ||
|
|
||
| foo = Foo() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| def evens(): | ||
| i = 0 | ||
| while True: | ||
| i += 1 | ||
| if i % 2 == 0: | ||
| yield i |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| async def hello(name: str): | ||
| await name | ||
| print(name) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| try: | ||
| eval('importer exporter... really long matches') | ||
| except SyntaxError: | ||
| print("nothing to see here") | ||
| finally: | ||
| print("all done here") | ||
| raise |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| """Some module docstring""" | ||
| import sys | ||
|
|
||
| def main(): | ||
| print("Hello world!", file=sys.stderr) | ||
|
|
||
| if __name__ == '__main__': | ||
| main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -8,3 +8,4 @@ fuzz_csv_reader | |
| fuzz_struct_unpack | ||
| fuzz_ast_literal_eval | ||
| fuzz_elementtree_parsewhole | ||
| fuzz_pycompile | ||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.