I'm experimenting with inheritance and could use some guidance.
Here's what I have, after fighting off error messages on previous attempts. :-)
import ftplib
class myftp(ftplib.FTP):
def __init__(self):
self.FTP = ftplib.FTP()
This appears to do what I want it to do* (see below).
But should I be setting it up differently than shown above?
*As an example, I can do the following and it works.
ftp = myftp()
ftp.connect(host)
ftp.login(user, passwd)
# etc
ftp.close()
Thanks for any input, thanks!
-Nancy
--
You received this message because you are subscribed to the Google Groups "Michigan Python Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/michipug/-/co5-M_x2mD4J.
To post to this group, send email to mich...@googlegroups.com.
To unsubscribe from this group, send email to michipug+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/michipug?hl=en.
--
You received this message because you are subscribed to the Google Groups "Michigan Python Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/michipug/-/co5-M_x2mD4J.
To post to this group, send email to mich...@googlegroups.com.
To unsubscribe from this group, send email to michipug+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/michipug?hl=en.
Also I should have mentioned (though don't think it's been a factor yet):
Py 2.6 on Win
-Nancy
--
You received this message because you are subscribed to the Google Groups "Michigan Python Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/michipug/-/5iTvwqpn_mIJ.
I appreciate the clarification on super() - Thanks!