[Python-bugs-list] anomolous list append of tuple (PR#246)

Mark Hammond mhammond@skippinet.com.au
Wed, 22 Mar 2000 14:30:02 -0800


This was not originally a bug - but the current CVS tree has a "fix" for
this, so I guess it really was a bug after all :-)  The main thing is that
1.6 will not have this problem.

Mark.

> -----Original Message-----
> From: python-bugs-list-admin@python.org
> [mailto:python-bugs-list-admin@python.org]On Behalf Of
> sde@recombinant.demon.co.uk
> Sent: Wednesday, 22 March 2000 1:16 PM
> To: python-bugs-list@python.org
> Cc: bugs-py@python.org
> Subject: [Python-bugs-list] anomolous list append of tuple (PR#246)
>
>
> Full_Name: Stephen D Evans
> Version: 1.5.2
> OS: win32 and linux
> Submission from: recombinant.demon.co.uk (212.229.73.7)
>
>
> #! /usr/bin/python
>
> # Anomalous behaviour.
>
> # JPython correctly detects TypeError
> # other versions print L
>
> # No failure  Python 1.5.2 win32
> # No failure  Python 1.5.2 on SuSE Linux 6.3
> #      Fails  JPython 1.1 on java1.1.7B (correct behaviour?)
> L=[]
> L.append((1,2))
> L.append(3,4) # TypeError: append(): expected 1 args; got 2
> print L # [(1, 2), (3, 4)]
>
>
>
>
> _______________________________________________
> Python-bugs-list maillist  -  Python-bugs-list@python.org
> http://www.python.org/mailman/listinfo/python-bugs-list
>