Showing results 1 to 2 of 2
Search took 0.01 seconds.
Posts Made By: DrLight
Forum: Python Dec 2nd, 2004
Replies: 12
Views: 108,884
Posted By DrLight
Re: How to do Input in Python?

raw_input accepts your input as a string. input accepts it as a command. so for example lets say you hadinput("somehthing")
and a hacker knowing some exploit in your code or system used the python...
Forum: Python Nov 12th, 2004
Replies: 12
Views: 108,884
Posted By DrLight
Re: How to do Input in Python?

the correct way is var = raw_input("Enter something: ")
print "you entered ", var


using input is unsafe as it evaluates your python code as commands and can cause someone to hack your code.
Showing results 1 to 2 of 2

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:47 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC