[Tutor] Socket error in class, part the second

2017-03-10 Thread leam hall
y'all, Thanks for the explanations! Sorry for the delay in responding, it's been a rough year these past couple weeks. As noted, the fix was to put the "import socket" above the class declaration. What confuses me is that in the calling program I'm importing the class: from mysocket import mys

Re: [Tutor] Socket error in class, part the second

2017-03-10 Thread Alan Gauld via Tutor
On 10/03/17 12:38, leam hall wrote: > As noted, the fix was to put the "import socket" above the class > declaration. What confuses me is that in the calling program I'm importing > the class: > > from mysocket import mysocket > > In mysocket.py the "import socket" is above the class declarati