<div class="gmail_quote">On Mon, Nov 5, 2012 at 2:28 PM, Markus Unterwaditzer <span dir="ltr"><<a href="mailto:markus@unterwaditzer.net" target="_blank">markus@unterwaditzer.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

This is my first post on this mailinglist and i haven't lurked a long time yet,<br>
so please be gentle.<br>
<br>
While mocking objects, i got annoyed by the following code pattern i had to<br>
use when modifying multiple attributes on a single object::<br>
<br>
    obj.first_attr = "value"<br>
    obj.second_attr = "value2"<br>
<br>
    some_other = "lel"<br>
<br>
I thought it would be neat if i could do::<br>
<br>
    in obj:<br>
        first_attr = "value"<br>
        second_attr = "value2"<br>
<br>
    some_other = "lel"  # indenting this would cause it to appear as an attribute of obj<br></blockquote><div><br>in obj_1:<br>    in obj_2:<br>        a = b<br><br>Tell me what this does, then.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Just a vague idea. Tell me what you think.<br>
<br>
-- Markus<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Read my blog! I depend on your acceptance of my opinion! I am interesting!<br><a href="http://techblog.ironfroggy.com/">http://techblog.ironfroggy.com/</a><br>Follow me if you're into that sort of thing: <a href="http://www.twitter.com/ironfroggy">http://www.twitter.com/ironfroggy</a><br>