Re: Few questions on SOAP

2010-02-20 Thread Muhammad Alkarouri
Thanks every one for commenting. I guess I misspoke. I meant to say that the group is not necessarily the best for parts of this question, so Subhabrata might not get as enthusiastic responses as in some other lists (which i don't recollect at the moment, sorry). I didn't want to convey the sense t

Re: Few questions on SOAP

2010-02-18 Thread Muhammad Alkarouri
Your question is borderline if not out of topic in this group. I will make a few comments though. On Feb 18, 3:36 pm, joy99 wrote: > Dear Group, > > I was reading on SOA or Service Oriented Architecture for last few > days and got some questions. As this is a room for the expert computer > scient

Function attributes

2010-02-10 Thread Muhammad Alkarouri
just feels like there should be a way, but I am not able to verbalise a valid one at the moment, sorry. Regards, Muhammad Alkarouri -- http://mail.python.org/mailman/listinfo/python-list

Re: Consume an iterable

2010-01-23 Thread Muhammad Alkarouri
On 23 Jan, 13:46, Peter Otten <__pete...@web.de> wrote: > Peter Otten wrote: > > Duncan Booth wrote: > > >> Peter Otten <__pete...@web.de> wrote: > > >>> With next(islice(...), None) I seem to have found a variant that beats > >>> both  competitors. > > >> It has different behaviour for n==0 but I'

Re: Consume an iterable

2010-01-23 Thread Muhammad Alkarouri
On 23 Jan, 13:32, Peter Otten <__pete...@web.de> wrote: > Muhammad Alkarouri wrote: > > The next function performs much better. It is also much more direct > > for the purposes of consume and much more understandable (at least for > > me) as it doesn't require a spe

Re: Consume an iterable

2010-01-23 Thread Muhammad Alkarouri
On 23 Jan, 12:45, Peter Otten <__pete...@web.de> wrote: > Muhammad Alkarouri wrote: > > Thanks everyone, but not on my machine (Python 2.6.1, OS X 10.6) it's > > not: > > > In [1]: from itertools import count, islice > > > In [2]: from collections impor

Re: Consume an iterable

2010-01-23 Thread Muhammad Alkarouri
Thanks everyone, but not on my machine (Python 2.6.1, OS X 10.6) it's not: In [1]: from itertools import count, islice In [2]: from collections import deque In [3]: i1=count() In [4]: def consume1(iterator, n): ...: deque(islice(iterator, n), maxlen=0) ...: ...: In [5]: i2=count(

Consume an iterable

2010-01-22 Thread Muhammad Alkarouri
, say, the following code? def consume(iterator, n): for _ in islice(iterator, n): pass Regards, Muhammad Alkarouri -- http://mail.python.org/mailman/listinfo/python-list

Is __mul__ sufficient for operator '*'?

2009-10-19 Thread Muhammad Alkarouri
nsupported operand type(s) for *: 'Maybe' and 'int' The farthest I can go in this is that I presume that __mul__ (as called by operator *) is supposed to be a bound method while I am returning a lambda function. Is this correct? And How can I make the implementation support s