2 ms·
> Q: Is Python call-by-value or call-by-reference? The most dangerous interview question. First you have to establish that the interviewer uses those terms cor
by viraptor 8y ago
> Q: Is Python call-by-value or call-by-reference?
The most dangerous interview question. First you have to establish that the interviewer uses those terms correctly or at least that both of you agree... There's lots of people who know the answer in practice, but never accepted that passing values which are references is not "pass-by-reference".
I've talked to someone who said "this must be just a typo/mistake"... when I pointed out Java is pass by value - in Java spec :-(