Re: [Tutor] problem with IDLE

2005-12-01 Thread Danny Yoo
On Thu, 1 Dec 2005, Daniel McQuay wrote: > Not to be sound ignorant, but what port on local host would that be? Hi Daniel, I believe it's port 8833, at least according to the source code in: http://svn.python.org/projects/python/trunk/Lib/idlelib/PyShell.py One of the error methods has the

Re: [Tutor] problem with IDLE

2005-12-01 Thread Daniel McQuay
Not to be sound ignorant, but what port on local host would that be?On 12/1/05, Liam Clarke-Hutchinson < [EMAIL PROTECTED]> wrote: IDLE uses localhost (a loopback port 127.0.0.1) to communicate with running scripts (so interrupt keys and debugging calls get passed etc.) It's a nice cross p

Re: [Tutor] problem with IDLE

2005-12-01 Thread Liam Clarke-Hutchinson
Title: Message IDLE uses localhost (a loopback port 127.0.0.1) to communicate with running scripts (so interrupt keys and debugging calls get passed etc.) It's a nice cross platform method of interprocess communication.   So yeah, 127.0.0.1 is the one. Regards, Liam Clarke-Hutchinson| Cont

[Tutor] problem with IDLE

2005-12-01 Thread Daniel McQuay
Hello list, I just got a Windows box up and running. When I go to use IDLE I get an error saying something along the lines of, "IDLE was unable to start you may need to shut off the firewall". Now when I shut the firewall off it starts up fine. So my question is, does IDLE try to access a port? i

Re: [Tutor] problem detecting files

2005-12-01 Thread Christopher Arndt
Paul Hendrick schrieb: > Hi there, > I've got a problem with getting the difference between 2 directories, > but only recognising directories and not files. > I'm trying to find directories in /home/svn that aren't > in /usr/local/trac/projects. > > The list returned by listdir in /home/svn is: >

[Tutor] FW: files - strings - lists (fwd)

2005-12-01 Thread Danny Yoo
[Hi Paul; redirecting to tutor. Try reposting to tutor next time; we may need to see if there's some mailing list issue there.] -- Forwarded message -- Date: Thu, 1 Dec 2005 16:42:32 -0600 From: Paul McGuire <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: FW

Re: [Tutor] Scientific Notation + 18 Digit Pecision

2005-12-01 Thread Danny Yoo
> Methods for turning on true division? > > A. Install the new Python, when it is available. > > When will this be available? Hi Hubert, Not certain. It's not clear if this will be adopted as the default in the immediate future; you might not want to wait for this. > B. from__future__import

[Tutor] problem detecting files

2005-12-01 Thread Paul Hendrick
Hi there, I've got a problem with getting the difference between 2 directories, but only recognising directories and not files. I'm trying to find directories in /home/svn that aren't in /usr/local/trac/projects. The list returned by listdir in /home/svn is: ['.bash_logout', '.bash_profile', '.bas

Re: [Tutor] Unicode trouble

2005-12-01 Thread Kent Johnson
Øyvind wrote: >>The important question is, what is actual encoding of your source data? >> >>>Is there anything else I could try? > > >>Understand why the above question is important, then answer it. Until you > > do >you are just thrashing around in the dark. > > The source is a text-document

[Tutor] Unicode trouble

2005-12-01 Thread Øyvind
>The important question is, what is actual encoding of your source data? >> >> Is there anything else I could try? >Understand why the above question is important, then answer it. Until you do >you are just thrashing around in the dark. The source is a text-document that as far as I know only co

Re: [Tutor] Beautiful Soup, inserting a node?

2005-12-01 Thread Kent Johnson
Bob Tanner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Is there a way to insert a node with Beautiful Soup? BS doesn't really seem to be set up to support this. The Tags in a soup are kept in a linked list by their next attribute so you will have to find the right Tag, break t

Re: [Tutor] Unicode trouble

2005-12-01 Thread Kent Johnson
Øyvind wrote: > I tried the error='replace' as you suggested and the program made it thru > the list. However, here are some results: > > the gjenoppl�et gjenoppl� > from > the gjenoppløst det gjenoppløste > > kan v� konsentrert > from > kan være konsentrert It seems pretty clear tha

[Tutor] Unicode trouble

2005-12-01 Thread Øyvind
Michael Lange wrote: >> I haven't read all of this thread, but maybe you are trying to pass a >> non-utf8 string to the utf8 codec? >Yes, I guess that much is pretty clear - there is some data in the source >file that is not valid utf-8. I tried the error='replace' as you suggested and the progr

[Tutor] python swig problem

2005-12-01 Thread Pujo Aji
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg.  /* File : example.c */  #include  double My_variable = 3.0;  int fact(int n) {      if (n <= 1) return 1;      els