Re: [Tutor] IDE for Python

2010-10-07 Thread aug dawg
I like gedit alot. It has a nice amount of plugins, like a filebrowser and various embedded terminals. Check it out. It's available for all platforms. It's at gedit.org. On Thu, Oct 7, 2010 at 7:42 PM, Mark Weil wrote: > There's also eric. It's geared towards pyqt slightly, but I do a lot of >

Re: [Tutor] IDE for Python

2010-10-07 Thread Mark Weil
There's also eric. It's geared towards pyqt slightly, but I do a lot of wxpython development in it as well. It's got project management and svn plugins, too. http://eric-ide.python-projects.org/ On Fri, Oct 8, 2010 at 6:01 AM, Sayth Renshaw wrote: > > Message: 5 >> Date: Thu, 07 Oct 2010 20:08:10

Re: [Tutor] new turtle module

2010-10-07 Thread Alan Gauld
"roberto" wrote is it correct to overwrite the turtle.py and turtle.pyc files I'd overwrite the .py file but get Python to generate a new .pyc for you just to ensure compatibility. just type import turtle at the >>> prompt. HTH, Alan G ___ Tu

Re: [Tutor] PYTHON QUOTES ISSUE

2010-10-07 Thread Alan Gauld
"Susana Iraiis Delgado Rodriguez" wrote How can I write a statement to execute the following: C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr R1G-GEODESIA.shp -where "LAYER = 'R1G-GEODESIA'" tapalpa_05_plani_point.dbf, I want my uotput to look like this. erm, like what? The command stri

Re: [Tutor] IDE for Python

2010-10-07 Thread Sayth Renshaw
> Message: 5 > Date: Thu, 07 Oct 2010 20:08:10 +0200 > From: Knacktus > To: tutor@python.org > Subject: Re: [Tutor] IDE for Python > Message-ID: <4cae0c8a.4040...@googlemail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Am 07.10.2010 17:23, schrieb Juan Jose Del Toro: > >

Re: [Tutor] Non-ASCII

2010-10-07 Thread Evert Rol
> I'm going through an online tutorial for Jython (www.jython.org). I can't > find a place to ask a question on that site so I thought I'd try here. I > believe the code is supposed to traverse a directory, identifying file types. > The script is failing with the following message: > > File ""

Re: [Tutor] PYTHON QUOTES ISSUE

2010-10-07 Thread Susana Iraiis Delgado Rodriguez
Hello taserian and Antonio! Thank you both for taking the time to answer my question. With taserian's code it gives me the next output: C... ogr2ogr T21-PUENTESshp -where "LAYER=T21-PUENTES" tapalpa_05_plani_line.shp but the output I need is: C... ogr2ogr T21-PUENTESshp -where "LAYER=' T21-PUENTES

Re: [Tutor] IDE for Python

2010-10-07 Thread Knacktus
Am 07.10.2010 17:23, schrieb Juan Jose Del Toro: Dear List; In your experience what is the best IDE for Python? I'm using Wing IDE. Very good overall package. I like especially the debug probe, which is like an interactive shell in the current stack. To me it's a good balance between features

Re: [Tutor] new turtle module

2010-10-07 Thread Vern Ceder
On Thu, Oct 7, 2010 at 1:19 PM, roberto wrote: > hello, > i want to use the turtle module described in > http://docs.python.org/library/turtle.html > > since the module in my python2.5 is a little bit outdated; > > is it correct to overwrite the turtle.py and turtle.pyc files in my current > '/us

[Tutor] Non-ASCII

2010-10-07 Thread Shawn Matlock
Hello, I'm going through an online tutorial for Jython (www.jython.org). I can't find a place to ask a question on that site so I thought I'd try here. I believe the code is supposed to traverse a directory, identifying file types. The script is failing with the following message: File "", l

[Tutor] new turtle module

2010-10-07 Thread roberto
hello, i want to use the turtle module described in http://docs.python.org/library/turtle.html since the module in my python2.5 is a little bit outdated; is it correct to overwrite the turtle.py and turtle.pyc files in my current '/usr/lib/python2.5/lib-tk/' directory with the ones holding the sa

Re: [Tutor] PYTHON QUOTES ISSUE

2010-10-07 Thread taserian
On Thu, Oct 7, 2010 at 12:48 PM, taserian wrote: > I'm adding some line breaks to make your text a little more readable. > > On Thu, Oct 7, 2010 at 9:55 AM, Susana Iraiis Delgado Rodriguez < > susana.delgad...@utzmg.edu.mx> wrote: > > Hello members: >> >> How can I write a statement to execute t

Re: [Tutor] PYTHON QUOTES ISSUE

2010-10-07 Thread taserian
I'm adding some line breaks to make your text a little more readable. On Thu, Oct 7, 2010 at 9:55 AM, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > Hello members: > > How can I write a statement to execute the following: > > C:/Archivos de programa/FWTools2.4.7/bin/o

Re: [Tutor] IDE for Python

2010-10-07 Thread Alan Gauld
"Juan Jose Del Toro" wrote In your experience what is the best IDE for Python? In my experience its vim and a couple of command shells. But that's to do with a)what I use Python for and b) many years experience using vim It may not work for you (and you could substitute emacs for vim if

Re: [Tutor] IDE for Python

2010-10-07 Thread Ken Green
I have been using Geany under Ubuntu 10.04. I rarely use IDLE. Ken On 10/07/2010 11:23 AM, Juan Jose Del Toro wrote: Dear List; In your experience what is the best IDE for Python? I've used SPE and IDLE, I've also seen people using Eclipse but which one do you recommend? -- ¡Saludos! / Gr

[Tutor] IDE for Python

2010-10-07 Thread Juan Jose Del Toro
Dear List; In your experience what is the best IDE for Python? I've used SPE and IDLE, I've also seen people using Eclipse but which one do you recommend? -- ¡Saludos! / Greetings! Juan José Del Toro M. jdeltoro1...@gmail.com Guadalajara, Jalisco MEXICO _

[Tutor] PYTHON QUOTES ISSUE

2010-10-07 Thread Susana Iraiis Delgado Rodriguez
Hello members: How can I write a statement to execute the following: C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr R1G-GEODESIA.shp -where "LAYER = 'R1G-GEODESIA'" tapalpa_05_plani_point.dbf, I want my uotput to look like this. Instead I'm getting this C:/Archivos de programa/FWTools2.4.7/bin/o

Re: [Tutor] validating user input for cli app

2010-10-07 Thread Alan Gauld
"Rance Hall" wrote I'd like to be able to just ask the question again, and re-validate the new input or offer a "press q to quit" option Thats what loops are for... The old GOTO syntax that everybody hates was ideal for this type of thing, if validation fails, just goto the question again

Re: [Tutor] wrap methods for logging purposes

2010-10-07 Thread Evert Rol
> I used a the recipe (http://aspn.activestate.com/ASPN/Coo.../Recipe/198078) > used to wrap methods for logging purposes. logging classes. But it does seem > to work well with classes inherit form other classes - i get recursion > errors! > > Here is an example of the classes .. > > class

[Tutor] wrap methods for logging purposes

2010-10-07 Thread Jojo Mwebaze
I used a the recipe (http://aspn.activestate.com/ASPN/Coo.../Recipe/198078) used to wrap methods for logging purposes. logging classes. But it does seem to work well with classes inherit form other classes - i get recursion errors! H

Re: [Tutor] validating user input for cli app

2010-10-07 Thread Steven D'Aprano
On Thu, 7 Oct 2010 12:09:31 pm Rance Hall wrote: > I know how to write the if statements to decide if the data entered > is valid or not, but I need a way to deal with what happens when it > is NOT valid. > > I'd like to be able to just ask the question again, and re-validate > the new input or of

Re: [Tutor] Prime Numbers

2010-10-07 Thread Steven D'Aprano
On Thu, 7 Oct 2010 12:41:07 pm Ryan Bridges wrote: > Hi, > I'm using Python 2.6.2 and I need to write a code so that when I use > an input, it will say if the number is prime or not. How do I do > this? Using the keyboard is probably the best way, although at a pinch you could copy and paste ind

Re: [Tutor] pymssql and encoding

2010-10-07 Thread Evert Rol
> >>> print customerName > ImmobiliŠre (whatever) > >>> customerName > 'Immobili\x8are (whatever)' > > There should be a small E with a grave accent (è) instead of the capital S > with a caron (Š) I'm getting. > > I've tried applying various encodings, but to no avail: > > When executed from

Re: [Tutor] Prime Numbers

2010-10-07 Thread Shantanoo
On Thu, Oct 7, 2010 at 07:11, Ryan Bridges wrote: > Hi, > I'm using Python 2.6.2 and I need to write a code so that when I use an > input, it will say if the number is prime or not. How do I do this? > > Following links would be useful: http://en.wikipedia.org/wiki/Prime_number http://en.wikiped

[Tutor] Prime Numbers

2010-10-07 Thread Ryan Bridges
Hi, I'm using Python 2.6.2 and I need to write a code so that when I use an input, it will say if the number is prime or not. How do I do this? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/

Re: [Tutor] pymssql and encoding

2010-10-07 Thread Emmanuel Ruellan
Perfect! Thanks Evert. I realise now that I don't fully grasp the concepts of encoding and collation and their relationship. -- Emmanuel On Wed, Oct 6, 2010 at 10:38 PM, Evert Rol wrote: > > > > >>> print customerName > > ImmobiliŠre (whatever) > > >>> customerName > > 'Immobili\x8are (whate

[Tutor] validating user input for cli app

2010-10-07 Thread Rance Hall
I have the following scenario, during a cli app a function is called whose purpose is to get enough info from user to create a database record. Clearly the input values need to be validated. How do I handle the situation where validation fails, but the answer to the question is required. so far