[Tutor] Working Script...but!

2008-05-29 Thread Ross Glover
Hi all, I've worked out this script to do what I want generally. However, I'm pretty sure that even though it works, I haven't utilized the advantages of python. This is more or less my first program. What I would like to know is what parts of this script you think could or should be functi

Re: [Tutor] put? and files

2008-05-02 Thread Ross Glover
If you give some examples of what you want to parse we can give more specific advice. Kent I'm assuming this falls under the rubric of text parsing. Here's what I want to make: A way to create a set of user defined tags or markers that can be applied to any section of a text document.

Re: [Tutor] put? and files

2008-05-01 Thread Ross Glover
Thanks all for your in[put]. It did take me a minute to figure out that 2 variables could get assigned using this method. Thanks to your help, I managed to cobble together a fully functional GUI based dictionary program (MY FIRST!). That said, it would seem that I do need to understand files

[Tutor] put?

2008-05-01 Thread Ross Glover
Hi, I'm just learning python (as a first language) and I wrote this little snippet (cribbed from a website). I'm wondering what 'put' is and how it's used. I cannot seem to find much about it. word = raw_input("enter your word >>") put, get=os.popen4("dict -d wn " + (word)) for lines in get.