Re: [Tutor] delphi, pascal and Python

2009-05-21 Thread Alan Gauld
"Marc Tompkins" wrote Is there a Method for wrapping delphi and/or pascal code into python like SWIG? http://membres.lycos.fr/marat/delphi/python.htm That's a package to let you embed Python in Delphi; the OP wants to go the other direction. So it is, I didn't read the OP question clo

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
Hi Tim, It does not seems to be working for jpg and in general with image files any pointers on that. Thanks for your help. On Thu, May 21, 2009 at 2:40 AM, vishwajeet singh wrote: > Thanks that helped. > > > On Thu, May 21, 2009 at 2:34 AM, Tim Golden wrote: > >> vishwajeet singh wrote: >> >>

Re: [Tutor] Hi everyone

2009-05-21 Thread spir
Le Wed, 20 May 2009 18:25:07 -0700 (PDT), Doug Reid s'exprima ainsi: > "The next line in the loop, >word = word[:position] + word[(position + 1):] > > creates a new version of word minus the one letter at position position. > Using slicing, the computer creates two new strings from word. The

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread Tim Golden
[Rearranging for reading order] [vishwajeet singh wrote] I am trying to read properties of file on windows like there is a property call Keywords on file; I am to read this property independent of file type. [Tim Golden wrote:] There's an unpolished (indeed, unfinished) example here: http://tim

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
Hi Tim, My apologies for being vague. Yes you are right I am not able to get any summary property from a image file. Script runs successfully without printing anything. Thanks for your help. On Thu, May 21, 2009 at 1:43 PM, Tim Golden wrote: > [Rearranging for reading order] > > [vishwajeet s

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread Kent Johnson
On Thu, May 21, 2009 at 4:25 AM, vishwajeet singh wrote: > Hi Tim, > > My apologies for being vague. Yes you are right I am not able to get any > summary property from a image file. > Script runs successfully without printing anything. If you are specifically looking to read EXIF tags from jpg f

Re: [Tutor] Hi everyone

2009-05-21 Thread W W
On Thu, May 21, 2009 at 2:42 AM, spir wrote: > >while word: > position = random.randrange(len(word)) >jumble += word[position] >word = word[:position] + word[(position + 1):] > Something that many of us use for debugging, and is also useful for comprehension is a sim

Re: [Tutor] Hi everyone....thanks for the help

2009-05-21 Thread Doug Reid
Thank you all for the help.  I believe I understand now, and think this will be a great group to learn from.   Doug ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread Tim Golden
Tim Golden wrote: It would probably help if you specified what "does not seem[s] to be working" meant. But I assume that you mean: if you add a Title into the Summary on a JPEG then it doesn't get picked up by the script. What's happening here (I think) is that for media types -- images, movies,

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread Tim Golden
Tim Golden wrote: Tim Golden wrote: It would probably help if you specified what "does not seem[s] to be working" meant. But I assume that you mean: if you add a Title into the Summary on a JPEG then it doesn't get picked up by the script. What's happening here (I think) is that for media types

Re: [Tutor] Getting file properties on winodws

2009-05-21 Thread vishwajeet singh
On Fri, May 22, 2009 at 1:23 AM, Tim Golden wrote: > Tim Golden wrote: > >> Tim Golden wrote: >> >>> It would probably help if you specified what "does not seem[s] to be >>> working" meant. But I assume that you mean: if you add a Title into >>> the Summary on a JPEG then it doesn't get picked up

[Tutor] Parsing Bible verses

2009-05-21 Thread Eduardo Vieira
Hello, I'm planning to create a script to read a certain file, find the line that contains Bible references and then use that to query a bible database in order to print the verses in another file. I will be looking for lines like these: Lesson Text: Acts 5:15-20, 25; 10:12; John 3:16; Psalm 23 So

Re: [Tutor] Parsing Bible verses

2009-05-21 Thread W W
On Thu, May 21, 2009 at 4:26 PM, Eduardo Vieira wrote: > Hello, I'm planning to create a script to read a certain file, find > the line that contains Bible references and then use that to query a > bible database in order to print the verses in another file. > I will be looking for lines like thes

Re: [Tutor] Parsing Bible verses

2009-05-21 Thread John Fouhy
2009/5/22 Eduardo Vieira : > I will be looking for lines like these: > Lesson Text: Acts 5:15-20, 25; 10:12; John 3:16; Psalm 23 > > So, references in different chapters are separated by a semicolon. My > main challenge would be make the program guess that 10:12 refers to > the previous book. 15-20

Re: [Tutor] Parsing Bible verses

2009-05-21 Thread Eduardo Vieira
On Thu, May 21, 2009 at 7:03 PM, John Fouhy wrote: > 2009/5/22 Eduardo Vieira : >> I will be looking for lines like these: >> Lesson Text: Acts 5:15-20, 25; 10:12; John 3:16; Psalm 23 >> >> So, references in different chapters are separated by a semicolon. My >> main challenge would be make the pr