On Wed, May 6, 2020 at 6:27 PM David Mertz <[email protected]> wrote: > I don't think being a function versus a classmethod is important here. > Just that the underlying name is *callable*. >
But wait a minute, zip isn't just a "callable", it's a class, and adding more methods to it seems perfectly natural, just like lots of other built-in classes. >>> zip <class 'zip'> >>> int <class 'int'> >>> int.to_bytes(97, 4, 'little') b'a\x00\x00\x00'
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/JF2PUPMA33UKQQUNMIIKJQXFBOVZRWBL/ Code of Conduct: http://python.org/psf/codeofconduct/
