[Tutor] is it legal to have a class within a def

johnf jfabiani at yolo.com
Thu Jan 3 06:14:09 CET 2008


def someMethod():
   class MyClass(object):
       .....
  if something:
     .....
     return someval
	
-- 
John Fabiani


More information about the Tutor mailing list