Re: Equal sets with unequal print and str() representations

2011-10-16 Thread Terry Reedy
On 10/16/2011 9:17 PM, Ian Kelly wrote: On Sun, Oct 16, 2011 at 5:52 PM, Ganesh Gopalakrishnan wrote: This probably is known, but a potential pitfall (was, for me) nevertheless. I suspect it is due to hash collisions between 's3' and 's13' in this case? It happens only rarely, depending on the

Re: Equal sets with unequal print and str() representations

2011-10-16 Thread Ian Kelly
On Sun, Oct 16, 2011 at 5:52 PM, Ganesh Gopalakrishnan wrote: > This probably is known, but a potential pitfall (was, for me) nevertheless. > I suspect it is due to hash collisions between 's3' and 's13' in this case? > It happens only rarely, depending on the contents of the set. I'm not sure ex

Equal sets with unequal print and str() representations

2011-10-16 Thread Ganesh Gopalakrishnan
This probably is known, but a potential pitfall (was, for me) nevertheless. I suspect it is due to hash collisions between 's3' and 's13' in this case? It happens only rarely, depending on the contents of the set. >>> S1 = {'s8', 's3', 's2', 's0', 's7', 's6', 's4', 's13', 's14'} S1 = {'s8', 's

Re: python.org appears to be down

2011-10-16 Thread Chris Angelico
On Mon, Oct 17, 2011 at 8:35 AM, Ian wrote: > Hopefully someone who can do something about it will read this. Working for me. What are you seeing as down? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

python.org appears to be down

2011-10-16 Thread Ian
Hopefully someone who can do something about it will read this. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with beginner form using lpthw.web

2011-10-16 Thread Emile van Sebille
On 10/15/2011 8:03 AM pngrv said... Please Use This Form To Request Resources Name: Project: # of Locations: # of Engines: 1 2 3 4 5 6 7 8 9+ Where do you close this tag? $d

Re: Reading a file into a data structure....

2011-10-16 Thread Ian Kelly
On Sat, Oct 15, 2011 at 8:18 PM, MrPink wrote: > I did not understand what a tuple was. > So it was very hard for me to understand what a namedtuple was and > follow the code. > Then I looked up the word at dictionary.com and got this: > http://dictionary.reference.com/browse/tuple > > tuple:  com

callling python function in c

2011-10-16 Thread masood shaik
Hi I am trying to call python function from c code.The following program i got from the web source while i am trying to run this program it throws an segmentation fault.I am working on Ubuntu 10.10 version.Can anyone guide me please The following program call_function.c // call_function.c - A

Re: Loop through a dict changing keys

2011-10-16 Thread Jon Clements
On Oct 16, 12:53 am, PoD wrote: > On Sat, 15 Oct 2011 11:00:17 -0700, Gnarlodious wrote: > > What is the best way (Python 3) to loop through dict keys, examine the > > string, change them if needed, and save the changes to the same dict? > > > So for input like this: > > {'Mobile': 'string', 'cont