Re: Need Help Parsing From File

2006-12-06 Thread John Machin
Gabriel Genellina wrote: > > ftxt=open(filename,"rt") Never seen that done before. It's not in the docs. FWIW: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> f = open('foo.txt', 'rt')

Re: Tkinter on Silicon Graphics machine?

2006-12-06 Thread David Lees
[EMAIL PROTECTED] wrote: > David Lees wrote: >> Does anyone have advice on installing Tkinter on s Silicon Graphics >> machine (under IRIX 6, I think). The SysAdmin at work build Python 2.4.3 >> for me on the SGI box, but it does not have Tkinter. Are there any >> prebuilt distributions for SGI ma

Re: [Python] SMTP server based on Python?

2006-12-06 Thread Tim Roberts
"Peter Smith [gjfc]" <[EMAIL PROTECTED]> wrote: > >I have sendmail working on my linux box. > >Since I can use sendmail to send e-mails, would it be easy to write a >simple Python class which listens for data on port 25? > >Then, if it gets some data, it just passes it to sendmail. Ummm, I'm rathe

Re: Python Plugin for Web Browser

2006-12-06 Thread Sébastien Ramage
> Par contre, je pense qu'il existe une autre démarche, qui consiste à > générer, à la volée, en Python, des sortes d'applets java/javascript. Il est clair que mon projet est un peu plus complexe mais je l'espère plus ambitieux aussi Le but étant vraimment de faire des applets en Python et non J

Re: Why not just show the out-of-range index?

2006-12-06 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > > Can you give a real example from your code where the location of > > such a human error (you cause a variable to bound to a value of > > inappropriate type) would be difficult to find, plus an estimate of > > how often you would make such an erro

Re: Why not just show the out-of-range index?

2006-12-06 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > > Can you give a real example from your code where the location of > > such a human error (you cause a variable to bound to a value of > > inappropriate type) would be difficult to find, plus an estimate of > > how often you would make such an err

Re: Why not just show the out-of-range index?

2006-12-06 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > > Can you give a real example from your code where the location of > > such a human error (you cause a variable to bound to a value of > > inappropriate type) would be difficult to find, plus an estimate of > > how often you would make such an erro

Re: Why not just show the out-of-range index?

2006-12-06 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > > Can you give a real example from your code where the location of > > such a human error (you cause a variable to bound to a value of > > inappropriate type) would be difficult to find, plus an estimate of > > how often you would make such an erro

Re: Why not just show the out-of-range index?

2006-12-06 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > > Can you give a real example from your code where the location of > > such a human error (you cause a variable to bound to a value of > > inappropriate type) would be difficult to find, plus an estimate of > > how often you would make such an err

Re: Why not just show the out-of-range index?

2006-12-06 Thread John Machin
OKB (not okblacke) wrote: > John Machin wrote: > > > Can you give a real example from your code where the location of > > such a human error (you cause a variable to bound to a value of > > inappropriate type) would be difficult to find, plus an estimate of > > how often you would make such an err

Re: extension programing with c

2006-12-06 Thread Gabriel Genellina
At Thursday 7/12/2006 03:24, mahdieh saeed wrote: thanks for your help .I compile these code with out "\" but when I import module name insert error occurs like this: ImportError: Shared object "libdb-4.5.so" not found - my python code i

Re: The del statement

2006-12-06 Thread Marco Aschwanden
Thanks for the answers. I see that the del statement does remove an object from the namespace. And yes, it makes perfect sense to handle it from "outside" with the del command. I am not convinced though that del should also remove elements from a container/sequence. Thanks for the enlight

<    1   2   3