Python Cookbook dict problem
Michael Hudson
mwh at python.net
Wed Jul 31 09:58:30 EDT 2002
More information about the Python-list mailing list
Wed Jul 31 09:58:30 EDT 2002
- Previous message (by thread): Python Cookbook dict problem
- Next message (by thread): Win32com, "Microsoft Internet Controls" vs. "Microsoft HTML Object Library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dave Reed <dreed at capital.edu> writes: > > Python expects you to do positional and keyword argument > > unrolling at the end of the function argument list (i.e. > > after all "normal" arguments). Change the last line to: > > > > tada = dodict(yellow=2, green=4, *data.items()) > > > Thanks. Did something change in Python versions or is it a typo in the > book? I'm pretty sure this has never changed, or at least not within the last five years or so. Cheers, M. -- ARTHUR: Don't ask me how it works or I'll start to whimper. -- The Hitch-Hikers Guide to the Galaxy, Episode 11
- Previous message (by thread): Python Cookbook dict problem
- Next message (by thread): Win32com, "Microsoft Internet Controls" vs. "Microsoft HTML Object Library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list