Nathaniel Smith <n...@pobox.com> added the comment:

> Regarding your comment on client_context.num_ticket getter: IMHO it's not a 
> good idea to raise an exception on attribute access. It may break 
> introspection.

Hmm, I see what you mean.

Basically my intuition is: it's a bit weird to make the attribute's existence 
"sort of" depend on whether it's a client or server context. It would make 
sense to me to have it entirely disappear on client contexts (from __dir__, 
read-access, and write-access), and it would make sense to me to have it always 
be present, just a no-op. But having it present, and almost the same as on 
server contexts, except that assigning to it fails... that feels a little weird.

----------
status: pending -> open

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

Reply via email to