[Tutor] Python and unicode

2006-03-09 Thread Ferry Dave Jäckel
Hello list, I try hard to understand python and unicode support, but don't get it really. What I thought about this until yesterday :) If I write my script in unicode encoding and put the magic # -*- coding: utf-8 -*- at its start, I can just use unicode everywhere without problems. Reading str

Re: [Tutor] Any stuff about python interpreter design ?

2006-03-09 Thread Bo Yang
Danny Yoo said: >> So I take a look into the source code .But I get confused about so many >> files and functions . I want to ask that is there any stuff about the >> interpreter design and coding ? >> > > [meta: my reply is really about Scheme, not Python. My apologies to the > list, but it'

Re: [Tutor] Any stuff about python interpreter design ?

2006-03-09 Thread Danny Yoo
> So I take a look into the source code .But I get confused about so many > files and functions . I want to ask that is there any stuff about the > interpreter design and coding ? [meta: my reply is really about Scheme, not Python. My apologies to the list, but it's my honest answer.] Hi Bo, Th

Re: [Tutor] htmllib vs re question

2006-03-09 Thread Kent Johnson
->Terry<- wrote: > I want to parse some text from an HTML file that contains > blocks of pre-formatted text. All I'm after is what's between > the and tags. > > The HTML file size varies, but I don't expect the size to exceed > 150-200k. Speed is not a bug concern. > > What is the Pythonic way

[Tutor] Any stuff about python interpreter design ?

2006-03-09 Thread Bo Yang
Hello , I have learned and used python half a year , and I like this language very much . I used it in my web server page , in my homework and part-tiem job . Recently , I feel very interested in the python interpreter . So I take a look into the source code .But I get confused about so many files

Re: [Tutor] how to read a text file, and find items in it

2006-03-09 Thread R. Alan Monroe
> I assume you are on a Mac? Interestingly I didn't know the Terminal > supported drag n drop from finder. Pretty neat! The tradeoff is that on the Mac, the home and end keys don't move your cursor to the beginning/end of the commandline you're typing (g!!). Alan ___

Re: [Tutor] how to write a string into a specific line in a file

2006-03-09 Thread Roel Schroeven
Alan Gauld schreef: > To see some examples in MALLARD Basic (one of the ones that > I have used in the past - on CP/M!) look here: > > http://www.fvempel.nl/basic.html > > (Its got German(or Dutch mebbe given the .nl?) variables and comments > but the keywords are in English!) Yep, it's Dutch.

[Tutor] htmllib vs re question

2006-03-09 Thread ->Terry<-
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I want to parse some text from an HTML file that contains blocks of pre-formatted text. All I'm after is what's between the and tags. My first thought was to use re for this, but looking through the Library Reference, I see the htmllib module. Is h

Re: [Tutor] Python interpreter/Xemacs and the py-execute-buffer

2006-03-09 Thread Danny Yoo
> I have been using Xemacs 21.4 Patch 13 on Windows XP with Python 2.4.2 > (final). Whenever I try to run a script inside the xemacs window using: > C-c C-c I get the following: Opening output file: Invalid argument, > C:\Documents and Settings\jkat\Local Settings\Temp;C:\Devel\emacsk2AS2x Hi Fra

[Tutor] Test code organization

2006-03-09 Thread Willi Richert
Hi, for some time I try to find the best test code organization. I've come up with the following solution, which I guess is not optimal. Please comment. In the code directory there is a special tests directory, which contains all the unit test files. There is the file alltests.py which collect

[Tutor] Connection time out while attempting to install SOAP

2006-03-09 Thread Kermit Rose
I attempted to follow instructions from "Dive into Python" to install the SOAP package. The first step went ok. The second step is not yet accomplished. 12.2.2. Installing fpconst The second library you need is fpconst, a set of constants and functions for working with IEEE754 double-precision

Re: [Tutor] How to monitor streaming data from the internet via modem?

2006-03-09 Thread andrew clarke
On Thu, Mar 09, 2006 at 12:57:53PM +, Ben Vinger wrote: > On 3/8/06, Alan Gauld <[EMAIL PROTECTED]> wrote: > > > Ethereal is one well known and powerful one, but there are others > > which may be simpler to use. > > Yes, with Ethereal comes a command-line version called tethereal, which I've

Re: [Tutor] Python interpreter/Xemacs and the py-execute-buffer

2006-03-09 Thread Alan Gauld
This is pure guesswork... > I have been using Xemacs 21.4 Patch 13 on Windows XP with Python 2.4.2 > (final). > using: C-c C-c I get the following: Opening output file: Invalid argument, > C:\Documents and Settings\jkat\Local Settings\Temp;C:\Devel\emacsk2AS2x > > The last part of the error messa

Re: [Tutor] Python interpreter/Xemacs and the py-execute-buffer

2006-03-09 Thread Francesco Queirolo
Cheers Andrew.Well that's certainly possible, but the error message is generated by xemacs and I have no idea how to change paths for something like this. Any ideas?Thanks,Francescoandrew clarke <[EMAIL PROTECTED]> wrote: On Wed, Mar 08, 2006 at 11:46:37PM -0800, Francesco Queirolo wrote:> I have b

[Tutor] Test code organization

2006-03-09 Thread Willi Richert
Hi, for some time I try to find the best test code organization. I've come up with the following solution, which I guess is not optimal. Please comment. In the code directory there is a special tests directory, which contains all the unit test files. There is the file alltests.py which collects

Re: [Tutor] How to monitor streaming data from the internet via modem?

2006-03-09 Thread Ben Vinger
On 3/8/06, Alan Gauld <[EMAIL PROTECTED]> wrote: Ethereal is one well knownand powerful one, but there are others which may be simpler touse.   Yes, with Ethereal comes a command-line version called tethereal, which I've used within Python on both Windows and Linux.  It worked nicely for trafic a

Re: [Tutor] Python interpreter/Xemacs and the py-execute-buffer

2006-03-09 Thread andrew clarke
On Wed, Mar 08, 2006 at 11:46:37PM -0800, Francesco Queirolo wrote: > I have been using Xemacs 21.4 Patch 13 on Windows XP with Python 2.4.2 > (final). Whenever I try to run a script inside the xemacs window using: > C-c C-c I get the following: Opening output file: Invalid argument, > C:\Document

Re: [Tutor] how to read a text file, and find items in it

2006-03-09 Thread Alan Gauld
Hi Adam, Its not really clear what you want us to do, so I;ll just make some general comments on the code... In future it would help if you tell us whether there is a problem, and if so what iut is, including any error text. Or whether you would just like a critique of your code. > I am trying to