from a module return a class

John Gordon gordon at panix.com
Fri Mar 18 11:08:38 EDT 2016


In <cc439011-f9b3-4837-ba3b-6703f99ae9be at googlegroups.com> kevind0718 at gmail.com writes:

> As requested , full code for promptUser_PWord

<snip>

So promptUser_PWord is a module?  Well, I'm confused.  You gave us this
bit of code:

    user_pword = promptUser_PWord()   

But that can't work if promptUser_PWord is a module; modules aren't
callable.  promptUser_PWord() has to be a function or a class.

-- 
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