Re: Why Can't I Delete a File I Created with Win XP?

2009-12-05 Thread Tom Pacheco
W. eWatson wrote: I'm trying to store analytic data in a folder called Analysis. If the user doesn't have the folder, I make one for him, and then write a txt file into it. In this case a histogram of values, x and frequency. However, it appears that I made a mistake somewhere and cannot delete

Re: "Advanced" Python programming book?

2010-01-10 Thread Tom Pacheco
Ryniek90 wrote: I've just finished reading a sort of beginner Python book, and I know quite a bit now but I'm looking for a book that can teach me advanced aspects of Python - code optimisation, threading, etc. Any recommendations? Cheers. Check those link: http://www.amazon.com/Beginni

Re: importing modules from higher level directory

2010-06-25 Thread Tom Pacheco
from .. import module or from ..module import foo this is intended for use within packages. see http://www.python.org/dev/peps/pep-0328/ also search for python relative import - tom Nathan Huesken wrote: Hi, Is it somehow possible to import modules from *.py files in a higher level directo

Re: 2D List

2010-10-11 Thread Tom Pacheco
On 10/11/2010 12:24 PM, Fasihul Kabir wrote: a = [0]*5 for i in range(0, 4): for j in range(0, i): a[i].append(j) why the above codes show the following error. and how to overcome it. Traceback (most recent call last): File "", line 3, in a[i].append(j) AttributeError: 'int

Re: socket.sendto / UDP problem

2010-10-22 Thread Tom Pacheco
On 10/21/2010 4:05 PM, Todd Walter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 21 Oct 2010 17:03:58 +0100 MRAB wrote: On 21/10/2010 15:57, Todd Walter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 21 Oct 2010 00:07:58 +0100 MRAB wrote: [snip] The docs f

Re: socket.sendto / UDP problem

2010-10-22 Thread Tom Pacheco
On 10/21/2010 4:05 PM, Todd Walter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 21 Oct 2010 17:03:58 +0100 MRAB wrote: On 21/10/2010 15:57, Todd Walter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 21 Oct 2010 00:07:58 +0100 MRAB wrote: [snip] The docs f