]> git.madduck.net Git - etc/vim.git/blob - tests/data/py_37/python37.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

dab8b404a739c57f5258694e28ebe65bd9714462
[etc/vim.git] / tests / data / py_37 / python37.py
1 #!/usr/bin/env python3.7
2
3
4 def f():
5     return (i * 2 async for i in arange(42))
6
7
8 def g():
9     return (
10         something_long * something_long
11         async for something_long in async_generator(with_an_argument)
12     )
13
14
15 async def func():
16     if test:
17         out_batched = [
18             i
19             async for i in aitertools._async_map(
20                 self.async_inc, arange(8), batch_size=3
21             )
22         ]
23
24
25 def awaited_generator_value(n):
26     return (await awaitable for awaitable in awaitable_list)
27
28
29 def make_arange(n):
30     return (i * 2 for i in range(n) if await wrap(i))
31
32
33 # output
34
35
36 #!/usr/bin/env python3.7
37
38
39 def f():
40     return (i * 2 async for i in arange(42))
41
42
43 def g():
44     return (
45         something_long * something_long
46         async for something_long in async_generator(with_an_argument)
47     )
48
49
50 async def func():
51     if test:
52         out_batched = [
53             i
54             async for i in aitertools._async_map(
55                 self.async_inc, arange(8), batch_size=3
56             )
57         ]
58
59
60 def awaited_generator_value(n):
61     return (await awaitable for awaitable in awaitable_list)
62
63
64 def make_arange(n):
65     return (i * 2 for i in range(n) if await wrap(i))