Suppose $f: X\to \mathcal{C}(Y,Z)$ is a continuous map of topological spaces. The uncurrying map is $\beta_f: X\times Y\to Z$, $(x,y)\mapsto f(x)(y)$. I know that this $\beta_f$ map is always continuous if $Y$ is locally compact and Hausdorff. So this led me to try to find an example of such an $f$ which leads to a discontinuous $\beta_f$. My thought was to use $\mathbb{Q}=Y$ (with subspace topology) since this space is not locally compact. But I could not find an appropriate $f$ that makes $\beta_f$ not continuous.
Any thoughts?
Edit: Note $\mathcal{C}(Y,Z)$ has the compact open topology. Ie, the topology generated by $o(K,U)$ where $K\subset Y$ is compact and $U\subset Z$ is open.