Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105207

Re: from a module return a class

Newsgroups comp.lang.python
Date 2016-03-18 05:40 -0700
References (1 earlier) <ncep21$e9v$1@reader1.panix.com> <56eaecc8$0$3658$426a74cc@news.free.fr> <ncer09$rjq$1@reader1.panix.com> <56eaf640$0$19753$426a74cc@news.free.fr> <515bee4d-c547-42fb-b932-322b1e4f6720@googlegroups.com>
Message-ID <06f118be-ba28-415e-94ea-37af226bff6f@googlegroups.com> (permalink)
Subject Re: from a module return a class
From kevind0718@gmail.com

Show all headers | View raw


On Thursday, March 17, 2016 at 4:59:32 PM UTC-4, Rick Johnson wrote:
> 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.

yep OP is not sure how the pieces go together.
source code for promptUser_PWord has been posted.

thanks for your attention to this matter.

KD

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

from a module return a class kevind0718@gmail.com - 2016-03-17 09:19 -0700
  Re: from a module return a class Laurent Pointal <laurent.pointal@free.fr> - 2016-03-17 18:16 +0100
  Re: from a module return a class John Gordon <gordon@panix.com> - 2016-03-17 17:21 +0000
    Re: from a module return a class Laurent Pointal <laurent.pointal@free.fr> - 2016-03-17 18:43 +0100
      Re: from a module return a class John Gordon <gordon@panix.com> - 2016-03-17 17:54 +0000
        Re: from a module return a class Laurent Pointal <laurent.pointal@free.fr> - 2016-03-17 19:24 +0100
          Re: from a module return a class Rick Johnson <rantingrickjohnson@gmail.com> - 2016-03-17 13:56 -0700
          Re: from a module return a class Rick Johnson <rantingrickjohnson@gmail.com> - 2016-03-17 13:59 -0700
            Re: from a module return a class kevind0718@gmail.com - 2016-03-18 05:40 -0700
    Re: from a module return a class kevind0718@gmail.com - 2016-03-18 05:34 -0700
  Re: from a module return a class kevind0718@gmail.com - 2016-03-18 05:32 -0700
    Re: from a module return a class John Gordon <gordon@panix.com> - 2016-03-18 15:08 +0000
      Re: from a module return a class John Gordon <gordon@panix.com> - 2016-03-18 16:16 +0000
        Re: from a module return a class kevind0718@gmail.com - 2016-03-18 12:19 -0700

csiph-web