FEEDBACK WANTED: Type/class unification
Gregory P. Smith
greg at electricrain.com
Mon Aug 27 23:26:39 EDT 2001
Yuck IMHO. that would make the callable() function much less useful
for distinguishing between things that are meant to be called vs.
things that just happen to return themselves when called. (lots of
existing code would break)
On Wed, Aug 22, 2001 at 09:58:59AM -0700, Hamish Lawson wrote:
> While on this subject, would it be an idea to make built-in types
> callable, so that you just call an object without caring whether it
> was a function/method or a simple type? Thus:
>
> x = 10
>
> def y():
> return 10
>
> x()
> y()
--
Gregory P. Smith gnupg/pgp: http://electricrain.com/greg/keys/
C379 1F92 3703 52C9 87C4 BE58 6CDA DB87 105D 9163
More information about the Python-list
mailing list