<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 1, 2018 at 11:03 AM, Pietro <span dir="ltr"><<a href="mailto:peter.zamb@gmail.com" target="_blank">peter.zamb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Yann,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 25, 2018 at 9:34 AM, Yann Chemin <span dir="ltr"><<a href="mailto:dr.yann.chemin@gmail.com" target="_blank">dr.yann.chemin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>v.import_(input=adminfile,outp<wbr>ut="admin",quiet=True,superqui<wbr>et=True) </div></div>
</blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Why are you interested to execute "<span style="font-family:monospace,monospace">v.import_(</span>" instead of "<span style="font-family:monospace,monospace">v.import(</span><span style="font-family:arial,helvetica,sans-serif">", what is it the purpose of this extra underscore in this case?</span></div><div class="gmail_extra"><span style="font-family:arial,helvetica,sans-serif">It is quite easy to fix this issue but actually I'm not conviced should be fixed.</span></div></div></blockquote><div><br></div><div>I think Yann is using shortcuts, not execution by providing module name as a string, so than "import" is really a keyword:<br></div><div><br></div><div>>>> a = 1</div><div>>>> a.real<br>1</div><div>>>> a.xxx<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>AttributeError: 'int' object has no attribute 'xxx'<br></div><div>>>> a.import()<br> File "<stdin>", line 1<br> a.import()<br> ^<br>SyntaxError: invalid syntax<br></div><div><br></div><div><br></div><div> <br></div></div></div></div>