Re: [Tutor] Import error in UNO

2008-02-05 Thread muhamed niyas
Thanks for your kind response. I tried to include the path 'C:\Program Files\OpenOffice.org 2.0\program' in PYTHONPATH. but now i didnt get any error message but its hanging while importing. Pls advice me to correct this. On Feb 6, 2008 3:54 AM, Tiger12506 <[EMAIL PROTECTED]> wrote: > > "muhamed

Re: [Tutor] Hello and newbie question about "self"

2008-02-05 Thread Tiger12506
>> I probably won't need to start writing classes but I really want to >> finish the book before I start coding something. One of the greatest mistakes of my life was to completely finish a programming book before I started coding something. It is why I cannot write a Visual Basic program to thi

Re: [Tutor] Traversing python datatypes via http

2008-02-05 Thread Tiger12506
> Is it possible to traverse say python lists via http:// > > say there is a list in the memory > > can we traverse the list using list/next list/prev list/first list/last > > is there a pythonic library to do that? > > thanks That's a very unlikely request. There are a few ways to interpret this

Re: [Tutor] designing POOP

2008-02-05 Thread Tiago Saboga
On Tue, Feb 05, 2008 at 08:02:19PM -, Alan Gauld wrote: > "bhaaluu" <[EMAIL PROTECTED]> wrote > > > Now I am interested in learning how to DESIGN an object-oriented > > version The question was very interesting, and so where the answers. > Don't at this stage worry too much about inheritanc

[Tutor] Traversing python datatypes via http

2008-02-05 Thread Mark
Is it possible to traverse say python lists via http:// say there is a list in the memory can we traverse the list using list/next list/prev list/first list/last is there a pythonic library to do that? thanks ___ Tutor maillist - Tutor@python.org h

Re: [Tutor] Import error in UNO

2008-02-05 Thread Tiger12506
> "muhamed niyas" <[EMAIL PROTECTED]> wrote > >> Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH >> evvironment >> variable. > > Close but not quite. > You need to set the module folder in your PYTHONPATH environment > variable. > > PATH is where the python interpreter lives >

Re: [Tutor] hiya

2008-02-05 Thread Kent Johnson
aaron meredith wrote: > heya kent say if i want to select which line to specificlly join the > kept parts from so like to join /keptpart/1_1/ with /keptpart/6_2/ I don't understand. How would you select the line? Kent PS Please use Reply All to stay on list. ___

Re: [Tutor] designing POOP

2008-02-05 Thread Alan Gauld
"bhaaluu" <[EMAIL PROTECTED]> wrote > Now I am interested in learning how to DESIGN an object-oriented > version A useful distinction. You need to understand what classes are before you can use them but the art of desiogn is indeed different to the skills of construction > Can I use the procedu

Re: [Tutor] Import error in UNO

2008-02-05 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote > Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH > evvironment > variable. Close but not quite. You need to set the module folder in your PYTHONPATH environment variable. PATH is where the python interpreter lives PYTHONPATH is where

Re: [Tutor] good reference book recommendations

2008-02-05 Thread Alan Gauld
"tyler" <[EMAIL PROTECTED]> wrote > reference to the core language and standard libraries. It looks like > Beazely's Essential Reference and the Martelli's Nutshell book are > both aimed to fill this role - any reason to choose one over the > other? I have earlier editions of both books, and in

Re: [Tutor] Question regarding list editing (in place)

2008-02-05 Thread Kent Johnson
bob gailer wrote: > dirs = [dir for dir in dirs if not dir.startswith(u'.')] Except to filter the directory list for os.walk() you have to modify the list in place. Use this: dirs[:] = [dir for dir in dirs if not dir.startswith(u'.')] Kent ___ Tutor ma

Re: [Tutor] designing POOP

2008-02-05 Thread Kent Johnson
bhaaluu wrote: > POOP: Python Object Oriented Programming/Programmer/Program(s) POOP = borderline offensive and definitely annoying. Maybe you don't know that poop is a synonym for excrement? Is that what you are trying to learn? > Now I am interested in learning how to DESIGN an object-ori

Re: [Tutor] designing POOP

2008-02-05 Thread bhaaluu
On Feb 5, 2008 1:13 PM, Marc Tompkins <[EMAIL PROTECTED]> wrote: > > On Feb 5, 2008 5:46 AM, bhaaluu <[EMAIL PROTECTED]> wrote: > > What I'm interested in is the thought processes and/or > > guidelines that Tutors employ when they sit down to design a POOP. > > > The Code Smells page is as good a s

Re: [Tutor] Question regarding list editing (in place)

2008-02-05 Thread bob gailer
David J. Weller-Fahy wrote: > Let me know if this should be on the general python list. > > I'm playing with some python to iterate over a directory structure. Part > of the directory structure should be ignored, and will have a period (.) > as the first character of the directory name. > > My s

[Tutor] Question regarding list editing (in place)

2008-02-05 Thread David J. Weller-Fahy
Let me know if this should be on the general python list. I'm playing with some python to iterate over a directory structure. Part of the directory structure should be ignored, and will have a period (.) as the first character of the directory name. My solution was to use the following code. #

Re: [Tutor] designing POOP

2008-02-05 Thread Marc Tompkins
On Feb 5, 2008 5:46 AM, bhaaluu <[EMAIL PROTECTED]> wrote: > What I'm interested in is the thought processes and/or > guidelines that Tutors employ when they sit down to design a POOP. Whenever I have a few free minutes and a desire to contemplate the infinite (Hah!), I surf over to the C2 wiki.

Re: [Tutor] os.system() problem

2008-02-05 Thread Eric Brunson
Aditya Lal wrote: > On 04/02/08 10:42 PM, "Eric Brunson" <[EMAIL PROTECTED]> wrote: > > >> dave selby wrote: >> >>> Hi all, >>> >>> I am not sure if this is a Python or bash issue :). >>> >>> In bash if I execute 'motion' with the following ... >>> >>> [EMAIL PROTECTED]:~/.kde/share/apps/km

Re: [Tutor] cx_Oracle help

2008-02-05 Thread Eric Brunson
Greg Lindstrom wrote: > Hello, > > I'm trying to help out a friend and am stumped. Can you help me out? > Thanks, > --greg > Hi Greg, I fought with this for a long, long time when I was trying to get cx_Oracle to work with the latest Oracle Instant Client (which I like to call "Oracle Instant

[Tutor] cx_Oracle help

2008-02-05 Thread Greg Lindstrom
Hello, I'm trying to help out a friend and am stumped. Can you help me out? Thanks, --greg - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I will briefly explain the problem I am facing. I am using Oracle 9.2, Python 2.5 and I installed cx_Oracle- 4.3.1-win32-9i-py25

Re: [Tutor] os.system() problem

2008-02-05 Thread Aditya Lal
On 04/02/08 10:42 PM, "Eric Brunson" <[EMAIL PROTECTED]> wrote: > dave selby wrote: >> Hi all, >> >> I am not sure if this is a Python or bash issue :). >> >> In bash if I execute 'motion' with the following ... >> >> [EMAIL PROTECTED]:~/.kde/share/apps/kmotion$ motion &> /dev/null & >> [1] 10

Re: [Tutor] Import error in UNO

2008-02-05 Thread Kent Johnson
muhamed niyas wrote: > Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH evvironment > variable. PYTHONPATH is the environment variable you need, it is one way to tell the interpreter where to look for imports. Kent ___ Tutor maillist -

[Tutor] designing POOP

2008-02-05 Thread bhaaluu
Greetings, POOP: Python Object Oriented Programming/Programmer/Program(s) I have finished the procedural Python version of the Text Adventure Game. See attached uuencoded zip file which contains tag10.py, data.py and actions.py. [uudecode tag.uue; unzip tag.zip; python tag10.zip] Now I am in

Re: [Tutor] hiya

2008-02-05 Thread Kent Johnson
aaron meredith wrote: > i have tried to do this so many different ways but im not sure how to do > it, i have a file with say multiple lines in it, it has a word in each > line i want to keep but i also need the kept word in every first and > second line joined together with some text in the mid

[Tutor] Import error in UNO

2008-02-05 Thread muhamed niyas
Dear All, I have a problem while importing UNO module in my windows vista. Openoffice and its uno module is installed in D:\ drive and my application is running in C:\ drive. i can import uno in interactive mode while moving to 'D:\Program Files\OpenOffice 2.0\program' location. I am getting an er

[Tutor] hiya

2008-02-05 Thread aaron meredith
i have tried to do this so many different ways but im not sure how to do it, i have a file with say multiple lines in it, it has a word in each line i want to keep but i also need the kept word in every first and second line joined together with some text in the middle this is what file looks like