Re: [Tutor] MemoryError !!! Help Required

2008-04-06 Thread Andreas Kostyrka
Am Montag, den 07.04.2008, 00:32 -0500 schrieb Luke Paireepinart: > devj wrote: > > Hi, > > I am making a web crawler using Python.To avoid dupliacy of urls,i have to > > maintain lists of downloaded urls and to-be-downloaded urls ,of which the > > latter grows exponentially,resulting in a MemoryE

Re: [Tutor] MemoryError !!! Help Required

2008-04-06 Thread Luke Paireepinart
devj wrote: > Hi, > I am making a web crawler using Python.To avoid dupliacy of urls,i have to > maintain lists of downloaded urls and to-be-downloaded urls ,of which the > latter grows exponentially,resulting in a MemoryError exception .What are > the possible ways to avoid this ?? > get more R

Re: [Tutor] Creating Sudoku

2008-04-06 Thread Luke Paireepinart
Tom Haynes wrote: > > G’day, > > > > I am trying to create a simple Sudoku game that takes a simple > raw_input of a, r, c or something similar (where a = row, r = column, > c = number to place there) and place it in a Sudoku game square. I > have tried many times to start it from different an

[Tutor] Creating Sudoku

2008-04-06 Thread Tom Haynes
G’day, I am trying to create a simple Sudoku game that takes a simple raw_input of a, r, c or something similar (where a = row, r = column, c = number to place there) and place it in a Sudoku game square. I have tried many times to start it from different angles and just can’t do it. If someon

[Tutor] Question about global variables on modules

2008-04-06 Thread Tiago Katcipis
I know its not such a pretty thing to have global variables but its only for an exercise my teacher told to do. Its a function to calculate the results of a matrix using jacob. I want to inside the module (inside a function on the module )assign a value to a global variable, but the only way i foun

[Tutor] MemoryError !!! Help Required

2008-04-06 Thread devj
Hi, I am making a web crawler using Python.To avoid dupliacy of urls,i have to maintain lists of downloaded urls and to-be-downloaded urls ,of which the latter grows exponentially,resulting in a MemoryError exception .What are the possible ways to avoid this ?? -- View this message in context: h

Re: [Tutor] socket / over network

2008-04-06 Thread Kim Hawtin
Hi Nathan, Nathan McBride wrote: > Alan Gauld wrote: >> "Nathan McBride" <[EMAIL PROTECTED]> wrote >>> I'm pretty tired of the lame backup solution we have at work. >>> Could anyone point me to a (more or less newbieish) example of how >>> to >>> have python open a socket on one box and get data f

Re: [Tutor] socket / over network

2008-04-06 Thread Nathan McBride
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan Gauld wrote: > "Nathan McBride" <[EMAIL PROTECTED]> wrote > > Hi Nathan, > > Please don't reply to an existing message to start a new discussion. > It messes up those of us using threaded mail/news readers and > increases the likelihood that your

Re: [Tutor] PyMOTW: difflib

2008-04-06 Thread Dick Moores
At 04:39 PM 4/6/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote >> > Copied the data into my demo_pymotw-difflib.py, >> > deleted the line "from difflib_data import *", >> > and ran it >> >>I'm curious. Why did you do that? > OK, I put it back in, changing the filename to > demo_

Re: [Tutor] PyMOTW: difflib

2008-04-06 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote >> > Copied the data into my demo_pymotw-difflib.py, >> > deleted the line "from difflib_data import *", >> > and ran it >> >>I'm curious. Why did you do that? > OK, I put it back in, changing the filename to > demo_pymotw-difflib_error.py. > See

Re: [Tutor] PyMOTW: difflib

2008-04-06 Thread Dick Moores
At 02:22 PM 4/6/2008, Alan Gauld wrote: >"Dick Moores" <[EMAIL PROTECTED]> wrote > > > I downloaded that compressed file and found difflib_data.py (see it > > at ). Copied the data > > into > > my demo_pymotw-difflib.py, deleted the line "from difflib_dat

Re: [Tutor] PyMOTW: difflib

2008-04-06 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote > I downloaded that compressed file and found difflib_data.py (see it > at ). Copied the data > into > my demo_pymotw-difflib.py, deleted the line "from difflib_data > import > *", and ran it I'm curious. Why di

Re: [Tutor] PyMOTW: difflib

2008-04-06 Thread Dick Moores
At 08:24 AM 4/6/2008, Martin Walsh wrote: >Dick Moores wrote: > > See < http://blog.doughellmann.com/2007/10/pymotw-difflib.html> > > > > And my try with the Differ example, > > , which also shows the error, > > > > "E:\Python25\pythonw.exe" -u "E:\PythonW

Re: [Tutor] PyMOTW: difflib

2008-04-06 Thread Martin Walsh
Dick Moores wrote: > See < http://blog.doughellmann.com/2007/10/pymotw-difflib.html> > > And my try with the Differ example, < > http://py77.python.pastebin.com/f41ec1ae8>, which also shows the error, > > "E:\Python25\pythonw.exe" -u "E:\PythonWork\demo_pymotw-difflib.py" > Traceback (most recent

Re: [Tutor] Diff for Python

2008-04-06 Thread Dick Moores
I like ExamDiff, and find the free version sufficient for my purposes. < http://www.prestosoft.com/edp_examdiff.asp> "ExamDiff is a freeware Windows 95/98/Me/NT/2000/XP/2003/Vista tool for visual file comparison. It has a number of simple and convenient features that many users have been asking f

[Tutor] Fw: Diff for Python

2008-04-06 Thread ALAN GAULD
forwarding to tutor. Mark, please use Reply-All for tutor messages... - Forwarded Message From: Marc Tompkins <[EMAIL PROTECTED]> To: Alan Gauld <[EMAIL PROTECTED]> Sent: Saturday, 5 April, 2008 11:45:47 PM Subject: Re: [Tutor] Diff for Python On Sat, Apr 5, 2008 at 3:04 PM, Alan Gauld <