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

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

src/p/y/Py2C-HEAD/tests/test_translator.py   Py2C(Download)
    def test_del(self):
        self.template([
            ("del a", python.Delete(targets=(
                python.Name("a", python.Del()),
            ))),
            ("del a, b", python.Delete(targets=(
                python.Name("a", python.Del()),
                python.Name("b", python.Del()),
            ))),
            ("del (a, b)", python.Delete(targets=(
                ), python.Del()),
            ))),
            ("del (a\n, b)", python.Delete(targets=(
                python.Tuple((
                    python.Name("a", python.Del()),
                    python.Name("b", python.Del())
                ), python.Del()),
            ))),
            ("del (a\n, b), c", python.Delete(targets=(