Re: Possible read()/readline() bug?

2008-10-22 Thread kdwyer
On 22 Oct, 19:54, Mike Kent <[EMAIL PROTECTED]> wrote: > Before I file a bug report against Python 2.5.2, I want to run this by > the newsgroup to make sure I'm not being stupid. > > I have a text file of fixed-length records I want to read in random > order. That file is being changed in real-tim

Re: How can this script fail?

2008-08-27 Thread kdwyer
On 27 Aug, 12:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Aug 27, 1:08 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > > > I don't think this is related to IDLE or your setup. The odbc > > module is very old and unmaintained, so it's possible that Windows > > doesn't find some system D

Re: PyXml

2008-05-10 Thread kdwyer
Stefan Behnel wrote: > Martin v. Löwis wrote: >>> Can anyone recommend a Python validating parser that validates vs Xml >>> Schema? >> >> The libxml bindings for Python can do that. > > ... although the OP will likely prefer using lxml, where it's three lines > of Python (ok, plus an import), co

PyXml

2008-05-09 Thread kdwyer
Hello Everyone, I've been looking into writing a utility to compare/analyse xml files, and thought I'd have a look at PyXml, but the Sourceforge page says it's no longer maintained. Two questions: What's the story with PyXml? Is it stable/complete or has effort moved elsewhere? Can anyone recom

Re: problem with dictionaries

2008-04-23 Thread kdwyer
On Apr 23, 1:22 pm, Bruno Desthuilliers wrote: > kdwyer a écrit :> On Apr 23, 12:16 pm, Simon Strobl <[EMAIL PROTECTED]> wrote: > (snip) > >> #!/usr/bin/python > > >> import sys > > >> frqlist = open('my_frqlist.txt', 'r

Re: problem with dictionaries

2008-04-23 Thread kdwyer
On Apr 23, 12:16 pm, Simon Strobl <[EMAIL PROTECTED]> wrote: > Hello, > > the idea of the following program is to parse a frequency list of the > form FREQUENCY|WORD, to store the frequency of a word in a dictionary > (and to do some things with this information later). > > I have done this many ma

Re: Broke my IDLE!

2008-02-06 Thread kdwyer
Just to clarify my earlier comment... IDLE (on Windows, at least) creates a folder called .idlerc in the current directory when it is called. If you amend the key bindings two files, config-keys.cfg and config-main.cfg are created. config- keys.cfg contains the amended key bindings and config-ma

Re: Broke my IDLE!

2008-02-05 Thread kdwyer
On Feb 5, 5:05 pm, "Adam W." <[EMAIL PROTECTED]> wrote: > Tried running IDEL from the command prompt to get this: > > Traceback (most recent call last): > File "c:\Python25\Lib\idlelib\idle.pyw", line 21, in > idlelib.PyShell.main() > File "c:\Python25\lib\idlelib\PyShell.py", line 1404, i

Re: Naive idiom questions

2008-02-02 Thread kdwyer
On Jan 31, 9:30 pm, Terran Melconian <[EMAIL PROTECTED]> wrote: > > I want to be able to accumulate a string with +=, not by going > through an intermediate list and then doing ''.join(), because I > think the latter is ugly. As others have observed, you can build a string using += ins

Re: "finding hostid with python"

2007-12-07 Thread kdwyer
On Dec 7, 9:10 pm, farsheed <[EMAIL PROTECTED]> wrote: > I,m searching for a way to obtain hostid in windows. > Any ideas? IIRC, MArk Hammond's extensions for windows have a method for obtaining the fully qualified hostname of a machine. Kev -- http://mail.python.org/mailman/listinfo/python-li