[ python-Bugs-1261659 ] Tutorial doesn't cover * and ** function calls
SourceForge.net
noreply at sourceforge.net
Tue Nov 22 20:51:18 CET 2005
Bugs item #1261659, was opened at 2005-08-17 07:10
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1261659&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 6
Submitted By: Brett Cannon (bcannon)
Assigned to: Raymond Hettinger (rhettinger)
Summary: Tutorial doesn't cover * and ** function calls
Initial Comment:
While the tutorial, in the section discussing function
definitions, covers * and ** arguments, there is no
aparent coverage of using them in a function call
(e.g., ``open(*["file", "r"])``).
----------------------------------------------------------------------
>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-11-22 20:51
Message:
Logged In: YES
user_id=1188172
Committed patch by pterk.
----------------------------------------------------------------------
Comment By: Peter van Kampen (pterk)
Date: 2005-10-17 13:07
Message:
Logged In: YES
user_id=174455
I believe f(*seq) is covered in section 4.7.4 of the
tutorial?
(http://docs.python.org/tut/node6.html#SECTION006740000000000000000)
I've commited a patch to also include an example for
f(**dict). See:
http://sourceforge.net/tracker/index.php?func=detail&aid=1328566&group_id=5470&atid=305470
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2005-08-26 10:51
Message:
Logged In: YES
user_id=80475
That should be fixed.
Do you have a patch?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1261659&group_id=5470
More information about the Python-bugs-list
mailing list