Both 书呆子 and 迂夫子 mean a pedant, and at least I know 书呆子 is usually used in derogatory tone.
I have never seen the word 迂夫子 until just now, and it seems to mean the same thing as 书呆子.
So I wonder if there is any difference. Is it also a derogatory word, or anything others that differ?