New submission from Eric Snow <ericsnowcurren...@gmail.com>:

Currently types.SimpleNamespace does not support weak references.  Amaury asked 
for this in #14673, but I'd like to see more discussion.  What are the use 
cases for weak references in this case?

The type is a simple wrapper around dict, which does not support weak 
references.  In fact most of the builtin types do not support them.  However, I 
freely admit that I haven't used weak references very much and am not familiar 
with the use cases.

----------
messages: 162323
nosy: amaury.forgeotdarc, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: add weakref support to types.SimpleNamespace
type: enhancement
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15004>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to