from a module return a class

Laurent Pointal laurent.pointal at free.fr
Thu Mar 17 13:43:36 EDT 2016


John Gordon wrote:

> 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().

AFAIU It looks to be the module…

> 




More information about the Python-list mailing list