wow, ok, thank you Gabriel, I wasn't aware of x,'y',z <br><br>This is what I decided to go with for now in one of my classes, but another class will need a modified version of this, as mentioned x,'y',z<br>
<br>        B=_brush()<br><br>        list( ( self.__setattr__(x.replace("b_",""),getattr(B,x))  for x in dir(B) if x.startswith("b_") ) )<br><br><br><br clear="all">-Alex Goretoy<br><a href="http://www.goretoy.com">http://www.goretoy.com</a><br>
<br>
<br><br><div class="gmail_quote">On Fri, Mar 13, 2009 at 1:46 AM, Lie Ryan <span dir="ltr"><<a href="mailto:lie.1296@gmail.com">lie.1296@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gabriel Genellina wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
En Thu, 12 Mar 2009 09:27:35 -0200, alex goretoy <<a href="mailto:aleksandr.goretoy@gmail.com" target="_blank">aleksandr.goretoy@gmail.com</a>> escribió:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

note i would still like to be able to do __import__("sys")."path"<br>
</blockquote></blockquote>
<br></div><div class="im">
p = __import__("sys").path<br>
<br>
That's a convoluted way of doing:<br>
<br>
import sys<br>
p = sys.path<br>
<br>
(except that the latter one inserts "sys" in the current namespace)<br>
</div></blockquote><div class="im">
<br>
That's a convoluted way of doing:<br>
<br></div>
from path import sys<br>
<br>
(except that the latter one doesn't insert sys in the current namespace)<div><div></div><div class="h5"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>