Re: [Tutor] (no subject)

2009-04-06 Thread David Duncan
On Mon, Apr 6, 2009 at 8:29 PM, David wrote: > Sifis Sifakis wrote: >> >> Hi, >> I'm a student in Applied Informatics and i need to make a project in >> Python. More specificaly,i have to create a simple online bookstore using >> Python. > > I would use Google App Engine; > > http://code.google.co

Re: [Tutor] Please use plain text.

2009-04-06 Thread Mark Tolonen
Signature.htmlI normally reply in whatever the original poster uses, because when I convert HTML to plain text it removes all the attribution indentation, making it difficult to tell who wrote what (see below...I converted this post back to plain text). HTML is generally painful to read unless

Re: [Tutor] Please use plain text.

2009-04-06 Thread Wayne Watson
Title: Signature.html That's strange--tiny image below. I use SeaMonkey, and it seems to be almost identical to Tbird. I tend to use html for my signature. I'm not sure what someone did to produce the tiny print below. Ah, I see, they apparently grabbed the image, and inserted it. When I grab i

Re: [Tutor] (no subject)

2009-04-06 Thread David
Sifis Sifakis wrote: Hi, I'm a student in Applied Informatics and i need to make a project in Python. More specificaly,i have to create a simple online bookstore using Python. I would use Google App Engine; http://code.google.com/appengine/docs/python/gettingstarted/ -- Powered by Gentoo

Re: [Tutor] unicode to plain text conversion

2009-04-06 Thread Kent Johnson
On Mon, Apr 6, 2009 at 6:48 PM, Pirritano, Matthew wrote: > Hello python people, > > I am a total newbie. I have a very large file > 4GB that I need to > convert from Unicode to plain text. I used to just use dos when the file > was < 4GB but it no longer seems to work. Can anyone point me to some

[Tutor] (no subject)

2009-04-06 Thread Sifis Sifakis
Hi, I'm a student in Applied Informatics and i need to make a project in Python. More specificaly,i have to create a simple online bookstore using Python. While not having previous experience, I have problems to combine Pyhton with Html code. My question is ,I must include Python code as script

Re: [Tutor] unicode to plain text conversion

2009-04-06 Thread wesley chun
> Previously I was able to convert just by using: > Type Unicode_filename.txt > new_text_file.txt > That's it. wow, if that's all you had to do, i'm not sure it's worthwhile to learning a new programming language just to process it with an application when your original solution was so dead simpl

Re: [Tutor] unicode to plain text conversion

2009-04-06 Thread Pirritano, Matthew
Previously I was able to convert just by using: Type Unicode_filename.txt > new_text_file.txt That's it. Matthew Pirritano, Ph.D. Research Analyst IV Medical Services Initiative (MSI) Orange County Health Care Agency (714) 568-5648 -Original Message- From: wesley chun [mailto:wes...@gm

Re: [Tutor] unicode to plain text conversion

2009-04-06 Thread wesley chun
> I am a total newbie. I have a very large file > 4GB that I need to > convert from Unicode to plain text. I used to just use dos when the file > was < 4GB but it no longer seems to work. Can anyone point me to some > python code that might perform this function? can you elaborate on your convers

[Tutor] unicode to plain text conversion

2009-04-06 Thread Pirritano, Matthew
Hello python people, I am a total newbie. I have a very large file > 4GB that I need to convert from Unicode to plain text. I used to just use dos when the file was < 4GB but it no longer seems to work. Can anyone point me to some python code that might perform this function? Thanks Matt Matthew

Re: [Tutor] Executing a GUI from another GUI with a click of a button

2009-04-06 Thread Alan Gauld
"Chris Lee" wrote Before I tell you about my problems, I ask for your consideration as I am a newbie at python... That's OK, its what the tutor list is for! :-) I was having problems as I tried to open another program within a program (both programs are Tkinter UIs) OK, That can be trick

Re: [Tutor] Please use plain text.

2009-04-06 Thread Alan Gauld
"Wayne Watson" wrote Personally, I'd rather see these mail lists turn into forums formats. Web forums are far less useful than mailing lists for technical groups. They require internet access and a browser to read them. Many require a graphical browser so don't work in text mode terminals.

Re: [Tutor] Executing a GUI from another GUI with a click of a button

2009-04-06 Thread W W
On Mon, Apr 6, 2009 at 2:30 PM, Chris Lee wrote: > > > I know for certain that the "clock.py" works (because i got it from the > web.. -_-;;) > > but I'm having a real difficulty trying to open clock.py through my real > program > > I know you're busy and everything, but I REALLY hope you can

[Tutor] Executing a GUI from another GUI with a click of a button

2009-04-06 Thread Chris Lee
Hello! Before I tell you about my problems, I ask for your consideration as I am a newbie at python... I was having problems as I tried to open another program within a program (both programs are Tkinter UIs) As for the reference, here is my code: #program: realprogram.py from Tkinter impor

Re: [Tutor] Please use plain text.

2009-04-06 Thread Todd Zullinger
bob gailer wrote: > Please use plain text rather than formatted text. Was sending this request in an html formatted message intentional? I don't know about most folks, but I consider plain text to mean a content-type of text/plain rather than text/html. :) -- ToddOpenPGP -> KeyID: 0xBEA

Re: [Tutor] base n fractional

2009-04-06 Thread Chris Castillo
yes that was what I was looking for. And the reason I am using the loop is the teacher I am currently taking wants us to fully comprehend iteration for the material we are covering in the class. Thank you for your help though, I definitely see where I was going wrong with it. On Mon, Apr 6, 2009 a

Re: [Tutor] Please use plain text.

2009-04-06 Thread Elena of Valhalla
On Mon, Apr 6, 2009 at 5:02 PM, Wayne Watson wrote: > I'm curious about this request. What mail reader are you using that causes > the problem? What small text is small? the same thing happens with gmail, and afaik almost every other graphical email client that supports html emails. With text bas

Re: [Tutor] Please use plain text.

2009-04-06 Thread bob gailer
Wayne Watson wrote: I'm curious about this request. What mail reader are you using that causes the problem? I use Thunderbird. It is not the cause of the problem. It renders emails exactly as formatted by the sender. The specific example I was reacting to was this morning 1:08 AM: Re: [Tutor

Re: [Tutor] problem in replacing regex

2009-04-06 Thread spir
Le Mon, 6 Apr 2009 19:53:25 +0530, Kumar s'exprima ainsi: > Hello everyone, > > I have one account number. I want to replace all this account numbers and > convert them as URLS. > > but I don't want to convert existing urls which has account numbers. [...] I'm not sure of what you expect, wha

Re: [Tutor] Please use plain text.

2009-04-06 Thread Wayne Watson
I'm curious about this request. What mail reader are you using that causes the problem? What small text is small? Someone's post here, or just a general statement. I just put this msg in plain text, but I see no difference below. Your large and small example looks the same to me. I'm using SeaM

Re: [Tutor] Checking for string in a list strangeness

2009-04-06 Thread bob gailer
AdamC wrote: I'm writing a small cgi application for children to use and I want to check that the name they enter isn't a swear word. Why? It seems that we adults are distressed by children using the very same words we use. What value is there in trying to stop children from using them? In

[Tutor] Please use plain text.

2009-04-06 Thread bob gailer
Please use plain text rather than formatted text. Small font size is hard for me to read. So is large! -- Bob Gailer Chapel Hill NC 919-636-4239 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] problem in replacing regex

2009-04-06 Thread Kumar
Hello everyone, I have one account number. I want to replace all this account numbers and convert them as URLS. but I don't want to convert existing urls which has account numbers. e.g. 1234-4578 first i convert any existing url into and then I check that if any above number exist then I conver

Re: [Tutor] Checking for string in a list strangeness

2009-04-06 Thread Kent Johnson
On Mon, Apr 6, 2009 at 8:26 AM, AdamC wrote: > 2009/4/6 Kent Johnson : >> On Mon, Apr 6, 2009 at 3:30 AM, AdamC wrote: >>> I'm writing a small cgi application for children to use and I want to >>> check that the name they enter isn't a swear word. >> >>> #for i in swearlist:       # shows swear l

Re: [Tutor] base n fractional

2009-04-06 Thread Dave Angel
Chris Castillo wrote: Message: 1 Date: Sun, 5 Apr 2009 15:36:09 -0500 From: Chris Castillo Subject: [Tutor] base n fractional To: tutor@python.org Message-ID: <50e459210904051336v60dfc6ddt280d3c9c8f6e0...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" I need some help c

Re: [Tutor] Checking for string in a list strangeness

2009-04-06 Thread Kent Johnson
On Mon, Apr 6, 2009 at 3:30 AM, AdamC wrote: > I'm writing a small cgi application for children to use and I want to > check that the name they enter isn't a swear word. > #for i in swearlist:       # shows swear list OK > #    print i; Perhaps the words in swearlist include some whitespace? Tr

Re: [Tutor] base n fractional

2009-04-06 Thread Alan Gauld
"Chris Castillo" wrote well i want to use a for loop to work from the right most digit to the left most digit at a negative 1 increment. For each digit i want to divide it by 1/base and add the next digit. Then I need to take that sum and multiply it by 1/b to get the decimal equivalent so

Re: [Tutor] Trouble Parsing XML using lxml

2009-04-06 Thread Stefan Behnel
m...@marcd.org wrote: > I am trying to parse a structure that looks like: > > {urn:FindingImport}TOOL - GD > {urn:FindingImport}TOOL_VERSION - 2.0.8.8 > {urn:FindingImport}AUTHENTICATED_FINDING - TRUE > {urn:FindingImport}GD_VUL_NAME - Rename Built-in Guest Account > {urn:FindingImport}GD_SEVERITY

[Tutor] Checking for string in a list strangeness

2009-04-06 Thread AdamC
I'm writing a small cgi application for children to use and I want to check that the name they enter isn't a swear word. I've populated a database with a swear word list and then check this list against the input, but it always shows up as not being a swear word. Can anyone see why this would alw