Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)

src/p/y/Py2C-HEAD/tests/test_translator.py   Py2C(Download)
                "import apple",
                python.Import((
                    python.alias("apple", None),
                ))
            ),
            (  # Single subpackage import
                "import apple.ball",
                python.Import((
                    python.alias("apple.ball", None),
                "import apple as ball",
                python.Import((
                    python.alias("apple", "ball"),
                ))
            ),
            (  # Multiple imports, 1 alias, 1 simple
                "import apple as ball, cat",
                python.Import((
                    python.alias("apple", "ball"),
                    python.alias("cat", None),