Making immutable instances

bonono at gmail.com bonono at gmail.com
Thu Nov 24 00:16:02 EST 2005


Alex Martelli wrote:
> A substantial fraction of the time, people asking "how do I stop the
> users of my code from doing X" proceed by screaming "but they could
> still do X if they hopped on their left foot in a moonless midnight
> while sprinkling bat's blood!" as a response to any suggestion.  So,
> when you ask "how do I stop the users of my code from doing X" without
> qualification, you're quite likely to get such disclaimers.  If you
> don't want them, learn to ask about stopping your users from
> ACCIDENTALLY doing X, and no reasonable respondant will fail to notice
> the qualification.
Interestingly, that is what I read from the OP, even without the
"ACCIDENTALLY".




More information about the Python-list mailing list