Python 1.6 alpha 1 released

Martijn Faassen m.faassen at vet.uu.nl
Tue Apr 4 07:07:44 EDT 2000


Just van Rossum <just at letterror.com> wrote:
> At 8:48 AM +0000 04-04-2000, fredrik at pythonware.com wrote:
>>> Consider that *every one* of the protocol modules which offers
>>> a connect() method uses a two-argument signature for it:  ftplib,
>>> gopherlib, httplib, imaplib, nntplib, poplib, smtplib, telnetlib,
>>> urllib.  And they all *use* the two-argument connect when invoking
>>> their underlying socket!
>>
>>not true.  look again (doesn't matter if you look in the 1.5.2
>>library or the 1.6 library -- what you just said is not correct
>>in either case).

> Here's the result from a quick search through the Python 1.5.2 lib:

[snip internals using host, port arguments]

And what Tres also mentioned was the external interfaces of ftplib,
etc. A quick glance at the 1.6 alpha shows that they also have separate
host/port arguments. It would seem inconsistent to change 'connect' to use
tuples in one case, but 'connect' in ftplib a host and port argument..

Regards,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?



More information about the Python-list mailing list