dive into mark

You are here: dive into markArchivesOctober 2002Dealing with user input in Python

Thursday, October 31, 2002

Dealing with user input in Python

Paul Evans: Saving Users From Themselves. As a wide-eyed, innocent new Python programmer, you may naively expect that you can simply ask users for input and they will just give it to you. Outlines some pitfalls of acquiring input, sanity-checking input (like escaping it properly if it’s going to be displayed on a web page), coercing it into useful forms (examples of phone numbers, postal codes, and social security numbers), and so forth.

Filed under

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim