Number of args in a function

Skip Montanaro skip at pobox.com
Tue Oct 16 17:36:45 EDT 2001


    >>>>> foo.func_code.co_nlocals
    >> 5
    >>>>> foo.func_code.co_varnames
    >> ('a', 'b', 'c', 'args', 'kwds')

    Kragen> co_nlocals isn't right; Mark asked for co_argcount:

My apologies.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list