Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.054 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'filename': 0.09; 'guys.': 0.09; 'cc:addr:python-list': 0.11; 'user?': 0.16; 'wrote:': 0.18; 'stack': 0.19; 'input': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'defined': 0.27; 'header:In-Reply- To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'file': 0.32; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'thanks': 0.36; 'received:209': 0.37; 'skip:& 20': 0.39; 'name:': 0.61; "you're": 0.61; 'to:addr:gmail.com': 0.65; 'mean.': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=s/A+3mEyU4xHoAVPe1AM/2xOm0BJTbNnnRByoQMVbVY=; b=l9/8IyVQrk2IzdaZCJs31b6HnD6YormqNmjXGrsdfLhzzuIH54Czkn9vTQxAF5dwnk sECIguqcDdT1KMmcUxrX2UQ0aV0gC/fSPOJKzuLIZVqQVzOc/3JAPIsoud1mKGTn3bFn iGHVj7eP1moqetz5uL6tP6WeD1bhsmB4AUtNEixkejTVyc1R8W5TeA5l7w6Mhz6UR0xf Xq/auB/kmxcBR5kGPHg3L1cTjH2zkLtpUaeYKrkEGExKjYR7GHfn/SxzrbtGdiFLuxjJ ZXqXdgaWQiSQNqwYbZg+umwJYFUPoAVT8g3xz/RpeLPSkd34ZTeMZVT6bpyDdaxCeeiM POJQ== MIME-Version: 1.0 X-Received: by 10.52.69.200 with SMTP id g8mr4449366vdu.4.1369916849375; Thu, 30 May 2013 05:27:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 30 May 2013 13:27:29 +0100 Subject: Re: User Input From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Eternaltheft Content-Type: multipart/alternative; boundary=20cf307d04542dd23204ddee9ffc Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369916858 news.xs4all.nl 15868 [2001:888:2000:d::a6]:47219 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46469 --20cf307d04542dd23204ddee9ffc Content-Type: text/plain; charset=ISO-8859-1 On 30 May 2013 13:24, "Eternaltheft" wrote: > > Ok thanks guys. but when i use > > filename = input('file name: ') > if not filename: #i get filename is not defined > return(drawBoard) #possible to return function when no file input from user? I don't really understand what you mean. Do you mean that you're getting a stack trace? --20cf307d04542dd23204ddee9ffc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 30 May 2013 13:24, "Eternaltheft" <eternaltheft@gmail.com> wrote:
>
> Ok thanks guys. but when i use
>
> filename =3D input('file name: ')
> if not filename: =A0 =A0 =A0#i get filename is not defined
> =A0 =A0 return(drawBoard) #possible to return function when no file in= put from user?

I don't really understand what you mean. Do you mean tha= t you're getting a stack trace?

--20cf307d04542dd23204ddee9ffc--