[RFC - Python scripting] New methods Symtab.global_block and Symtab.static_block (docs included)

Siva Chandra sivachandra@google.com
Wed May 2 17:41:00 GMT 2012


Tom> I think the difficulty here is that saying nothing may also lull Python
Tom> users into a false sense of security that we will not change things in
Tom> this area.

Tom> But, we'd still like the freedom to change things.  For example, we've
Tom> talked off and on about implementing "hierarchical" symbol tables, where
Tom> the symbols in a namespace (e.g.) are kept in the namespace symbol, not
Tom> globally.

Tom> If we made this sort of change, then iterating over the block would
Tom> return different results.

Tom> Maybe there is some way to rewrite the original text to give us some
Tom> leeway.

Siva> Does this note to user need to be a part of this patch?

Doug> fwiw, my opinion is "No.".
Doug> That would just be making you put too much effort into form over
substance.
Doug> If you want to, go for it.  But it's not necessary (IMO).
Doug> We may want to hold off checking things in until the doc text is
ready though.

Now that the note to the user is in, is this patch ready to go in as
well?  Tom and Eli have already OK-ed, but I am double checking as it
has been a while since then.

Thanks,
Siva Chandra



More information about the Gdb-patches mailing list