[Python-Dev] terminology for "free variables" in Python
eliben at gmail.com
Fri Sep 10 17:13:42 CEST 2010
> > I mostly use the dis module for quick-n-dirty exploration of the results
> > compilation into bytecode, and I'm sure many people use for the same
> > Thus show_code seems like a convenient shortcut, although not a necessary
> > one. The string returned by code_info isn't interactive-shell friendly,
> > show_code saves the print(...).
> > Personally I think that if it's there, it should be documented. If it's
> > better not to use it, it should be removed or at least marked deprecated
> > the documentation/docstring.
> Yeah, I changed my mind and have now documented it properly. The 3.2
> versionadded tag on show_code is currently a little questionable
> though. Guido actually checked in the original (undocumented) version
> of show_code before 3.0 was released. The only thing new about it in
> 3.2 is it being mentioned in the documentation.
Looks good to me.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev