Python. Restriction of the entered data
Asked by susan cairnsNot the programmer, I mess with just4fun python. There was a question on raw_input - is it possible to somehow forcefully limit the amount of input data? I tried to google the answer - either googled incorrectly, or there is no common solution, or no one needs it, because Python has built-in automatic fool protection and can not bother.
Answers
natsuaki
For example, s = sys.stdin.read (10) writes only 10 bytes to s.
Replies:
thank you, this is probably already almost what my brain was tired by the evening of Friday trying to figure out - carly ann rigby
banafshe
Check after input, not?
bookworm13
This is yes, but if the user entered stopitsotmillionov characters?
DLL Injection in C # ::
Advise content management system for Rails 3 ::
Examples of Openvz user_beancounters ::
Simple PHP class for Twitter API on OAuth? ::
How to connect a desktop computer (Windows XP) to the Internet, available on a mobile phone (Android: HTC Desire), via Bluetooth?
Leave Repply for Python. Restriction of the entered data