Unpaking Tuple

Grant Edwards invalid at invalid.invalid
Tue Oct 9 10:11:26 EDT 2012


On 2012-10-09, Bob Martin <bob.martin at excite.com> wrote:
> in 682592 20121008 232126 "Prasad, Ramit" <ramit.prasad at jpmorgan.com> wrote:
>>Thomas Bach wrote:=0D=0A> Hi there,=0D=0A> =0D=0A> On Sat, Oct 06, 2012 at =
>>03:08:38PM +0000, Steven D'Aprano wrote:=0D=0A> >=0D=0A> > my_tuple =3D my_=
>>tuple[:4]=0D=0A> > a,b,c,d =3D my_tuple if len(my_tuple) =3D=3D 4 else (my_=
>
> How does one unpack this post?  ;-)

Yea, my newsreader doesn't like those posts either -- though they're
not as bad as what yours displays. Mine just shows "^M" strings all
at the end of every line.

-- 
Grant Edwards               grant.b.edwards        Yow! BARBARA STANWYCK makes
                                  at               me nervous!!
                              gmail.com            



More information about the Python-list mailing list