Why do you want to use raw input? If you are running this as a script tool you could set up a parameter that lets you enter one or multiple values, and then plug that into the where clause with something like one of these answers: 123
– blah238Jul 8 '13 at 17:46

This becomes a problem when you need to select multiple OIDs, so you can use something like below. I've successfully used this as inputs to cursors and select layer by attribute/location, but it can't be used for anything over a few thousand entries as it causes fatal ArcMap crashes. (I'm not sure what the cut off point is.) If you need to be selecting that many OIDs, it's best to write all your data to a list of lists and filter out what you want in Python.