Re: [Python-Dev] Semantics of __int__(), __index__()

2013年4月03日 11:05:03 -0700

On Apr 03, 2013, at 01:46 PM, Barry Warsaw wrote:
>It's a consistency-of-implementation issue. Where built-in types are
>callable, they return concrete instances of themselves. This is true for
>e.g. list, tuple, dict, bytes, str, and should also be true of int.
Well, I guess it's consistent for some of those built-in types <wink>.
-Barry
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to