The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Devin Jeanpierre <jeanpierr...@gmail.com>
Date: Tue, 6 Nov 2012 02:55:17 -0500
Local: Tues, Nov 6 2012 2:55 am
Subject: Re: [Python-ideas] The "in"-statement
On Mon, Nov 5, 2012 at 3:29 PM, Mike Graham <mikegra...@gmail.com> wrote:
def update_vars(obj, **kwargs):
> On Mon, Nov 5, 2012 at 2:49 PM, Serhiy Storchaka <storch...@gmail.com> wrote: >> On 05.11.12 21:28, Markus Unterwaditzer wrote: >>> I thought it would be neat if i could do::
>>> in obj:
>> vars(obj).update(
>> Or obj.__dict__.update.
> Tinkering with the object's attribute dict directly using either of
for k, v in kwargs.iteritems(): setattr(obj, k, v) update_vars(obj,
-- Devin
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||