Re: except sqlite3.Error as e:

2009-01-15 Thread gert
On Jan 16, 1:47 am, gert wrote: > except sqlite3.Error as e: >     ERROR = "Error " + ... > > how does except work in python3 ? except sqlite3.Error as e: ERROR = "Error " + e.args[0] oops i thought it did not work somehow in 3.0 but it does :) -- http://

except sqlite3.Error as e:

2009-01-15 Thread gert
except sqlite3.Error as e: ERROR = "Error " + ... how does except work in python3 ? -- http://mail.python.org/mailman/listinfo/python-list

Re: People's names (was Re: sqlite3 error)

2006-10-17 Thread Hendrik van Rooyen
"Florian Diesch" <[EMAIL PROTECTED]>wrote: 8<-- >In Germany "von" is just a part of the name since 1919 when the nobility >was abolished by law. Thanks - was not aware of this - 1919 - just after the Great War, 1914-1918... - Hendrik

Re: People's names (was Re: sqlite3 error)

2006-10-17 Thread Florian Diesch
"Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > >> In message <[EMAIL PROTECTED]>, Hendrik van >> Rooyen wrote: >> >> > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: >> > >> > 8< >> >

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Leo Kislov
John J. Lee wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > [...] > > > There would also need to be a flag field to indicate the canonical > > > ordering > > > for writing out the full name: e.g. family-name-first, given-names-first. > > > Do we need something else for the Vietnamese case? > >

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Steve Holden
Theerasak Photha wrote: > On 10/7/06, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > > >>Just because most Western designers of databases do it wrong doesn't mean >>that a) you should do it wrong, or b) they will continue to do it wrong >>into the future, as increasing numbers of those designer

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Theerasak Photha
On 10/7/06, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > Just because most Western designers of databases do it wrong doesn't mean > that a) you should do it wrong, or b) they will continue to do it wrong > into the future, as increasing numbers of those designers come from Asian > and other n

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Roel Schroeven
Hendrik van Rooyen schreef: > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > >> In message <[EMAIL PROTECTED]>, Hendrik van >> Rooyen wrote: >> >>> "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: >>> >>> 8< >>> I wonder if we nee

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Hendrik van Rooyen
"Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Hendrik van > Rooyen wrote: > > > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > > > 8< > > > >> I wonder if we need another "middle" field for holding

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread John Machin
John J. Lee wrote: > "John Machin" <[EMAIL PROTECTED]> writes: > [...] > > This is all a bit OT. Before we close the thread down > > Do you have a warrant for that? I have some signed-but-otherwise-blank warrants, but I'm saving them for other threads :-) > > > , let me leave > > you with one w

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread John J. Lee
"John Machin" <[EMAIL PROTECTED]> writes: [...] > This is all a bit OT. Before we close the thread down Do you have a warrant for that? > , let me leave > you with one warning: > Beware of enthusiastic maintenance programmers on a mission to clean up > the dirty names in your database: > E.g. (1

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] > > There would also need to be a flag field to indicate the canonical > > ordering > > for writing out the full name: e.g. family-name-first, given-names-first. > > Do we need something else for the Vietnamese case? > > You'd think some standards bod

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Hendrik van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]>wrote: 8<-- > In the days of paper filing (I actually took Shorthand, and a > Business Machines & Filing course in High School to avoid Phys.Ed.) the > training for things like oriental names was to choose one for "surname

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread John Machin
Steve Holden wrote: > > Don't forget the UK, where the scots are accommodated by filing Mc > before Mac everywhere except the 'phone book, where IIRC they are > treated as equivalent. Same/similar phone book treatment here in Australia -- Mc is treated as though it were spelled Mac. An interestin

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Hendrik van Rooyen wrote: > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > 8< > >> I wonder if we need another "middle" field for holding the "bin/binte" >> part (could also hold, e.g. "Van" for those n

Re: People's names (was Re: sqlite3 error)

2006-10-09 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, John > Machin wrote: > > >>Two problems so far: >>(1) If you then assume that you should print the phone directory in >>order of family name, that's not appropriate in some places e.g. >>Iceland; neither is addressing Jon Jonsson as "Mr

Re: People's names (was Re: sqlite3 error)

2006-10-08 Thread Hendrik van Rooyen
"Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: 8< > I wonder if we need another "middle" field for holding the "bin/binte" part > (could also hold, e.g. "Van" for those names that use this). NO! - I think of my surname as "van Rooyen"

Re: People's names (was Re: sqlite3 error)

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, John Machin wrote: > Two problems so far: > (1) If you then assume that you should print the phone directory in > order of family name, that's not appropriate in some places e.g. > Iceland; neither is addressing Jon Jonsson as "Mr Jonsson", and BTW it > can be their

Re: People's names (was Re: sqlite3 error)

2006-10-08 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > > There would also need to be a flag field to indicate the canonical > > ordering > > for writing out the full name: e.g. family-name-first, given-names-first. > > Do we need something else for the Vietnamese case? > > You'd think some standards body woul

Re: People's names (was Re: sqlite3 error)

2006-10-08 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Steve > Holden wrote: > > >>John Machin wrote: >> >>[lots of explanation about peculiarities of people's names] >> >>While I don't dispute any of this erudite display of esoteric >>nomenclature wisdom the fact remains that many (predomi

Re: People's names (was Re: sqlite3 error)

2006-10-07 Thread John Machin
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Steve > Holden wrote: > > > John Machin wrote: > > > > [lots of explanation about peculiarities of people's names] > > > > While I don't dispute any of this erudite display of esoteric > > nomenclature wisdom the fact remains that many (p

Re: People's names (was Re: sqlite3 error)

2006-10-07 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Steve Holden wrote: > John Machin wrote: > > [lots of explanation about peculiarities of people's names] > > While I don't dispute any of this erudite display of esoteric > nomenclature wisdom the fact remains that many (predominantly Western) > databases do tend to

Re: sqlite3 error

2006-09-29 Thread John Salerno
John Machin wrote: > The problems are (1) there are cultures that don't have the concept of > a surname, and if they do, it may not be the "last name" (2) the name > may consist of only one word (giving you problems with "not null") or > not even be a word. > > It gets better: > > Iceland: Jon B

Re: sqlite3 error

2006-09-28 Thread John Machin
Steve Holden wrote: > John Machin wrote: > > John Salerno wrote: > > > >>John Machin wrote: > >> > >>>John Salerno wrote: > >>> > CREATE TABLE Researchers ( > researcherID varchar(9) PRIMARY KEY NOT NULL, > birthYear int(4) DEFAULT NULL, > birthMonth int(2) DEFAULT N

Re: sqlite3 error

2006-09-28 Thread Steve Holden
John Machin wrote: > John Salerno wrote: > >>John Machin wrote: >> >>>John Salerno wrote: >>> CREATE TABLE Researchers ( researcherID varchar(9) PRIMARY KEY NOT NULL, birthYear int(4) DEFAULT NULL, birthMonth int(2) DEFAULT NULL, birthDay int(2) DEFAULT NULL

Re: sqlite3 error

2006-09-28 Thread Paul Rubin
"John Machin" <[EMAIL PROTECTED]> writes: > It gets better: > > Iceland:... > Portuguese:... > [parts of] Somalia, Ethiopia:... > Vietnamese:... You might add something about Arabic filionyms. -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 error

2006-09-28 Thread John Machin
John Salerno wrote: > John Machin wrote: > > John Salerno wrote: > >> CREATE TABLE Researchers ( > >> researcherID varchar(9) PRIMARY KEY NOT NULL, > >> birthYear int(4) DEFAULT NULL, > >> birthMonth int(2) DEFAULT NULL, > >> birthDay int(2) DEFAULT NULL, > >> birthCountry

Re: sqlite3 error

2006-09-28 Thread John Salerno
Dennis Lee Bieber wrote: > On Thu, 28 Sep 2006 14:05:16 GMT, John Salerno > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> I don't see this. The code works now, though. Maybe it was something >> carried over by pasting. > > Here's a snippet from your original listing

Re: sqlite3 error

2006-09-28 Thread John Salerno
Dennis Lee Bieber wrote: > On Wed, 27 Sep 2006 18:41:54 GMT, John Salerno > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> You're right! I think that must have been leftover from when it wasn't >> the last line in the query. Thanks! > > You also, based upon the cut&p

Re: sqlite3 error

2006-09-28 Thread John Salerno
John Machin wrote: > John Salerno wrote: >> CREATE TABLE Researchers ( >> researcherID varchar(9) PRIMARY KEY NOT NULL, >> birthYear int(4) DEFAULT NULL, >> birthMonth int(2) DEFAULT NULL, >> birthDay int(2) DEFAULT NULL, >> birthCountry varchar(50) DEFAULT NULL, >> bi

Re: sqlite3 error

2006-09-27 Thread John Machin
John Salerno wrote: > CREATE TABLE Researchers ( > researcherID varchar(9) PRIMARY KEY NOT NULL, > birthYear int(4) DEFAULT NULL, > birthMonth int(2) DEFAULT NULL, > birthDay int(2) DEFAULT NULL, > birthCountry varchar(50) DEFAULT NULL, > birthState char(2) DEFAULT NU

Re: sqlite3 error

2006-09-27 Thread John Salerno
Tim Chase wrote: > My guess would be the extra comma on the nameGiven line...most SQL > engines I've used would choke on that > > - nameGiven varchar(255) DEFAULT NULL, > + nameGiven varchar(255) DEFAULT NULL You're right! I think that must have been leftover from when it wasn't the

Re: sqlite3 error

2006-09-27 Thread Tim Chase
> import sqlite3 > > con = sqlite3.connect('labdb') > cur = con.cursor() > cur.executescript(''' > DROP TABLE IF EXISTS Researchers; > CREATE TABLE Researchers ( > researcherID varchar(9) PRIMARY KEY NOT NULL, > birthYear int(4) DEFAULT NULL, > birthMonth int(2) DEFAULT NULL, >

sqlite3 error

2006-09-27 Thread John Salerno
Here's my script: import sqlite3 con = sqlite3.connect('labdb') cur = con.cursor() cur.executescript(''' DROP TABLE IF EXISTS Researchers; CREATE TABLE Researchers ( researcherID varchar(9) PRIMARY KEY NOT NULL, birthYear int(4) DEFAULT NULL, birthMonth int(2) DEFAULT NULL, bi