<br>The same way += et al. are in-place: it would ask &#39;x&#39; to modify itself, if it can. If not, no harm done. (It would be called as &#39;x = ipow(x, n, 10)&#39; of course, just like &#39;x += n&#39; is really &#39;x = x.__iadd__(n)&#39;)
<br><br><div><span class="gmail_quote">On 2/10/07, <b class="gmail_sendername">&quot;Martin v. Löwis&quot;</b> &lt;<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greg Ewing schrieb:<br>&gt;&gt; What could the syntax for that be?<br>&gt;<br>&gt; It wouldn&#39;t be a syntax, just a function, e.g.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;ipow(x, n, 10)<br><br>In what way would that be inplace? A function cannot
<br>rebind the variables it gets as parameters.<br><br>Regards,<br>Martin<br>_______________________________________________<br>Python-Dev mailing list<br><a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/thomas%40python.org">http://mail.python.org/mailman/options/python-dev/thomas%40python.org
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thomas Wouters &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt;<br><br>Hi! I&#39;m a .signature virus! copy me into your .signature file to help me spread!