why isn't python more popular?

Thomas Wouters thomas at xs4all.net
Fri Aug 18 15:55:58 EDT 2000


On Fri, Aug 18, 2000 at 10:47:43AM -0400, Andrew Kuchling wrote:
> "Tim Peters" <tim_one at email.msn.com> writes:
> > ... to make
> > one genuinely backward-incompatible change (having str(unbounded_int) drop
> > the trailing "L", a change requested by masses of users for years).  
> 
> Actually there are a few backward-incompatible changes, listed in
> the 2.0 article:
> 
> 	* str( <long> ) no longer appends an 'L'
> 	* list.append( 1,2 ) now raises a TypeError exception

And don't forget that 'socket.connect()' was changed in a way that can break
code in 2.0 as well ! This was discussed here at length when 2.0 was called
1.6, and reversed before 1.6 was released, and now that there is a 1.6 that
has the old behaviour, 2.0 will have the intended behaviour.

The behaviour is in the socket.connect method for AF_INET (internet
connection.) Where before you could do 

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(hostname, port)

you now have to do 

sock.connect((hostname, port))

Tim Peters posted a script here to find occurances of the
faulty-but-previously-working sock.connect() behaviour.

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list