Re: Design: Module interface vs. library interface

2010-10-10 Thread Aahz
In article <4c8b8123.80...@sschwarzer.net>, Stefan Schwarzer wrote: > >Which approach would you prefer and why? Or some other approach? Would >you use a different approach if the library-internal class was named >`_FTPFile` instead of `FTPFile`? If it's not a public class, it should have been na

Design: Module interface vs. library interface

2010-09-11 Thread Stefan Schwarzer
Hello, I maintain ftputil [1], an FTP client library. Users of the library may use it like this: | import ftputil | | with ftputil.FTPHost(server, userid, password) as ftp_host: | # for example, make a remote file and read its content | with ftp_host.open("remote_name", "rb") as remote_f