On 05/01/06, <b class="gmail_sendername">Danny Yoo</b> &lt;<a href="mailto:dyoo@hkn.eecs.berkeley.edu">dyoo@hkn.eecs.berkeley.edu</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>---------- Forwarded message ----------<br>Date: Fri, 6 Jan 2006 01:53:41 +0530<br>From: Intercodes &lt;<a href="mailto:intercodes@gmail.com">intercodes@gmail.com</a>&gt;<br>To: Danny Yoo &lt;<a href="mailto:dyoo@hkn.eecs.berkeley.edu">
dyoo@hkn.eecs.berkeley.edu</a>&gt;<br>Subject: Re: [Tutor] Avoiding repetetive pattern match in re module<br><br>Hello Danny,<br><br>Thanks for the response. The read() and join() method worked like charm. I<br>couldn't tune the 
sets.Set() though. It eliminated duplicates from the list,<br>but I couldn't find a method in sets to print only the set data ( instead I<br>get &quot; Set([data1,data2])&quot; when a set object is printed )</blockquote><div>
<br>How about this<br>&gt;&gt;&gt; s = set([1,2,2,3,4,3,3,5])<br>&gt;&gt;&gt; list(s)<br>[1, 2, 3, 4, 5]<br>Then it just prints out like a list. Also if the objects in the list are strings you can use the .join method to turn it into a string.
<br></div><br></div><br>