On Wed, Jan 22, 2014 at 10:41 AM, Paul Mullen <[email protected]> wrote:

>
> reload() fails here because it expects an actual object as its
> argument (not just an object name).  Since you used "from pins_init
> import *", there is no pins_init object in your local namespace.
> Instead, every object in pins_init's namespace is now in your local
> namespace.  You'll have to "import pins_init" before you can reload,
> and then you'll need to "from pins_init import *" all over again.
> E.g.:
>
>   from pins_init import *
>   # You edit your module's source.  Time passes...
>   import pins_init
>   reload(pins_init)
>   from pins_init import *
>
>
> Paul Mullen

Thanks for this explanation.  I see that it takes  import pins_init to get
the reload to work.  I do not understand what "actual object as its
argument (not just an object name)" means.  This confusion is due to an
insufficient grasp on my part of what "object" means.  If I say I have a
"car", I shudder to think what would be necessary to have the "actual car"
in this sentence.

I appreciate the links to places to go to get the help I am going to need.
 I chose python because it was mentioned on a number of websites as "easy
to learn".  I am seriously questioning that appraisal.  Or I have to
question my ability to learn.

-Denis
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to