Movatterモバイル変換


[0]ホーム

URL:


do...until wisdom needed...

Benjamin.Altmanbenjamin.altman at noaa.gov
Mon Apr 16 14:07:48 EDT 2001


Why couldn't you just say that "all control statements in Python are dedented,end with a :" _because they_ "have code following the statement."?  So if onewould be created that doesn't have code following, there would be no need for itto end with a ":" and it could be dedetended from the other end...Andrew Dalke wrote:> The other one is that no one could think of a nice way to> do the indentation given that it requires two control statements,> and all control statements in Python are dedented, end with a :> and have code following the statement.  The "until" clause> breaks one of those, unless you always follow it with a dummy> "pass" statement.


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp