I rent a parking space in the residence which is right next to mine. My landlord has informed me that he has sold it to one of the co-owners of his building, without offering it to me. Did he have the right to do so?

Yes, the tenant's right of pre-emption in the case of the sale of a property leased by him only applies to residential or mixed-use premises that constitute the tenant's principal residence. Therefore, it does not apply to the sale of a parking space, unless it constitutes an accessory to the main premises, and provided it is leased by the same lessor (art. 15-II and art. 2 of law n°89-462 of July 6, 1989).