[Python-ideas] OrderedDict for kwargs and class statement namespace

Nick Coghlan ncoghlan at gmail.com
Sat Mar 2 15:51:48 CET 2013


On Sun, Mar 3, 2013 at 12:46 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>     class UseNamespace(type):
>         def __prepare__(cls, namespace):
>             return namespace

Oops, that signature is incorrect. Assume it's tweaked appropriately
to accept the normal __prepare__ arguments and still retrieve the
"namespace" setting from the class header.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list