Question: Planning to be in Isfahan in August, temperatures might be above 40°C during the day. Would it be ok to walk around with shorts, or do I need to wear long trousers?
Answer: Dress attire for men is similar to that in Europe. The strict dress code for men in Iran prohibits short trousers and short sleeved shirts and t-shirts. Although you would not see Iranian men dressed in shorts, you will almost certainly see men wearing short sleeved shirts and t-shirts. Sandals and flip flops without socks are acceptable for both genders and make no problem.
Check the cheapest Iran tours at http://www.uppersia.com/Iran-tours