-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/06/2012 10:39 AM, Marius Gedminas wrote:
Curious: why getattr(meth, _IM_FUNC)? AFAICS starting with Python 2.6 you can use the Python 3 spelling of meth.__func__. The same applies to _FUNC_CODE, _FUNC_DEFAULTS etc. Is it a relic of an older effort to also support Python 2.5?
Nope, just my ignorance: the code I extracted that from still used 'im_self', 'im_func', 'func_code', and 'func_defaults', and I didn't check that the newer spellings would work on 2.6. Thanks for the catch! Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9/BSsACgkQ+gerLs4ltQ4X7gCgjAALlpdmdbRT//1uxbBNRlXN Kh0Anidld1IPE1RKApot5DgThkvcXsau =wJ3l -----END PGP SIGNATURE-----