Re: does lack of type declarations make Python unsafe?
email@example.com (David Abrahams) wrote in message news:<firstname.lastname@example.org. com>...
> Alex Martelli <email@example.com> writes:
> > In Python one generally identifies (just as informally) a container as
> > "an object which has a length" (using "length", perhaps a suboptimal
> > choice of wording, to mean "number of items currently contained") and
> > simultaneously express both 'c is a container' and
> > 'that container is not empty' by
Sorry, I missed that.
> > assert len(c)
> That understanding of "containerness" is, AFAICT, not universally held
> among Pythonistas by any means.
I still stand by the above.
> Good thing too, probably: it looks
> like there is no such thing as an empty container:
> >>> assert len()
> Traceback ...
But that example was obviously just wrong.
|All times are GMT. The time now is 04:53 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.