Did you mean: limit (tan (x ),x ,pi /2 ,div ="-")?
limit (tan (x),x,pi /2,dir ="-")
Want a full Python shell? Use SymPy Live.