<font></font>2012/2/1 Stefan <span dir="ltr"><<a href="mailto:stmstmstmster@googlemail.com">stmstmstmster@googlemail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
</div>> except: pass<br>
><br>
><br>
get a syntax error here</blockquote></div><br><font>Yep. Try that:<br>
<br>
<span style="font-family:courier new,monospace">d = dir(scribus)
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
for j in d:
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
try:
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
exec 'res = '+j+'.__doc__'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
if res[0:5] == 'float':
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
print '\nCONSTANT:\n',j,'\nVALUE: float'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
exec 'print '+j+'\n'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
elif res[0:5] == 'int(x':
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
print '\nCONSTANT:\n',j,'\nVALUE: integer'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
exec 'print '+j+'\n'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
elif res[0:5] == 'tuple':
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
print '\nTUPLE:\n',j,'\nVALUE:'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
exec 'print repr('+j+')\n'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
elif res[0:4] == 'str(':
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
print '\nSTRING:\n',j,'\nVALUE:'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
exec 'print repr('+j+')\n'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
else:
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
print '\FUNCTION:\n'+j+'\n\nSINTAX:'
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
print res
</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
except: pass
</span><br>
</font><br clear="all"><br>-- <br>
<font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font style="font-family:Helvetica,Arial,sans-serif" color="#888888"><font size="1"><font><img style="width:75px;min-height:100px" alt="Meira" src="http://lh4.ggpht.com/_75EesisxR5g/TENbAQVXMLI/AAAAAAAADHs/ChNQzn8eOT0/meira-75x100.jpg" hspace="8" align="left" vspace="6"></font></font></font></font><hr>
</font><span style="font-family:Helvetica,Arial,sans-serif">nome: "</span><span style="font-weight:bold;font-family:Helvetica,Arial,sans-serif">José Antonio Meira da Rocha</span><span style="font-family:Helvetica,Arial,sans-serif">" </span><br style="font-family:Helvetica,Arial,sans-serif">
<small style="font-family:Helvetica,Arial,sans-serif">googletalk: email: MSN: <a href="mailto:joseantoniorocha@gmail.com" target="_blank">joseantoniorocha@gmail.com</a><br>
veículo: [ <a href="http://meiradarocha.jor.br/" target="_blank">http://meiradarocha.jor.br</a>
] <br></small>
<hr style="width:100%;height:2px;font-family:Helvetica,Arial,sans-serif">
<br>