How to address a professor that makes offensive comments (that they don't realize are offensive)? I am currently in a financial accounting class with a professor that has used offensive (in my opinion) commentary in her lectures since my first exposure. 

Examples of comments she makes:


Financial accounting is a class everyone should take, because it's actually useful, not like forced electives such as sociology. (Whether or not you believe income statements and balance sheets are more important than understanding how and why the society around you functions, the tone of this comment was what bothered me at the time.) 
Boys are bad at wearing work clothes for work instead of nice clothes.
Girls treat their clothes better because they find them more precious.
Woman have a shopping gene.
It's implied that women (or moms) do all the shopping and cooking.


I admit that I don't attend class often enough to know whether this is a pervasive or sporadic issue. I just know I've been put off enough to not attend classes more often and find out. I make up not going to her lectures by putting in extra effort other ways.

I can tell that she's not trying to be offensive. Her comments are meant to come off as motherly and humorous. I'm also not trying to be offended, as I gain nothing from that. 

What is the most diplomatic way of addressing issues with a professor when you're in a large lecture hall setting? (As opposed to small classroom settings, which lend themselves to more personal connections with the instructors)
Or
How would a professor prefer I address them if I were dissatisfied with the nature of their off topic commentary? (As opposed to opinionated comments that relate to the course or field, such as economic policy preferences in a economics course) 


Should I send a polite email to the professor explaining that I wasn't comfortable? It's quick and semi-anonymous. She won't be able to associate the name with my face. Presenting myself in an impersonal matter may result in an impersonal response. 
Should I wait until the end-of-semester course evaluations and express my concerns? These are completely anonymous, but seems passive aggressive and rather too far after the fact. 
Should I approach her directly if it happens again? It's more personal, but that can also seem to be more confrontational (especially if I go out of my way to meet her during office hours). I don't feel it's confrontational, or that I would present myself that way, but people receiving critique can feel that way. 
Is there a better solution? 


Switching sections isn't any more preferable than skipping the current lectures. The other available times didn't work well for me or my family on a regular basis. I'm also not sold that it's the best option for most students in a similar situation. I would see changing sections as a recourse only if other methods failed, or the lecturer was wildly offensive. 

While the first class bothered me, I didn't drop attendance immediately. This was done after getting a feel for the course, when I knew I could balance not being in the lectures. It wasn't a knee-jerk "How dare she!" reaction.

Spotty attendance is admittedly doing nothing to address the issue. Thus, my inquiry.
I'm afraid you lose a lot of my sympathy by complaining about a lecture that you rarely attend.  I don't really understand what you mean by "the luxury of other options".  If you can take the class from a different instructor and would prefer to do that, do it.  If the attendance in the lecture is not required and you feel that you can get what you want out of the course without attending the lectures: that's your choice too, but is it a good choice?  

You seem to be prioritizing sociopolitical beliefs over the material of the course.  It's very easy to be offended if you want to be.  I won't comment on the gender stuff, but I will say that the bit about accounting over sociology really doesn't rate as an "offensive" comment.  I think it's true that accounting is a more practical field than sociology and that most American adults need to do some accounting in their daily lives in a way that they do not need to do sociology.  Not knowing how interest and loans work will have a more direct negative effect on most people than not understanding the difference between mechanical and organic solidarity.  Of course "practical" is not necessarily better: it is a matter of taste and goals.  I am a mathematician, I have taken courses in sociology but not accounting, and I am fully content with that decision: in fact, I would be hard-pressed to imagine a university course that sounds less interesting to me than accounting.  But that's just my own personal taste: the idea that the accounting instructor prefers accounting over sociology is neither offensive nor even surprising.  We have a right to like what we do better and tell that to students.

Not everyone has the same views that we do.  But an accounting instructor's views on gender, shopping and clothing seem incidental rather than professional: it is very unlikely that she is pushing these views on the students or that she is holding herself up as an authority figure on them; they're just part of the way that she likes to present her lectures.  Ask yourself this: what are the negative effects of her expression of these views?  Is it likely that the men and women in the class will adjust their own behavior or views in accordance with hers?  Will men feel worried about their own cooking and shopping agency?  It just doesn't sound that insidious to me.  

In my opinion, if you disagree with the views and feel strongly that the lectures would be improved by not sharing them, then have the courage of your convictions and convey this to the instructor, either in person or by email during the class, or after the class is over.  But not attending the lecture because you don't like the incidental views that the instructor expresses?  I'm sorry to say that I don't find that to be a very mature reaction.  In so doing you are compromising your own educational experience in exchange for...what, exactly?  What is anyone gaining by your failure to attend the lectures?  

Added: If from the first day of class you have a problem with the instructor which is severe enough that you can only bring yourself to attend the class sporadically because of it, you have an excellent reason to drop the course or change sections right away.  Staying in a course with an instructor that you find personally offensive doesn't seem like a very good plan.  In fact, if you tell your advisor that you want to change sections for this reason, you can probably get additional help with the particulars of that: it is in everyone's best interest for you to take a different course.