[Biopython-dev] [Bug 2561] SeqRecord format method to get a string in a given file format

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Aug 7 09:54:20 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2561


biopython-bugzilla at maubp.freeserve.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #982 is|0                           |1
           obsolete|                            |




------- Comment #12 from biopython-bugzilla at maubp.freeserve.co.uk  2008-08-07 05:54 EST -------
(From update of attachment 982)
I've just checked in something based on this patch, but as suggested by Jared I
moved the actual code from format to __format__ instead.

(Quoting Jared, comment #11)
> I still think its reasonable that *ours* should just call `.__format__`, 
> like the builtin will. However, this might suggest that reversing the
> function calls s.t. `.format` calls `.__format__` and all the work is
> done in the latter might be better. I think `.__format__` is the true
> underlying mechanism, whose behavior is specced out explictly in the PEP,
> while `.format` is really just a convenience method, whose signature could
> potentially change to make it even more convenient.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list