Is Dirichlet function Riemann integrable? "Dirichlet function" is meant to be the characteristic function of rational numbers on $[a,b]\subset\mathbb{R}$. 
On one hand, a function on $[a,b]$ is Riemann integrable if and only if it is bounded and continuous almost everywhere, which the Dirichlet function satisfies.
On the other hand, the upper integral of Dirichlet function is $b-a$, while the lower integral is $0$. They don't match, so that the function is not Riemann integrable.
I feel confused about which explanation I should choose... 

The Dirichlet function is nowhere continuous, since the irrational numbers and the rational numbers are both dense in every interval $[a,b]$. On every interval the supremum of $f$ is $1$ and the infimum is $0$ therefore it is not Riemann integrable.
