Re: [Python-ideas] Positional only arguments

May 21, 2007
11:07 p.m.
On 5/21/07, Aaron Brady <castironpi@comcast.net> wrote:
Yes, it's a bug still present in UserDict. Using the @positional_only decorator I posted in a separate thread, we can make it work correctly:: >>> class C(object): ... @positional_only ... def __init__(self, container=None, _kwargs=None): ... print container, _kwargs ... >>> C(self=1, container=2) None {'self': 1, 'container': 2} STeVe -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy
6512
Age (days ago)
6512
Last active (days ago)
0 comments
1 participants
participants (1)
-
Steven Bethard