unpack sequence to tuple?

Thomas Wouters thomas at xs4all.net
Wed Jan 24 18:19:07 EST 2001


On Wed, Jan 24, 2001 at 01:08:39PM +0000, John Nielsen wrote:

> Is there any reason for extend versus +=?

If you have += at all, no. .extend() and += are largely the same function,
just two tiny wrappers to cover the slight differences. (.extend(), because
it's a method, needs to handle arguments itself.) .extend() has the obvious
advantage that it works in older versions of Python as well, though only
with listtypes.

> It's odd python 2.0 has what seems like really subtle changes at first.
> But, when you start using those changes, you begin to see how they
> really help.

The reason that 2.0 contains so much of those subtle changes is that
(relatively) large parts of the code were rewritten or altered by a large
group of new volunteers. Between 1.5.2 and 2.0 Python development switched
to Sourceforge, allowing a whole slew of new developers to join in, and let
me tell you, there's nothing as stimulating as feeling appreciated, at least
to us unknown hackers :-)

2.1 contains a whole lot more of those subtle fixes. Little annoying things
that noone (read: not Guido :) bothered to fix before. (And also some nice
large architectural changes, of course :)

-- 
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