boredaxel said:
but wouldn't the static friction appear in torque calculation?
Hi boredaxel!
If the pulley has mass, and
if you need to calculate the energy or angular momentum of the pulley, then yes, the friction is an external force on the pulley, and
will provide a torque to the pulley.
But exam questions usually (
though not always 
) say that pulleys are massless.
Also what if the string is assumed to be massless, doesn't that implies no friction and so the pulley shouldn't be able to turn?
Friction depends on the
normal force on the pulley, and (if the string is bent round the pulley) there will
always be a normal force, even if the string is massless.
Doc Al said:
Typical assumptions (in intro courses) are that strings are massless (and thus have the same tension throughout) …
Hi Doc Al!

May I qualify that?
A massles string with no obstructions
will have the same tension throughout (while a massive string hanging vertically will of course have more tension at the top) …
but a string touching anything (like a pulley)
with friction will have
different tension on either side, even if the string is massless.
