Which is the more efficient/faster/better way to check if a key exists?
if 'subject' in request.POST:
subject = request.POST['subject']
else:
// handle error
OR
try:
subject = request.POST['subject']
except KeyError:
// handle error