from a module return a class

Rick Johnson rantingrickjohnson at gmail.com
Thu Mar 17 16:59:07 EDT 2016


On Thursday, March 17, 2016 at 1:24:10 PM UTC-5, Laurent Pointal wrote:
> So the error: SyntaxError: 'return' outside function

My suspicion is the the OP misunderstands how modules work. He is assuming that he can return a value from them. But without the source, who knows??? I think John has the same suspicion as me.



More information about the Python-list mailing list