<html><head></head><body>Also:<br>
<br>
<br>
def linput():<br>
'Reads a list. Completely, 100% secure and bulletproof.'<br>
return map(eval, input[1:-1].split(',')))<br>
<br>
<br>
def ninput():<br>
'Reads None.'<br>
assert input() == 'None'<br>
<br>
def strinput():<br>
'Reads a string. Also 100% secure.'<br>
return eval("'" + input() + "'")<br><br><div class="gmail_quote">On January 25, 2016 2:04:08 PM CST, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Marcel O'Neil wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> def intput():<br /> return int(input())<br /></blockquote><br />And also<br /><br /> def flintput():<br /> return float(input())<br /><br />Yabba-dabba-doo-ly,<br />Greg<br /><hr /><br />Python-ideas mailing list<br />Python-ideas@python.org<br /><a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br />Code of Conduct: <a href="http://python.org/psf/codeofconduct">http://python.org/psf/codeofconduct</a>/<br /></pre></blockquote></div><br>
-- <br>
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.</body></html>