Re: [Tutor] python and sqlite

2010-02-01 Thread Alan Gauld
"Samuel de Champlain" wrote Here is another short one that I found: http://www.wdvl.com/Authoring/python/SQLite/Watts07162009.html If anyone knows of other tutorials on python and sqlite, please tell me of them. The databases topic in my tutorial uses SQLite as its database engine. (Only i

Re: [Tutor] parse text file

2010-02-01 Thread spir
On Mon, 1 Feb 2010 00:43:59 +0100 Norman Khine wrote: > but this does not take into account of data which has negative values just add \-? in front of \d+ Denis la vita e estrany http://spir.wikidot.com/ ___ Tutor ma

Re: [Tutor] parse text file

2010-02-01 Thread Norman Khine
On Mon, Feb 1, 2010 at 10:57 AM, spir wrote: > On Mon, 1 Feb 2010 00:43:59 +0100 > Norman Khine wrote: > >> but this does not take into account of data which has negative values > > just add \-? in front of \d+ thanks, what about the whitespace problem? > > Denis > _

[Tutor] One question related to installation of Spyder

2010-02-01 Thread #DENG JUN#
To those it may concern: Hi, I got a problem with installing Spyder. By the way, my desktop is of windows system. I know that before installing Spyder, I first have to equip my computer with PyQt4.x(x>=4), QScintilla (x>=1) and Python2.5 (and upper). Do you have any release of QScintilla in .ex

Re: [Tutor] parse text file

2010-02-01 Thread Kent Johnson
On Mon, Feb 1, 2010 at 6:29 AM, Norman Khine wrote: > thanks, what about the whitespace problem? \s* will match any amount of whitespace includin newlines. Kent ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] parse text file

2010-02-01 Thread Norman Khine
On Mon, Feb 1, 2010 at 1:19 PM, Kent Johnson wrote: > On Mon, Feb 1, 2010 at 6:29 AM, Norman Khine wrote: > >> thanks, what about the whitespace problem? > > \s* will match any amount of whitespace includin newlines. thank you, this worked well. here is the code: ### import re file=open('produ

Re: [Tutor] query

2010-02-01 Thread Grigor Kolev
В 22:09 + на 31.01.2010 (нд), invincible patriot написа: > i just don wana index all the characters rather i wana double it too > like > ['d','a','v','i','d'] > would b > ['d','dd','a','aa','v','vv','i','ii','d','dd'] > and then i wana replace all non 'd' characters with '.' a dot > > i know

[Tutor] Algorithm for combined area of circles

2010-02-01 Thread Shashwat Anand
Let there be 'n' circles (upper bound on n = 10**6) each of radius '1'. We enter their co-ordinates which are floating points and lies between (-1000, 1000). I need to find area of the resulting figure formed by intersection of circles. I came across these links : http://stackoverflow.com/questions

[Tutor] tracking program

2010-02-01 Thread Luis Ortega
Hello I am fairly new to programming (which means I have never, ever, ever written a program). I have a book or two in Python, and so far I like it. I have a stupid question to ask; Is it possible to write an employee's internet tracking program in Python? I know I have a long way before I even

Re: [Tutor] Tutor Digest, Vol 72, Issue 3

2010-02-01 Thread Carnell, James E
Let there be 'n' circles (upper bound on n = 10**6) each of radius '1'. We enter their co-ordinates which are floating points and lies between (-1000, 1000). I need to find area of the resulting figure formed by intersection of circles. I came across these links : http://stackoverflow.com/questio

Re: [Tutor] tracking program

2010-02-01 Thread Wayne Werner
On Mon, Feb 1, 2010 at 1:45 PM, Luis Ortega wrote: > Hello > > I am fairly new to programming (which means I have never, ever, ever > written a program). I have a book or two in Python, and so far I like it. > I have a stupid question to ask; Is it possible to write an employee's > internet trac