In this paper we consider the generalization of the classical notion of nonholonomy of smooth constraints in analytical mechanics, to a substantially wider set of systems, allowing for discrete and hybrid (mixed continuous and discrete) configurations and transitions. We show that the general notion of nonholonomy can be captured by the definition of two different types of nonholonomic behaviours, which we call internal and external, respectively. Examples are reported of systems exhibiting either the former only, or the latter only, or both. For some classes of systems, we provide equivalent or sufficient characterizations of such definitions, which allow for practical tests.