Re: python/libxml2dom questions

2006-07-01 Thread Barry Kelly
"bruce" <[EMAIL PROTECTED]> wrote: > also, how can i determine what methods are available for a libxml2dom > object? Have you tried dir(object)? It works great on the command-line reply-eval-print loop. -- Barry -- http://barrkel.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python

RE: python/libxml2dom questions

2006-07-01 Thread bruce
thanks barry... now if i can figure out what the attributes do, and which ones i need to deal with!! -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barry Kelly Sent: Saturday, July 01, 2006 10:24 PM To: python-list@python.org Subject: Re: python/li

Re: MySQLdb not updating rows

2006-07-01 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Bowen" <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, Benjamin Niemann <[EMAIL PROTECTED]> >wrote: > >>Another side note: don't build your queries using (dumb) string formatting, >>let the MySQLdb module do it for you. > >Thanks for that tip, it's a

Re: slow non-blocking reads

2006-07-01 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Mark Dufour" <[EMAIL PROTECTED]> wrote: >any thoughts about why this runs extremely slowly? Because both processes are chewing up most of your CPU each waiting for the other to do something. -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.stdin and two CTRL-Ds

2006-07-01 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: >-u unbuffers sys.stdout >and sys.stderr (and makes them binary, which wouldn't be a good idea on >a Windows box). Why not? -- http://mail.python.org/mailman/listinfo/python-list

Re: python/libxml2dom questions

2006-07-01 Thread Stefan Behnel
bruce wrote: > in playing around with the test python app (see below) i've got a couple of > basic questions. i can't seem to find the answers via google, and when i've > looked in the libxml2dom stuff that i downloaded i didn't see answers > either... > > for the list in the "for label in d.xpath

Re: Dictionary .keys() and .values() should return a set [with Python 3000 in mind]

2006-07-01 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This has been bothering me for a while. Just want to find out if it > just me or perhaps others have thought of this too: Why shouldn't the > keyset of a dictionary be represented as a set instead of a list? I think this is an interesti

Error Trapping

2006-07-01 Thread JohnJohnUSA
I ran the following program to retrieve entries from the windows registry on Windows XP: import win32api, win32con aReg = win32api.RegConnectRegistry(None, win32con.HKEY_CURRENT_USER) aKey = win32api.RegOpenKeyEx(aReg, r"Software\Microsoft\Internet Explorer\PageSetup") for i in range(100): Na

Re: sys.stdin and two CTRL-Ds

2006-07-01 Thread John Machin
On 2/07/2006 3:48 PM, Lawrence D'Oliveiro wrote: > In article <[EMAIL PROTECTED]>, > John Machin <[EMAIL PROTECTED]> wrote: > >> -u unbuffers sys.stdout >> and sys.stderr (and makes them binary, which wouldn't be a good idea on >> a Windows box). > > Why not? If binary, '\n' would appear as L

<    1   2