[Fwd: Re: [Tutor] The Evil eval()]
Lloyd Hugh Allen
lha2@columbia.edu
Fri, 12 Apr 2002 18:32:04 -0400
and "-". Forgot "-". (if you have any negative numbers). And "." if you
have any floats. Maybe the whole string.punctuation--I don't think
there's anything in there that can hurt you without letters.
> Alternatively, if you're in a hurry and don't mind being slow, you could
> run a for loop on your string and ensure that each character is in "[],
> 1234567890", or (more generously) in
> "[],"+string.whitespace+string.digits
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor