[Tutor] my problem with **

ali mangaliag rmangaliag@slu.edu.ph
Tue Apr 29 04:10:03 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C30ECF.516B1FE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

what does the ** and * mean in a function parameter??

ex...

def foo(*bar, **kwargs):
    .....

------=_NextPart_000_0009_01C30ECF.516B1FE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>what does the ** and *&nbsp;mean in a =
function=20
parameter??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ex...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>def foo(*bar, **kwargs):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
.....</FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01C30ECF.516B1FE0--