4 ms·
I wish Python enforced private attributes. I once worked in a codebase where this was roughly true: _usually_private_but_ok_to_access_if_you_are_knowledgeabl
by goodoldneon 4y ago
I wish Python enforced private attributes. I once worked in a codebase where this was roughly true:
_usually_private_but_ok_to_access_if_you_are_knowledgeable
__private_unless_you_need_an_escape_hatch
___absolutely_private_except_for_a_few_times
- brookst 4y agoI mean doesn’t it make you want to make ___________super_ultra_private, with an accessor that corrupts the filesystem and hangs if you so much as look at it?
- goodoldneon 4y agoThat sounds good, but we might need a class attribute that disables filesystem corruption in case we need to access `___________super_ultra_private` somewhere