[ANN] maildog, Re: email automation

2018-10-30 Thread Brian Oney via Python-list
On Tue, 2018-10-23 at 13:58 +0200, Brian J. Oney wrote: > On Tue, 2018-10-23 at 10:31 +0100, Ali Rıza KELEŞ wrote: > > On Tue, 23 Oct 2018 at 09:07, Thomas Jollans wrote: > Now that it seems that I will be writing this. So I have gotten so far as to have a little package called 'maildog' working

Getting Pandas NaT to propagate like NaN

2018-10-30 Thread Skip Montanaro
I'm trying to take the min and max of a couple Pandas Series objects in the face of NaT. np.minimum and np.maximum work the way I want if the elements are floats. For example: >>> s1 00.0 11.8 23.6 35.4 dtype: float64 >>> s2 010.0 117.0 2 NaN 314.0 dtype: float64 >>

Re: customer compare in assertEqual

2018-10-30 Thread Peter Otten
Stone Zhong wrote: > Hi There, > > Now I want to make sure my code calls a function foo with an object t, > however, foo.assert_called_once_with(t) does not work, since t is a model > object and the code may load a different copy of t, so what I really want > to test is "It calls foo with t where