[issue31197] Namespace disassembly omits some compiled objects

2017-08-17 Thread Nick Coghlan
Nick Coghlan added the comment: For ease of reference, I separated out the idea of a common __code__ attribute to its own RFE: https://bugs.python.org/issue31230 -- ___ Python tracker

[issue31197] Namespace disassembly omits some compiled objects

2017-08-15 Thread Nick Coghlan
Nick Coghlan added the comment: Another refactoring point that came up in the same discussion: it might be nice if the objects that expose code attributes all offered a read-only __code__ property, rather than requiring the dis module (and other consumers) to be aware of all the different

[issue31197] Namespace disassembly omits some compiled objects

2017-08-14 Thread Nick Coghlan
Nick Coghlan added the comment: Note that the current dis._get_code_object() helper doesn't *quite* cover this, as it will implicitly compile raw strings, which isn't the desired behaviour for this use case. -- ___ Python tracker

[issue31197] Namespace disassembly omits some compiled objects

2017-08-14 Thread Nick Coghlan
New submission from Nick Coghlan: In reviewing the PR for issue 31183, I noticed that the criteria for deciding which values to disassemble when disassembling a namespace (objects with a __dict__ attribute) has gotten out of sync with the criteria used by the dis() itself. The problem is