breaking out of outer loops

2008-01-29 Thread noemailplease0001
Any elegant way of breaking out of the outer for loop than below, I seem to have come across something, but it escapes me for i in outerLoop: for j in innerLoop: if condition: break else: continue break Thanks, K -- http://mail.python.org/mailman/listinfo/python

Appropriate use of Property()

2008-01-29 Thread noemailplease0001
Property() can be used to rid ourselves of the extra effort of using two different methods (getAttrib() setAttrib()) for access of an attribute without giving direct access to the attribute, thus making it more elegant. So, the outsider using my module accesses the attribute with the syntax 'Object