Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Roshan Mathews
On Wed, Oct 21, 2009 at 12:05 PM, Sidharth Kuruvila sidharth.kuruv...@gmail.com wrote:  d = {a:Hello}  print d.setdefault(a, blah)  Even though the string blah is not being used an object has to be created to represent it. Even worse, you could put some complex expression in there expecting

Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Anand Chitipothu
On Wed, Oct 21, 2009 at 12:05 PM, Sidharth Kuruvila sidharth.kuruv...@gmail.com wrote: Hi,  d = {a:Hello}  print d.setdefault(a, blah)  Even though the string blah is not being used an object has to be created to represent it. Even worse, you could put some complex expression in there

Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Anand Chitipothu
What do you mean when you use the word interned? $ pydoc intern Help on built-in function intern in module __builtin__: intern(...) intern(string) - string ``Intern'' the given string. This enters the string in the (global) table of interned strings whose purpose is to speed up

Re: [BangPypers] Open Calais ? Bellenix meeting

2009-10-21 Thread Arvind Jamuna Dixit
There is a small correction with respect to the percentage value given to the entity. I previously thought that the percentage value with the entity indicated how sure OpenCalais was on the element being an entity. That turns out to be incorrect. Thomas from OpenCalais team mailed me the

Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Roshan Mathews
On Wed, Oct 21, 2009 at 12:31 PM, Anand Chitipothu anandol...@gmail.com wrote:    ``Intern'' the given string.  This enters the string in the (global)    table of interned strings whose purpose is to speed up dictionary lookups.    Return the string itself or the previously interned string

Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Sidharth Kuruvila
Hi, My bad, that was a bit of laziness on my part. The reason why my code was silly is not to do with interning though that does happen for strings. Literals, that is numbers and string literals and a few others are loaded as constants. So the cost of constructing them in your code has already

Re: [BangPypers] An interesting beginner post at Stackoverflow

2009-10-21 Thread Lakshman Prasad
On a similar note, here's a question I recently asked and obtained good input about tail recursion optimization. http://stackoverflow.com/questions/1414581/python-recursive-program-to-prime-factorize-a-number On Wed, Oct 21, 2009 at 1:14 PM, Sidharth Kuruvila sidharth.kuruv...@gmail.com wrote:

Re: [BangPypers] Posting style

2009-10-21 Thread Dhananjay Nene
On Tue, Oct 20, 2009 at 5:31 PM, Kenneth Gonsalves law...@au-kbc.orgwrote: On Tuesday 20 Oct 2009 5:28:52 pm Noufal Ibrahim wrote: On Tue, Oct 20, 2009 at 3:53 PM, Baiju M mba...@zeomega.com wrote: Hi, I hope this link would be useful for some newly joined members:

Re: [BangPypers] Posting style

2009-10-21 Thread Kenneth Gonsalves
On Wednesday 21 Oct 2009 1:59:13 pm Dhananjay Nene wrote: I have a feeling, far out in the future when driving on either side of the road will be just as convenient, how will that be achieved? If people chose which side they wanted to drive on would they not crash into each other? -- regards

[BangPypers] needed a project proposal

2009-10-21 Thread Kenneth Gonsalves
hi, there is a person who is a brilliant mathematician/cryptographer who has recently taken up python. I need a solid project proposal to hook him - preferably something in an existing project that really needs to be done. Any ideas? -- regards Kenneth Gonsalves Senior Project Officer

[BangPypers] Let's have an indepth session on some opensolaris technologies

2009-10-21 Thread Sriram Narayanan
[BCC: Various Bangalore tech lists that I'm a member of] Folks: A number of us have heard of opensolaris and of technologies such as ZFS, Dtrace, Zones, etc. After giving small intro sessions on ZFS and on Zones, I've been approached by various attendees who have wanted an indepth intro to

Re: [BangPypers] Let's have an indepth session on some opensolaristechnologies

2009-10-21 Thread Srinivas Reddy Thatiparthy
Some time ago I read an article regarding Linus complaining about the license of a file system,Is it the ZFS? Anyway I am not much into linux, just want to double check.. Regards, Srinivas Reddy Thatiparthy. -- I hear and I forget. I see and I remember. I do and I understand. -