Re: [Tutor] Read same instance twice

2008-10-27 Thread Kent Johnson
On Mon, Oct 27, 2008 at 4:03 PM, Øyvind <[EMAIL PROTECTED]> wrote: > Hello. > > I am trying to gather some information from a webpage: > > side = urlopen("http://www.website.no";) > rawstr = r"""spy.target="_top">(.*?)$""" > rawstr2 = r"""spy.target2="_top">(.*?)$""" > > compile_obj = re.compile(ra

Re: [Tutor] Read same instance twice

2008-10-27 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Øyvind wrote: > Hello. > > I am trying to gather some information from a webpage: > > side = urlopen("http://www.website.no";) > rawstr = r"""spy.target="_top">(.*?)$""" > rawstr2 = r"""spy.target2="_top">(.*?)$""" > > compile_obj = re.compile(rawst

[Tutor] Read same instance twice

2008-10-27 Thread Øyvind
Hello. I am trying to gather some information from a webpage: side = urlopen("http://www.website.no";) rawstr = r"""spy.target="_top">(.*?)$""" rawstr2 = r"""spy.target2="_top">(.*?)$""" compile_obj = re.compile(rawstr, re.IGNORECASE| re.MULTILINE| re.VERBOSE | re.UNICODE) compile_obj2 = re.com

Re: [Tutor] Immediately committing changes to shelve files

2008-10-27 Thread Kent Johnson
On Sun, Oct 26, 2008 at 10:37 PM, Mike Meisner <[EMAIL PROTECTED]> wrote: > I'm running a number of test cases and saving their results in a shelve > file. > > A full run of the test cases takes about 36 hours. During that time, if > something interrupts the run (e.g., a power outage, which has ha

Re: [Tutor] Scaling a Tkinter canvas widget

2008-10-27 Thread Kent Johnson
On Sun, Oct 26, 2008 at 10:20 PM, Mike Meisner <[EMAIL PROTECTED]> wrote: > I would like to plot various datasets on a Tkinter canvas widget. > > The problem is that each of my datasets have different x,y extremes. For > instance, one dataset may have xmin = 0, xmax = 300, ymin = 0, ymax = 300; >