[Tutor] ConfigParser and multiple option names

2007-04-06 Thread Iyer
The problem I have is very similar to this: http://www.thescripts.com/forum/threadnav486400-1-10.html But, I cannot change the config file layout -- it is a read only file, so if I have the contents of the config file (take it as config_file.lay) as [dir_options] dir="/home/florian" dir="/home/

Re: [Tutor] windows and python and shebangs, oh my!

2007-04-06 Thread Kirk Bailey
No problem, windoweswiki is shipped with a very simple server which is pretty dullwitted, but handles cgi and http, and nothing else. a little thing called tinyweb, it's efficent, small, and it is bulletproof- and so stupid it's actually easy to use. You can read about it here: http://w

Re: [Tutor] Tutor Digest, Vol 38, Issue 10

2007-04-06 Thread Alan Gauld
"Jay Mutter III" <[EMAIL PROTECTED]> wrote >> Can you try printing the string repr just before the test. >> Or even the last 6 characters: >> >> print repr(line[-6:]) >> if line.endswith('No: \n') >>line = line.strip() > Alan using your suggestion with the code aove here is the print out: >

Re: [Tutor] Talking between C++ & Python ?

2007-04-06 Thread Alan Gauld
"Dave S" <[EMAIL PROTECTED]> wrote >> are co-located then a database is a good solution for >> those volumes. It probably requires that each end >> implements a poller to check for updates and a > > Yep both apps are on the same machine, the company just wants to put > a > corporate GUI on my Pyt

Re: [Tutor] Writing KDE apps in Python.

2007-04-06 Thread Dotan Cohen
On 06/04/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: > Hi all, I'm new to python but I've some limited experience with C and > PHP. I'm having a rather hard time piecing together a simple GUI > Hello, world! app. All the documentation online seems to be outdated, > and I've little access to the dead

Re: [Tutor] Need a Clean Start

2007-04-06 Thread Alan Gauld
"Keegan Johnson" <[EMAIL PROTECTED]> wrote > been using different versions and have installed different things > and > am going crazy. I need to get the pygames, py2app, etc on my > computer > (I have a Macintosh). Is there any way to clean up all these files Just delete them. At least the main

[Tutor] Writing KDE apps in Python.

2007-04-06 Thread Dotan Cohen
Hi all, I'm new to python but I've some limited experience with C and PHP. I'm having a rather hard time piecing together a simple GUI Hello, world! app. All the documentation online seems to be outdated, and I've little access to the dead-tree variety of record keeping. Could someone please RTFM

Re: [Tutor] Need a Clean Start

2007-04-06 Thread William Allison
Keegan Johnson wrote: > I need to get the pygames, py2app, etc on my computer > (I have a Macintosh). Is there any way to clean up all these files > that I've accrued trying to get things to work? I've been able to do > a little bit but nothing more than that. Also, what should I use? > Th

Re: [Tutor] Need a Clean Start

2007-04-06 Thread Rikard Bosnjakovic
On 4/5/07, Keegan Johnson <[EMAIL PROTECTED]> wrote: > Is there any way to clean up all these files > that I've accrued trying to get things to work? I've been able to do > a little bit but nothing more than that. Also, what should I use? > There's lots of different versions different sites recomm

Re: [Tutor] Talking between C++ & Python ?

2007-04-06 Thread Kent Johnson
Dave S wrote: > Yep both apps are on the same machine, the company just wants to put a > corporate GUI on my Python code to claim it as their own because they cant > work out how to convert some of the Python to C++ - I leverage the Python > interpreter parsing to evaluate some fairly complex a

[Tutor] Need a Clean Start

2007-04-06 Thread Keegan Johnson
Hi everyone, I'm taking a computer science class. We haven't gotten to Python yet but I've started dabbling and become rather enamored. Anyway, I've been using different versions and have installed different things and am going crazy. I need to get the pygames, py2app, etc on my computer (I

Re: [Tutor] Tutor Digest, Vol 38, Issue 10

2007-04-06 Thread Jay Mutter III
> > > "Jay Mutter III" <[EMAIL PROTECTED]> wrote > > >> Whether I attempt to just strip the string or attempt to >> >> if line.endswith('No.\r'): >> line = line.rstrip() >> >> It doesn't work. > > Can you try printing the string repr just before the test. > Or even the last 6 characters: > > pr

Re: [Tutor] Talking between C++ & Python ?

2007-04-06 Thread Dave S
On Friday 06 April 2007 08:29, Alan Gauld wrote: > "R. Alan Monroe" <[EMAIL PROTECTED]> wrote > > >> I have written a Python app, a company who don't use Python want to > >> integrate > >> its back end with their C++ coded GUI. > >> > >> The data to & from the C++, Python code consists of fairly la

Re: [Tutor] Talking between C++ & Python ?

2007-04-06 Thread Alan Gauld
"R. Alan Monroe" <[EMAIL PROTECTED]> wrote >> I have written a Python app, a company who don't use Python want to >> integrate >> its back end with their C++ coded GUI. > >> The data to & from the C++, Python code consists of fairly large >> tables of up >> to 80,000 items. > > SQLite? That's