[Biopython-dev] Bio.Motif length
Bartek Wilczynski
barwil at gmail.com
Wed Oct 27 09:10:46 EDT 2010
Hi,
On Wed, Oct 27, 2010 at 1:03 PM, Peter <biopython at maubp.freeserve.co.uk>wrote:
>
> What I would suggest is right now:
>
> (1) Use len(...) in the tutorial and any docstrings. Also in the
> __len__ docstring you could mention that using the .length
> property is discouraged.
>
> This is now done and commited to the trunk.
> Then later as your time permits,
>
> (2) Rename self.length to self._length throughout the code, check
> tests pass
> (3) Add a property length which acts as a proxy for self._length
> and say in the docstring that you encourage len(...) instead.
> This is to ensure existing code using .length still works.
>
> I'll put these things on my todo list, and I'll make them on a branch, not
to mess things up.
> Then later,
>
> (4) Add a deprecation warning to the new length property.
>
> One year and two releases later:
>
> (5) Remove the length property (leaving the private _length
> property only).
>
> Is there a scheduled time for the next release? I'm just asking to see
whether I can try to still squeeze it into the nearest release or it will
need to wait for the next one.
Thanks for your input
Bartek
More information about the Biopython-dev
mailing list