Re: codehack.getcodename(co)

Guido.van.Rossum@cwi.nl
Thu, 10 Mar 1994 10:09:15 +0100

> Why not just replace this code with:
>
> co.co_name
>
>
> The above is a lot shorter, a lot faster, and works
> for functions defined in the user session (which codehack fails
> for).
>
> Perhaps this was written before co.co_name existed?

Oops. You're right, co.co_name didn't exist before!

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>