How do I chain methods?

James Mills prologic at shortcircuit.net.au
Sun Oct 24 23:15:22 EDT 2010


On Mon, Oct 25, 2010 at 12:49 PM, Steven D'Aprano
<steve-REMOVE-THIS at cybersource.com.au> wrote:
> ...if you're writing x.__add__(1).__sub__(3) instead of x + 1 - 3 then
> you're almost certainly doing it wrong.

It was just an example :) ... And this isn't python-tutor

--James

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Python-list mailing list