Did I find the right examples for you? yes no

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

src/m/a/main-HEAD/Languages/IronPython/Tests/test_compiler.py   main(Download)
def test_main():
    compileCode("mainTest", "def f(): return __name__")
    #this probably won't work. Need to verify once bug is fixed.
    import mainTest
    AreEqual(mainTest.f(), "mainTest")

src/i/r/ironpython3-HEAD/Tests/test_compiler.py   ironpython3(Download)
def test_main():
    compileCode("mainTest", "def f(): return __name__")
    #this probably won't work. Need to verify once bug is fixed.
    import mainTest
    AreEqual(mainTest.f(), "mainTest")