[Python-Dev] Semantics of int(), index() (original) (raw)
Barry Warsaw barry at python.org
Wed Apr 3 19:56:04 CEST 2013
- Previous message: [Python-Dev] Semantics of __int__(), __index__()
- Next message: [Python-Dev] Semantics of __int__(), __index__()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 .
-Barry
- Previous message: [Python-Dev] Semantics of __int__(), __index__()
- Next message: [Python-Dev] Semantics of __int__(), __index__()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]