Re: [Tutor] Socket question.

2007-05-16 Thread Martin Walsh
Hey Dude :) Dude, WHOA! wrote: > kinda thing. The problem is that the client I wrote doesn't receive > data and display it, and it also only executes single word commands. > Server side: > #!/usr/bin/env python > try: > echo = Popen(command, stdout=PIPE).stdout.read() On a

Re: [Tutor] words and lengths

2007-05-16 Thread Bob Gailer
Emad Nawfal wrote: >> Hi All, >> I'm beginning to learn Python for linguistic research using the >> Natural Language Toolkit. I want to write a small piece of code to >> count lengths of words and print them a long with the words. I've >> tried this but it does not work. What's wrong with it, an

Re: [Tutor] Socket question.

2007-05-16 Thread Alan Gauld
"Dude, WHOA!" <[EMAIL PROTECTED]> wrote > kinda thing. The problem is that the client I wrote doesn't receive > data and display it, and it also only executes single word commands. > Server side: > #!/usr/bin/env python > import socket > from subprocess import * > IP = 'localhost' > sock = socke

Re: [Tutor] Learning to Debug?

2007-05-16 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote in message > Does anyone have recommendations for Python-centric > books/online tutorials that teach you techniques for > good debugging? The paper book version of my tutorial has a chapter on debugging techniques and tools - starting with print statements through

Re: [Tutor] words and lengths

2007-05-16 Thread Bob Gailer
Please use plain text. Color hurts my eyes, does NOT help me read your program. Emad Nawfal wrote: > Hi All, > I'm beginning to learn Python for linguistic research using the > Natural Language Toolkit. I want to write a small piece of code to > count lengths of words and print them a long with

Re: [Tutor] object design question

2007-05-16 Thread Alan Gauld
"Kent Tenney" <[EMAIL PROTECTED]> wrote > The class I'm working on does conversion between ReStructuredText > and the Leo (http://leo.sf.net)file format. It also > wraps rst->html rst->xml etc. OK, I still don;t knoew exactly what it is. But I'll take a guess from what you say that that you have

[Tutor] Socket question.

2007-05-16 Thread Dude, WHOA!
I thought I'd try my hand at sockets, and tried to make a telnet-ish, kinda thing. The problem is that the client I wrote doesn't receive data and display it, and it also only executes single word commands. Thanks in advance. Server side: #!/usr/bin/env python import socket from subprocess import

Re: [Tutor] Python for s60

2007-05-16 Thread Jason Massey
Google is your friend: http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLR,GGLR:2006-33,GGLR:en&q=python+symbian The first link in particular looks good. On 5/16/07, Chenthil <[EMAIL PROTECTED]> wrote: Hi can some one show nd some good tutorials for writing scripts for symbian

[Tutor] Python for s60

2007-05-16 Thread Chenthil
Hi can some one show nd some good tutorials for writing scripts for symbian s60 devices. Thanks is advance. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Learning to Debug?

2007-05-16 Thread Ben Sherman
On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm moving forward with my learning of Python, but I've decided it's finally time to address a problem that has haunted me in every language I've every tried to learn: debugging. I'm just not very good at it. Does anyone have recommendat

Re: [Tutor] words and lengths

2007-05-16 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Emad Nawfal > Sent: Wednesday, May 16, 2007 9:40 AM > To: Tutor@python.org > Subject: [Tutor] words and lengths > > Hi All, > I'm beginning to learn Python for linguistic research using > the Natur

[Tutor] words and lengths

2007-05-16 Thread Emad Nawfal
Hi All, I'm beginning to learn Python for linguistic research using the Natural Language Toolkit. I want to write a small piece of code to count lengths of words and print them a long with the words. I've tried this but it does not work. What's wrong with it, and how can I fix it? phrase2 = ['co

[Tutor] Learning to Debug?

2007-05-16 Thread dsh0105
I'm moving forward with my learning of Python, but I've decided it's finally time to address a problem that has haunted me in every language I've every tried to learn: debugging. I'm just not very good at it. Does anyone have recommendations for Python-centric books/online tutorials that teach

Re: [Tutor] object design question

2007-05-16 Thread Kent Tenney
Alan Gauld btinternet.com> writes: > > "Kent Johnson" tds.net> wrote > >> Howdy, > >> > >> I would be interested in some discussion of > >> which of the following approaches is preferred and why. > >> > >> class RstManager: > >> def __init__(self, text): > >> self.parsed = parseRst(