[Tutor] equivalent of 'last' in perl

2005-10-27 Thread Johan Meskens CS3 jmcs3
hi is that if flag == 1: break ? thanks jmcs3 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] ot, " pythonmonks

2005-07-14 Thread Johan Meskens CS3 jmcs3
hello is there such a place as www.perlmonks.org for python ? kind regards jmcs3 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] all methods in a module

2005-05-27 Thread Johan Meskens CS3 jmcs3
Johan Meskens CS3 jmcs3 wrote: > hello > > >>> import random > >>> print random.setstate.__doc__ > Restore internal state from object returned by getstate(). > > > my question is > " how can i loop through all the methods in a

[Tutor] all methods in a module

2005-05-27 Thread Johan Meskens CS3 jmcs3
hello >>> import random >>> print random.setstate.__doc__ Restore internal state from object returned by getstate(). my question is " how can i loop through all the methods in a module and print out their '__doc__' content ? >>> for d in dir( random ): print random.???d???.__doc_