Movatterモバイル変換


[0]ホーム

URL:


do...until wisdom found...

Dave LeBlancwhisper at oz.net
Wed Apr 18 12:15:24 EDT 2001


On Wed, 18 Apr 2001 10:21:00 +0100, Toby Dickenson<tdickenson at devmail.geminidataloggers.co.uk> wrote:>Dennis Baker <drbaker at softhome.net> wrote:>>>On Tue, 17 Apr 2001 18:37:46 GMT "Fredrik Lundh" <fredrik at pythonware.com> wrote:>>>>) Dennis Baker wrote>>) > )         while 1:>>) > )             set up for this cycle>>) > )             if c: break>>) > )             whatever needs to be done>>>>I suppose this is a product of my Structured Programming coursework,  I simply>>avoid constructs like this.  I was taught that loops and functions should have>>one entry point and one exit point.>>But it does have one entry point and one exit point! Count 'em:>>while 1:                        <--- one entry point>    set up for this cycle>    if c: break                 <--- one exit point>    whatever needs to be done      <----- another exit point>>>>Toby Dickenson>tdickenson at geminidataloggers.com


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp