<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><br><blockquote type="cite"><div dir="ltr"><blockquote type="cite"><span>foo(=a, =1+bar)</span><br></blockquote><span></span><br><span>Unfortunately, that won't help with Jonathan's inital example</span><br><span>expression "big_array[5:20]" as it's not a valid keyword.</span><br></div></blockquote><br><div>I didn't understand that. The example you are referring to is</div><div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">print('big_array[<a href="x-apple-data-detectors://1" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="calendar-event" x-apple-data-detectors-result="1" style="-webkit-text-decoration-color: rgba(0, 0, 0, 0.258824);">5:20</a>] =', big_array[<a href="x-apple-data-detectors://2" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="calendar-event" x-apple-data-detectors-result="2" style="-webkit-text-decoration-color: rgba(0, 0, 0, 0.258824);">5:20</a>])</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Right?</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Nothing is a keyword in that example or in my example. My suggestion is that we could do:</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">my_func(=big_array[<a href="x-apple-data-detectors://2" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="calendar-event" x-apple-data-detectors-result="2" style="-webkit-text-decoration-color: rgba(0, 0, 0, 0.258824);">5:20</a>])</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">And it would be compile time transformed into</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">my_func(**{'big_array[<a href="x-apple-data-detectors://1" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="calendar-event" x-apple-data-detectors-result="1" style="-webkit-text-decoration-color: rgba(0, 0, 0, 0.258824);">5:20</a>]': big_array[<a href="x-apple-data-detectors://2" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="calendar-event" x-apple-data-detectors-result="2" style="-webkit-text-decoration-color: rgba(0, 0, 0, 0.258824);">5:20</a>]})</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">and then my_func is just a normal function:</span></div><div><br></div><div>def my_func(**kwargs):</div><div>     Whatever</div><div><br></div><div>It's a very simple textual transformation.</div><div><br></div><div>/ Anders</div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div></body></html>