Re: Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-21 Thread Benjamin Kaplan
On Tue, Mar 22, 2011 at 2:27 AM, Julien wrote: > Hi, > > I'm having problems when typing the up/down arrows in the Python 2.4 > interpreter (exact version: Python 2.4.6 (#1, Mar  3 2011, 15:45:53) > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin). > > When I press the up arrow it outputs "^[[A" and

Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-21 Thread Julien
Hi, I'm having problems when typing the up/down arrows in the Python 2.4 interpreter (exact version: Python 2.4.6 (#1, Mar 3 2011, 15:45:53) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin). When I press the up arrow it outputs "^[[A" and when I press the down arrow it outputs "^[[B". I've google

Re: how to install the PLY (Python Lex-Yacc) package in windows

2011-03-21 Thread Chris Rebert
On Mon, Mar 21, 2011 at 10:53 PM, Sachin Kumar Sharma wrote: > BB, > > I downloaded PLY (Python Lex-Yacc) package for a script use it for parsing > and looking to install under windows. > > It has setup.py file, and the command mentioned for installation is > > Python setup.py install > > Doesn’t

how to install the PLY (Python Lex-Yacc) package in windows

2011-03-21 Thread Sachin Kumar Sharma
BB, I downloaded PLY (Python Lex-Yacc) package for a script use it for parsing and looking to install under windows. It has setup.py file, and the command mentioned for installation is Python setup.py install Doesn't work for windows. Any advice. Cheers Sachin *

Re: Decorator Syntax

2011-03-21 Thread Ian Kelly
On Mon, Mar 21, 2011 at 7:31 PM, Benjamin Kaplan wrote: > On Mon, Mar 21, 2011 at 8:59 PM, Mike Patterson > wrote: >> In my Python class the other day, the professor was going over >> decorators and he briefly mentioned that there had been this huge >> debate about the syntax and using the @ sign

Free Software University - Python Certificate

2011-03-21 Thread Giovani
Hi all, my name is Juan and I suscribed to this website called "Free Software University", opened recently. One of the goals of this website is making some free high quality courses, one of them about Python. I want to say this message is not SPAM, is a call for every one who can and wants help us

[no subject]

2011-03-21 Thread Sniper
-- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator Syntax

2011-03-21 Thread Benjamin Kaplan
On Mon, Mar 21, 2011 at 8:59 PM, Mike Patterson wrote: > In my Python class the other day, the professor was going over > decorators and he briefly mentioned that there had been this huge > debate about the syntax and using the @ sign to signify decorators. > > I read about the alternative forms p

Re: Proxy authentication required

2011-03-21 Thread python
On Mar 21, 7:02 pm, Chris Rebert wrote: > On Mon, Mar 21, 2011 at 2:38 AM, gervaz wrote: > > Hi all, > > I've got to download some web pages but I'm behind a proxy. So far > > this is what I've used without any successful result receiving the > > error: "urllib.error.HTTPError: HTTP Error 407: Pr

Decorator Syntax

2011-03-21 Thread Mike Patterson
In my Python class the other day, the professor was going over decorators and he briefly mentioned that there had been this huge debate about the syntax and using the @ sign to signify decorators. I read about the alternative forms proposed here (http:// www.python.org/dev/peps/pep-0318/#syntax-al

Re: Twisted and txJSON-RPC

2011-03-21 Thread Floris Bruynooghe
On Sunday, April 11, 2010 5:04:49 PM UTC+1, writeson wrote: > I get an error message: error: docs/PRELUDE.txt: No such file or > directory The setup.py code is trying to be too clever and the released package is missing files it requires. The easiest way to fix it is to simply get the latests c

Re: Proxy authentication required

2011-03-21 Thread Chris Rebert
On Mon, Mar 21, 2011 at 2:38 AM, gervaz wrote: > Hi all, > I've got to download some web pages but I'm behind a proxy. So far > this is what I've used without any successful result receiving the > error: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication > Required ( The ISA Server requ

Re: py to exe converter

2011-03-21 Thread Santoso Wijaya
Nope. All the way to 2.7. [1] ~/santa [1] http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ On Mon, Mar 21, 2011 at 1:29 PM, Alan Harris-Reid wrote: > According to //sourceforge.net/projects/py2exe/files/, the latest version > only goes as far as Python2.5 :-( > > Alan > > ---

Re: py to exe converter

2011-03-21 Thread Alan Harris-Reid
According to //sourceforge.net/projects/py2exe/files/, the latest version only goes as far as Python2.5 :-( Alan On 21/03/2011 19:47, Santoso Wijaya wrote: There's also py2exe: http://www..py2exe.org/

Re: In messageBarna wrote:Can???t understand the point to it. ???GUI automation???

2011-03-21 Thread Roberto Salazar
Oh don't be obtuse, dude. GUI automation is much used for webbots and data scraping bamong other things. Why do you think so many sites are starting to use that irritating "Captcha" technology? To block GUI-manipulating scripts, of course. Though, for blind people Captcha makes navigation on som

Re: py to exe converter

2011-03-21 Thread Santoso Wijaya
There's also py2exe: http://www.py2exe.org/ ~/santa On Mon, Mar 21, 2011 at 11:06 AM, Alan Harris-Reid wrote: > On 19:59, PATRICIA MEDINA wrote: > > I know there is a converter for python 2.x to executable file, but is > there one for python 3.x yet? > > > I use cx_Freeze without any problems

Re: py to exe converter

2011-03-21 Thread Alan Harris-Reid
On 19:59, PATRICIA MEDINA wrote: I know there is a converter for python 2.x to executable file, but is there one for python 3.x yet? I use cx_Freeze without any problems (//cx-freeze.sourceforge.net/) HTH Alan -- http://mail.python.org/mailman/listinfo/python-list

Re: os.stat bug?

2011-03-21 Thread Nobody
On Mon, 21 Mar 2011 09:32:11 +0100, Laszlo Nagy wrote: > So the state of the process changes to "STOP", but the program does not > stop until the os.stat call returns back (sometimes for 30 seconds). > > Could it be a problem with the operation system? Is it possible that an > os.stat call requ

py to exe converter

2011-03-21 Thread PATRICIA MEDINA
I know there is a converter for python 2.x to executable file, but is there one for python 3.x yet? -- http://mail.python.org/mailman/listinfo/python-list

Re: side by side python

2011-03-21 Thread FELD Boris
Yes, i did not mention this solution, using virtualenv is a very good practice, but before create a virtualenv with a specific version of python, you must have installed it globally, isn't it ? Regards, -- FELD Boris Sent with Sparrow On lundi 21 mars 2011 at 14:45, macm wrote: > On Mar 21, 9:

Re: side by side python

2011-03-21 Thread Robert
On Mar 21, 9:45 am, macm wrote: > On Mar 21, 9:31 am, Robert wrote: > > > Can I install Python 2.7 and 3.2 (from python.org) side by side on OSX > > without them stepping all over each other? > > Yes, sure! Look for "python environment" > > http://pypi.python.org/pypi/virtualenv > > Regards Than

Re: side by side python

2011-03-21 Thread macm
On Mar 21, 9:31 am, Robert wrote: > Can I install Python 2.7 and 3.2 (from python.org) side by side on OSX > without them stepping all over each other? Yes, sure! Look for "python environment" http://pypi.python.org/pypi/virtualenv Regards -- http://mail.python.org/mailman/listinfo/python-list

Re: [OSX] side by side python

2011-03-21 Thread sigzero
Thanks! Oh, how do you like Sparrow vs Mail.app? On Mon, Mar 21, 2011 at 9:30 AM, FELD Boris wrote: > Yes, no problem. Follow the installation normally; if you want to change > your default python version to a new one, you need to launch "Update Shell > Profile.command" in your installation path

Re: [OSX] side by side python

2011-03-21 Thread FELD Boris
Yes, no problem. Follow the installation normally; if you want to change your default python version to a new one, you need to launch "Update Shell Profile.command" in your installation path (/Applications/Python X.X/) or choose the "Update Shell Profile" during the installation. No specific pr

[OSX] side by side python

2011-03-21 Thread Robert
Can I install Python 2.7 and 3.2 (from python.org) side by side on OSX without them stepping all over each other? -- http://mail.python.org/mailman/listinfo/python-list

How to build and upload eggs to pypi?

2011-03-21 Thread morphex
Hi, I have a couple of project which are on PyPi, and now I'd like to update some of them. Is there a good howto somewhere, showing how to add new versions (instead of updating one that's already there) etc? -Morten -- http://mail.python.org/mailman/listinfo/python-list

Re: Bounds checking

2011-03-21 Thread Jean-Michel Pichavant
Martin De Kauwe wrote: On Mar 21, 9:43 pm, Jean-Michel Pichavant wrote: Martin De Kauwe wrote: Sorry, are you trying to say that it is not practical to write correct code that isn't buggy? Well, you're honest, at least, still I can't help but feel that you're admitting defeat before ev

Re: Bounds checking

2011-03-21 Thread Martin De Kauwe
On Mar 21, 9:43 pm, Jean-Michel Pichavant wrote: > Martin De Kauwe wrote: > >> Sorry, are you trying to say that it is not practical to write correct > >> code that isn't buggy? Well, you're honest, at least, still I can't help > >> but feel that you're admitting defeat before even starting. > > >

Re: Bounds checking

2011-03-21 Thread Jean-Michel Pichavant
Martin De Kauwe wrote: Sorry, are you trying to say that it is not practical to write correct code that isn't buggy? Well, you're honest, at least, still I can't help but feel that you're admitting defeat before even starting. No. What I am saying is the code is written has been well teste

Re: os.stat bug?

2011-03-21 Thread Laszlo Nagy
On 2011-03-21 10:58, Martin v. Loewis wrote: Could it be a problem with the operation system? Is it possible that an os.stat call requires 100% CPU power from the OS? Or is it a problem with the Python implementation? There is a chance that the CPU usage actually comes from the thread doing slee

Re: class error

2011-03-21 Thread Jean-Michel Pichavant
monkeys paw wrote: OK, i overlooked that and the error was not very enlightening. Thanks very much. "module.__init__() takes at most 2 arguments (3 given)" Are you sure about the clueless error message ? :) JM -- http://mail.python.org/mailman/listinfo/python-list

Re: os.stat bug?

2011-03-21 Thread Martin v. Loewis
> Could it be a problem with the operation system? Is it possible that an > os.stat call requires 100% CPU power from the OS? Or is it a problem > with the Python implementation? There is a chance that the CPU usage actually comes from the thread doing sleep(). If you have a very short sleep time,

Re: os.utime

2011-03-21 Thread Christian Heimes
Am 21.03.2011 03:32, schrieb Dan Stromberg: > Well, it is, and it's not. It was originally called "creation time", but > many today find "change time" a better description of what it actually does, > sort of retroactively changing what the "c" means. This is because the > ctime reflects the chang

Proxy authentication required

2011-03-21 Thread gervaz
Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error: "urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires auth orization to fulfill the request. Access to the

Re: os.stat bug?

2011-03-21 Thread Christian Heimes
Am 21.03.2011 09:32, schrieb Laszlo Nagy: > I must also tell you that the os.stat call is taking long because this > system has about 7 million files on a slow disk. It would be normal for > an os.stat call to return after 10 seconds. I have no problem with that. > But I think that the 100% CPU

os.stat bug?

2011-03-21 Thread Laszlo Nagy
Hi All, I have a Python program that goes up to 100% CPU. Just like this (top): PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 80212 user1 2 440 70520K 16212K select 1 0:30 100.00% /usr/local/bin/python process_updates_ss_od.py -l 10 I ha

Re: Use cookies from a script in a browser

2011-03-21 Thread Rafael Durán Castañeda
I think thiscould help you 2011/3/18 gervaz > On 18 Mar, 22:52, Miki Tebeka wrote: > > You can use mechanize, which holds a cookie jar and can user the browser > cookies as w

Re: os.walk/list

2011-03-21 Thread Peter Otten
ecu_jon wrote: > yes i agree breaking stuff into smaller chunks is a good way to do it. > even were i to do something like > > def safe_copy() > f1=file(files ,'rb') > f2 = file(os.path.join(currentdir,fname,files)) > truth = md5.new(f1.read()).digest() == > md5.new(f2.read()).dig

Re: python time

2011-03-21 Thread Ulrich Eckhardt
ecu_jon wrote: > import time,os,string,getpass,md5,ConfigParser > from time import strftime,localtime You are importing the time module first, then import some symbols from the time module. This seems redundant to me. Note that after the "import time", the name "time" refers to the module you i