from a module return a class

John Gordon gordon at panix.com
Thu Mar 17 13:21:05 EDT 2016


In <b4647f72-bf8a-4adb-ba1d-bd7d684ba350 at googlegroups.com> kevind0718 at gmail.com writes:
> ## prompt the user for a User name a& pWord
> user_pword = promptUser_PWord() 

> I get the error 
> File "H:\dev\eclipse\workspace\genXls\src\genXls\promptUser_PWord.py", line 58
> return user_pword
> SyntaxError: 'return' outside function

Show us the complete definition of promptUser_PWord().
-- 
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
 -- Edward Gorey, "The Gashlycrumb Tinies"


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /