File: python37.py

package info (click to toggle)
black 18.9b0-1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,160 kB
  • sloc: python: 91,870; makefile: 32; sh: 2
file content (41 lines) | stat: -rw-r--r-- 828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3.7

def f():
    return (i*2 async for i in arange(42))

def g():
    return (something_long * something_long async for something_long in async_generator(with_an_argument))

async def func():
    if test:
        out_batched = [
            i
            async for i in aitertools._async_map(
                self.async_inc, arange(8), batch_size=3
            )
        ]
# output


#!/usr/bin/env python3.7


def f():
    return (i * 2 async for i in arange(42))


def g():
    return (
        something_long * something_long
        async for something_long in async_generator(with_an_argument)
    )


async def func():
    if test:
        out_batched = [
            i
            async for i in aitertools._async_map(
                self.async_inc, arange(8), batch_size=3
            )
        ]