A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039694.html below:

Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')

Adaptation and typecasting (was Re: [Python-Dev] replacing 'global') Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')Phillip J. Eby pje at telecommunity.com
Tue Oct 28 08:57:54 EST 2003
At 09:56 AM 10/28/03 +0100, Alex Martelli wrote:
>AND, adaptation is not typecasting:
>e.g y=adapt("23", int) should NOT succeed.

Obviously, it wouldn't succeed today, since int doesn't have __adapt__ and 
str doesn't have __conform__.  But why would you intend that they not have 
them in future?

And, why do you consider adaptation *not* to be typecasting?  I always 
think of it as "give me X, rendered as a Y", which certainly sounds like a 
description of typecasting to me.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4