]> git.madduck.net Git - etc/vim.git/blob - tests/data/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:

Fix location of expression.diff in the change notification message (#670)
[etc/vim.git] / tests / data / python37.py
1 #!/usr/bin/env python3.7
2
3 def f():
4     return (i*2 async for i in arange(42))
5
6 def g():
7     return (something_long * something_long async for something_long in async_generator(with_an_argument))
8
9 async def func():
10     if test:
11         out_batched = [
12             i
13             async for i in aitertools._async_map(
14                 self.async_inc, arange(8), batch_size=3
15             )
16         ]
17 # output
18
19
20 #!/usr/bin/env python3.7
21
22
23 def f():
24     return (i * 2 async for i in arange(42))
25
26
27 def g():
28     return (
29         something_long * something_long
30         async for something_long in async_generator(with_an_argument)
31     )
32
33
34 async def func():
35     if test:
36         out_batched = [
37             i
38             async for i in aitertools._async_map(
39                 self.async_inc, arange(8), batch_size=3
40             )
41         ]