[Zope-dev] Re: SVN: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Expressions.py Officially deprecate the BBB methods on the iterator and add a note

Chris Withers chris at simplistix.co.uk
Mon May 22 06:41:53 EDT 2006


Tres Seaver wrote:
>> +    @deprecate("The 'last' method has been deprecated and will disappear "
>> +               "in Zope 2.12.  Use the 'end' property instead.")
>>      def last(self, name=None):
>>          if self.end:
>>              return True
> 
> I don't think deprecating 'first' and 'last' is appropriate here:  they
> *aren't* synonyms for 'start' and 'end;  they are used to implement
> sort-break processing.  Here is the comment from the checkin which
> initially documented them
> (http://mail.zope.org/pipermail/zpt/2001-December/002598.html):

Yeah, what Tres said ;-)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list