WHAT IS THIS?

2007-02-16 Thread Captain
Just bought a new PC with Windows XP Media Edition. I have two entries in the "Add or Remove Programs" section of Control Panel, but there is no corresponding item in the Start Menu. One entry says: Python 2.2.3 and the other says: Python 2.2 pywin32 extensions (build203).. The size for each

Re: WHAT IS THIS?

2007-02-17 Thread Captain
Thanks for the responses. I'll just leave it. Sorry about uppercase subject line. "Captain" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just bought a new PC with Windows XP Media Edition. I have two entries in > the "Add or Remove Program

Re: Help on project, anyone?

2005-01-25 Thread Captain Dondo
On Sun, 23 Jan 2005 21:11:32 +0100, Georg Brandl wrote: > Hello, > > to train my Python skills I am looking for some project I can contribute > to. I learned Python about one year ago, and had already some > programming background behind (I contributed to SharpDevelop for > instance), so I'm not

Dumb*ss newbie Q

2005-03-27 Thread Captain Dondo
OK, I know this is covered somewhere in Python 101, but for the life of me I cannot figure this out. I really need a basic intro to Python book I am trying to do something very simple - create an HTML tag using objects: class Movie: def __init__ (self, t="", a="", d=""): #

Re: Dumb*ss newbie Q

2005-03-27 Thread Captain Dondo
On Mon, 28 Mar 2005 01:15:34 +, Jp Calderone wrote: > > Notice that you have a method named "url" as well as an attribute > named "url". You have the same problem for "thumb". These methods > and attributes are in collision with each other. When you try to > look up the

Re: Dumb*ss newbie Q

2005-03-29 Thread Captain Dondo
On Mon, 28 Mar 2005 08:42:22 -0600, Larry Bates wrote: > Others have answered your specific question, I thought I > would add some suggestions (not tested): > > 1) You don't need a separate set_title method. You can > change the title attribute at any time by just saying > m.title="new title".

New to using re. Search for a number before a string.

2013-11-01 Thread Captain Dunsel
I have a text file that has lines with numbers occasionally appearing right before a person's name. For example: COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER where I want to search for the name "ELMER FUDD" and extract the number right in front of it "608309" when such a number a

Re: New to using re. Search for a number before a string.

2013-11-02 Thread Captain Dunsel
On Friday, November 1, 2013 5:33:43 PM UTC-4, Captain Dunsel wrote: > I have a text file that has lines with numbers occasionally appearing right > before a person's name. For example: > > > > COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER > > >

Replace one element of a tuple

2006-06-01 Thread Captain Dondo
I have an array(?) (sorry, I'm new* to python so I'm probably mangling the terminology) that looks like this: [((1028L, datetime.datetime(2006, 5, 30, 7, 0), datetime.datetime(2006, 5, 30, 7, 30), 'Arthur', 'Prunella Sees the Light; Return of the Snowball', 'Prunella prepares for a sleepover wi

Re: Replace one element of a tuple (LONG)

2006-06-01 Thread Captain Dondo
BartlebyScrivener wrote: >>>I've looked at various search-and-replace snippets but none that address >>>what I am trying to do > > > I think you need to tell more about what you're trying to do. You say > it's in a database? Is that why you can't just put the whole blob in > your text editor

Re: Replace one element of a tuple (LONG)

2006-06-01 Thread Captain Dondo
Brian wrote: > Captain Dondo wrote: > >>What I'd like to do is build the correct selectlist in the first place, >>rather than build the wrong one and then rebuild a correct one. > > > This is sounding more like a SQL/DB problem and less like a Python one. >

Re: Replace one element of a tuple (LONG)

2006-06-01 Thread Captain Dondo
BartlebyScrivener wrote: >>>that one column is always the same, the name of the host that >>>the database resides on. > > > Then why are you pulling all of the other stuff out of the db? Why > don't you just > > UPDATE tablename > SET hostname(or colname) = 'localhost' > WHERE search con

Re: updating db with csv

2007-06-11 Thread Captain Paralytic
On 11 Jun, 07:37, Tim Roberts <[EMAIL PROTECTED]> wrote: | Not in standard SQL. MySQL supports a REPLACE extension that does an | UPDATE if the key already exists, and an INSERT if it does not. There is | also an extension clause to the INSERT statement called "ON DUPLICATE KEY | UPDATE xxx" that

Re: updating db with csv

2007-06-13 Thread Captain Paralytic
On 13 Jun, 06:35, Tim Roberts <[EMAIL PROTECTED]> wrote: > Captain Paralytic <[EMAIL PROTECTED]> wrote: > >On 11 Jun, 07:37, Tim Roberts <[EMAIL PROTECTED]> wrote: > >| Not in standard SQL. MySQL supports a REPLACE extension that does > >| an UPDATE if the

Where is the syntax for the dict() constructor ?!

2007-07-05 Thread Captain Poutine
documentation for the dict() constructor? Frustrated, Captain Poutine -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the syntax for the dict() constructor ?!

2007-07-05 Thread Captain Poutine
Neil Cerutti wrote: > On 2007-07-05, Captain Poutine <[EMAIL PROTECTED]> wrote: >> I'm simply trying to read a CSV into a dictionary. >> >> (if it matters, it's ZIP codes and time zones, i.e., >> 35983,CT >> 39161,CT >> 47240,EST >>

Re: Where is the syntax for the dict() constructor ?!

2007-07-05 Thread Captain Poutine
Peter Otten wrote: > Neil Cerutti wrote: > >> On 2007-07-05, Captain Poutine <[EMAIL PROTECTED]> wrote: >>> I'm simply trying to read a CSV into a dictionary. >>> >>> (if it matters, it's ZIP codes and time zones, i.e., >>> 35983,CT

Re: do you know what's CGI? (web history personal story)

2011-01-15 Thread Captain Obvious
XL> ... i recall, i stopped doing Mathematica in 1998 because it's a XL> career dead-end as a programing lang, and dived into the utterly XL> idiotic Perl & unix & mysql world. (See: The Unix Pestilence ◇ Xah XL> Lee's Computing Experience (Impression Of Lisp from Mathematica).) I guess you're ca