os.join --

Volucris volucris at hotmail.com
Sun May 13 02:57:04 EDT 2001


I think he means more along the lines of:

>>> g = [1, 2, 3]
>>> g.append(4, 5, 6)
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
TypeError: append() takes exactly 1 argument (3 given)

"David Lees" <deblNospammy at theworld.com> wrote in message
news:3AFE21F2.F06408EF at theworld.com...
> Could you be more specific.  I just ran this little test which showed no
> problem appending one million elements with Python 2.1 on a win98 box:
> -------------
> def foo(n):
>     x=[]
>     while n:
>         x.append(n)
>         n -= 1
>     return len(x)
>
> N=1000000
> print foo(N)
> -----------
>
> david lees
>
>
>
> Matthew Turk wrote:
> >
> > Hi all.  I've just got a quick question --
> >
> > When Python 2.0 was released, one of the big changes was the fact that
> > the append method for lists no longer took an unlimited list of items.
> > Why does os.join not follow this?  And why was append changed in the
> > first place?  (But more importantly, I wanna know about os.join...
> > ;-)
> >
> > mjt
> > --
> > "Having said that, music is supposed to be
> >  in the world for celebration, ritual, and
> >  healing - that's the point for me."
> >                 -- Trey Anastasio





More information about the Python-list mailing list