[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2017-08-31 Thread Muhammad Alkarouri
Muhammad Alkarouri added the comment: Now that the descriptor protocol has `__set_name__`, does this make any difference to this issue? The property can know its name, subject to a suitable patch. -- nosy: +Muhammad Alkarouri ___ Python tracker

[issue9980] str(float) failure

2010-10-15 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: On 15 October 2010 06:52, Martin v. Löwis rep...@bugs.python.org wrote: Martin v. Löwis mar...@v.loewis.de added the comment: Interesting. I'd like to propose than that this is resolved as won't fix, i.e. embedding Python

[issue9980] str(float) failure

2010-10-14 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: I cam across another issue that was triggered by the same problem. I am explaining it here though I am not sure if it is going to affect the solution one way or the other. The issue is explained in the post http://stackoverflow.com

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

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 subhakolkata1...@gmail.com 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

Function attributes

2010-02-10 Thread Muhammad Alkarouri
? It 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

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: Excellent solution and comments. Many thanks. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-24 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: Mea culpa. Not knowing the conventions here, I closed the ticket, which probably resulted in florent's feedback. I will leave you to it then. -- ___ Python tracker rep...@bugs.python.org

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]:

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 import deque In [3]: i1=count() In [4]: def consume1

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 specialized data structure which

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'm sure that's easily

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-01-23 Thread Muhammad Alkarouri
New submission from Muhammad Alkarouri malkaro...@gmail.com: Based on the discussion at: http://groups.google.co.uk/group/comp.lang.python/browse_thread/thread/c1ae3513a31eb63e/d0701a9902732c67?hl=en#d0701a9902732c67 In the documentation of itertools, one of the functions provided

Consume an iterable

2010-01-22 Thread Muhammad Alkarouri
, 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
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 such operators? Cheers, Muhammad Alkarouri -- http://mail.python.org/mailman/listinfo

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-12-19 Thread Muhammad Alkarouri
Muhammad Alkarouri malkaro...@gmail.com added the comment: 2008/12/18 Benjamin Peterson rep...@bugs.python.org: Benjamin Peterson musiccomposit...@gmail.com added the comment: I've uploaded a .dmg for 2.6.1 to http://www.python.org/ftp/python/2.6.1/. Could you please test it? Just

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-12-05 Thread Muhammad Alkarouri
Muhammad Alkarouri [EMAIL PROTECTED] added the comment: Now that Python 2.6.1 is out, can we expect a new OS X installer built correctly? I think this is pretty important.. -- nosy: +malkarouri ___ Python tracker [EMAIL PROTECTED] http