Re: [Tutor] need help opening a file in idle

2009-05-23 Thread bob gailer
Meital Amitai wrote: Hi everyone, I am not sure how to open a file in my computer in idle. For my python class the homework states to write a function that accepts the name of a file and returns a tuple containing the number of lines, words and characters in the file. My problem is how do I g

[Tutor] need help opening a file in idle

2009-05-23 Thread Meital Amitai
Hi everyone, I am not sure how to open a file in my computer in idle. For my python class the homework states to write a function that accepts the name of a file and returns a tuple containing the number of lines, words and characters in the file. My problem is how do I get idle to first accept t

[Tutor] strings using Czech language characters

2009-05-23 Thread Leon Williams
Hello,   I wish to make a dictionary of english to czech words.  I thought I would first see if python will print a czech character.  I used the example in the tutorial (it uses a euro symbol, and a different iso character set so I changed mine to include a character set that includes eastern eu

Re: [Tutor] sqlite3 format data from tables

2009-05-23 Thread David
Martin Walsh wrote: David wrote: David wrote: I have a budget program I am using to learn from. http://linuxcrazy.pastebin.com/f3b301daf I can not figure out how to get the transaction details to return so that it looks nice. It returns like this now. Your transaction History is: [(1, u'Food'

Re: [Tutor] sqlite3 format data from tables

2009-05-23 Thread Alan Gauld
"David" wrote I can not figure out how to get the transaction details to return so that it looks nice. It returns like this now. Your transaction History is: [(1, u'Food', -100), (2, u'Deposit', -200), (3, u'Deposit', 500), (4, u'Python Book', -50)] You are just printing raw data as retui

Re: [Tutor] Post to wordpress

2009-05-23 Thread David
Jan Erik Moström wrote: Hi, I'm looking for a module or an example for how to post to a wordpress blog. I want to create a post and set: + title + content + category + tags + publish date I've looked around and found (settin

[Tutor] Post to wordpress

2009-05-23 Thread Jan Erik Moström
Hi, I'm looking for a module or an example for how to post to a wordpress blog. I want to create a post and set: + title + content + category + tags + publish date I've looked around and found (setting categories doesn't see

Re: [Tutor] sqlite3 format data from tables

2009-05-23 Thread Martin Walsh
David wrote: > David wrote: >> I have a budget program I am using to learn from. >> http://linuxcrazy.pastebin.com/f3b301daf >> >> I can not figure out how to get the transaction details to return so >> that it looks nice. It returns like this now. >> >> Your transaction History is: [(1, u'Food', -

Re: [Tutor] sqlite3 format data from tables

2009-05-23 Thread David
David wrote: I have a budget program I am using to learn from. http://linuxcrazy.pastebin.com/f3b301daf I can not figure out how to get the transaction details to return so that it looks nice. It returns like this now. Your transaction History is: [(1, u'Food', -100), (2, u'Deposit', -200),

[Tutor] sqlite3 format data from tables

2009-05-23 Thread David
I have a budget program I am using to learn from. http://linuxcrazy.pastebin.com/f3b301daf I can not figure out how to get the transaction details to return so that it looks nice. It returns like this now. Your transaction History is: [(1, u'Food', -100), (2, u'Deposit', -200), (3, u'Deposit'

Re: [Tutor] Parsing Bible verses

2009-05-23 Thread C or L Smith
Here is something from my toolbox of routines that might be useful for the number ranges: >>> indices('-5--2') [-5, -4, -3, -2] >>> indices('3-4') [3, 4] >>> indices('3-4,10') [3, 4, 10] /chris def indices(s,n=None): #("1-3,7")->1,2,3,7;i("1,-3--1")->1,-3,-2,-1; or (slc,n=None)->slc.start,stop