Re: Download .jpg from web

2005-01-06 Thread ralobao
You could try using: urlllib.urlretrieve ...it may be faster. -- http://mail.python.org/mailman/listinfo/python-list

Re: ZipFile and file rigths

2005-07-10 Thread ralobao
You can use os.chmod to fix it. Here the description: os.chmod Docstring: chmod(path, mode) Change the access permissions of a file. Cheers, perchef escreveu: > hi, > > i have written this small code which allow me to unzip files using > python : > > import zipfile > import os > impor

Re: beginner question fibonacci

2005-07-17 Thread ralobao
The case is that Python in attribution commands solves first the right side, so he atributes the vars. So the a+b expression is executed first. Joon escreveu: > >>> # Fibonacci series: > ... # the sum of two elements defines the next > ... a, b = 0, 1 > >>> while b < 10: > ... print b > ..

Problem while trying to extract a directory from a zipfile.

2004-12-07 Thread ralobao
I have this code: try: file = zipfile.ZipFile(nome_arquivo) Gauge.start() #inicia o Gauge for element in file.namelist(): try: newFile = open(diretorio + element,"wb") except: newFile = open(diretorio + element + '