On Thu, May 30, 2013 at 10:19 PM, Eternaltheft <eternalth...@gmail.com> 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?

Do you really want to return there? What function is this defined in?

I think you probably want what Fabio originally said: that "if not
filename" (which, in this context, means "if the user hit Enter
without typing anything"), assign something to filename.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to