From: Raymond Hettinger Date: Thu, 12 Jul 2012 18:26:01 +0000 (-0700) Subject: Show the proper way to exit a cmd shell X-Git-Tag: v3.3.0b2~234^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=921d1244c6fdacdd2044ed9fdf2ffac5588a641e;p=thirdparty%2FPython%2Fcpython.git Show the proper way to exit a cmd shell --- diff --git a/Doc/library/cmd.rst b/Doc/library/cmd.rst index fd7f4537c629..943c04a84013 100644 --- a/Doc/library/cmd.rst +++ b/Doc/library/cmd.rst @@ -276,7 +276,7 @@ immediate playback:: print('Thank you for using Turtle') self.close() bye() - sys.exit(0) + return True # ----- record and playback ----- def do_record(self, arg):