I always leave my work ready to paint. Sanded, nails set but not filled. Sometimes it is easier to sand before installing, eg. sheet goods. On filling - it is proper for woodwork to be primed before filling, so that primer gets into the nail holes. If it's going to be stained then the painter matches the filler to the stain.