Movatterモバイル変換
[0]ホーム
[Python-Dev] Making mutable objects readonly
Barry A. Warsawbarry@digicool.com
Mon, 29 Jan 2001 23:25:09 -0500
>>>>> "GvR" == Guido van Rossum <guido@digicool.com> writes: GvR> Yes, this is a good thing. Easy to do on lists and dicts. GvR> Questions: GvR> - How to spell it? x.freeze()? x.readonly()? GvR> - Should this reversible? I.e. should there be an GvR> x.unfreeze()? GvR> - Should we support something like this for instances too? GvR> Sometimes it might be cool to be able to freeze changing GvR> attribute values...lock(x) ...? :)-Barry
[8]ページ先頭