3 ms·
Python being Python, you can prevent non-malicious problems of the sort you mention (const and private functions / variables). Const via overwriting setattr / e
by TheLoneWolfling 12y ago
Python being Python, you can prevent non-malicious problems of the sort you mention (const and private functions / variables). Const via overwriting setattr / etc, private functions via stack inspection (among other things. There's a sliding scale of thoroughness versus clean code here.)
Though it won't protect you from malicious intent (though this is still the case with C / etc), and it's caught at runtime as opposed to at compile time.
- Swizec 12y ago> Though it won't protect you from malicious intent It often does feel like junior developers are malicious. While I commend their ingenuity in solving the problem, code review can be a real schlep.
- TheLoneWolfling 12y agoHanlon's razor