Comment by tomrod
Close, that's the definition of stereotyping based on race and can lend to bigoted acts and decisions.
Racism emcompasses a bit of a different scope, including policy, institutional structures, and norms, of which stereotypes is directly related to norms and can be indirectly influential on the others.
Interesting. The word "racisme" in French has also yet another meaning: the word "race" (identical spelling in French) cannot be used for human beings in French (works for cows and dogs) as "racime" is defined by the belief that there are several human "races" (which is scientifically wrong). The word race as used in English is translated by something like "ethnical group" for example.
However, the comment I originally reacted to would be definitely qualified as being "raciste" by most French speakers (and be illegal in France)