<div dir="ltr"><span style="font-size:small;line-height:20px">Just decorate it with </span><a href="https://github.com/ajalt/fuckitpy" style="font-size:small;line-height:20px" target="_blank">fuckit</a><span style="font-size:small;line-height:20px"> and everything will be alright. Make sure to follow the module's guideline though:</span> "This module is like violence: if it doesn't work, you just need more of it."<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 26, 2016 at 12:30 AM Andrew Barnert <<a href="mailto:abarnert@yahoo.com" target="_blank">abarnert@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>On Jan 25, 2016, at 14:25, Bar Harel <<a href="mailto:bzvi7919@gmail.com" target="_blank">bzvi7919@gmail.com</a>> wrote:</div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div><span style="line-height:1.5">For the ducks among us. Simple, Clean, Efficient and Secure. The 4 S/C/E/S.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">def duckput():</span><br></div><div><span style="line-height:1.5"> """Reads anything. 'Cause t</span><span style="line-height:1.5">here's never too much ducktyping"""</span></div><div> return eval(input()+";") # ; makes sure there is only one line.</div></div></div></blockquote><div><br></div></div><div dir="auto"><div>Isn't that a guaranteed syntax error? Expressions can't include semicolons. Although I suppose that makes it even more secure, I think it would be more efficient to just `raise SyntaxError`.</div></div><div dir="auto"><br><blockquote type="cite"><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 25, 2016 at 11:58 PM Ryan Gonzalez <<a href="mailto:rymg19@gmail.com" target="_blank">rymg19@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>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"></div></div><div><div class="gmail_quote">On January 25, 2016 2:04:08 PM CST, Greg Ewing <<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>> wrote:</div></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre>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></pre></blockquote></div></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre>Python-ideas mailing list<br><a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br><a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>Code of Conduct: <a href="http://python.org/psf/codeofconduct" target="_blank">http://python.org/psf/codeofconduct</a>/<br></pre></blockquote></div></div><div>
-- <br>
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.</div>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a></blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Python-ideas mailing list</span><br><span><a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a></span><br><span><a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a></span><br><span>Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a></span></div></blockquote></div></blockquote></div></div></div>