Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Add a frozendict builtin type

Paul Moorep.f.moore at gmail.com
Wed Feb 29 22:08:20 CET 2012


On 29 February 2012 19:17, Raymond Hettinger<raymond.hettinger at gmail.com> wrote:> From this experience, I conclude that adding a frozendict type> would be a total waste (except that it would inspire more people> to request frozen variante of other containers).It would (apparently) help Victor to fix issues in his pysandboxproject. I don't know if a secure Python sandbox is an importantenough concept to warrant core changes to make it possible. However,if Victor was saying that implementing this PEP was all that is neededto implement a secure sandbox, then that would be a very differentclaim, and likely much more compelling (to some, at least - I have nopersonal need for a secure sandbox).Victor quotes 6 implementations. I don't see any rationale (either inthe email that started this thread, or in the PEP) to explain whythese aren't good enough, and in particular why the implementation hasto be in the core. There's the hint in the PEP "If frozendict is usedto harden Python (security purpose), it must be implemented in C". Butwhy in the core (as opposed to an extension)? And why and how wouldfrozendict help in hardening Python?As it stands, I don't find the PEP compelling. The hardening use casemight be significant but Victor needs to spell it out if it's to makea difference.Paul.


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp