Re: [Tutor] fortune-like utility was [Tutor Digest ...]

2011-08-30 Thread Martin A. Brown
Good morning and welcome to the list, : Just planning it out in my head so far, like pseudocode. I hope : to get started soon. I'm just looking to have a little dialog box : come up, display a random quote of the day, and then hit enter : and it's gone. Should be a nice, simple way to get

[Tutor] fortune-like utility

2011-08-30 Thread Cranky Frankie
On Tue, Aug 30, 2011 at 5:23 AM, Martin A. Brown wrote: > > Good morning and welcome to the list, > >  : Just planning it out in my head so far, like pseudocode. I hope >  : to get started soon. I'm just looking to have a little dialog box >  : come up, display a random quote of the day, and then

[Tutor] xml parsing without a root element

2011-08-30 Thread rail shafigulin
hello everyone. i need to parse a an xml-like file. the problem that i'm facing is that this file doesn't have the root element but in all other terms it is the same as xml, i.e does anybody know if there is a module in python that allows to process an xml file without a root element? i t

Re: [Tutor] xml parsing without a root element

2011-08-30 Thread Joel Goldstick
On Tue, Aug 30, 2011 at 1:27 PM, rail shafigulin wrote: > hello everyone. > > i need to parse a an xml-like file. the problem that i'm facing is that > this file doesn't have the root element but in all other terms it is the > same as xml, i.e > > > > > > > > > > does anybody know if there is

Re: [Tutor] xml parsing without a root element

2011-08-30 Thread Peter Otten
rail shafigulin wrote: > hello everyone. > > i need to parse a an xml-like file. the problem that i'm facing is that > this file doesn't have the root element but in all other terms it is the > same as xml, i.e > > > > > > > > > > does anybody know if there is a module in python that all

Re: [Tutor] xml parsing without a root element

2011-08-30 Thread davidheiserca
Can you encapsulate the contents of the file in a root element before processing? - Original Message - From: rail shafigulin To: tutor@python.org Sent: Tuesday, August 30, 2011 10:27 AM Subject: [Tutor] xml parsing without a root element hello everyone. i need to pa

[Tutor] Fwd: Re: largest palindrome number

2011-08-30 Thread bob gailer
Original Message Subject:Re: [Tutor] largest palindrome number Date: Tue, 30 Aug 2011 23:24:09 +0530 From: surya k To: bob gailer Mr Gailer, That's an amazing way of writing palindrome function. Actually, I'm still using my old C logic's here. Thanks for

Re: [Tutor] xml parsing without a root element

2011-08-30 Thread rail shafigulin
On Tue, Aug 30, 2011 at 2:20 PM, Peter Otten <__pete...@web.de> wrote: > rail shafigulin wrote: > > > hello everyone. > > > > i need to parse a an xml-like file. the problem that i'm facing is that > > this file doesn't have the root element but in all other terms it is the > > same as xml, i.e >

Re: [Tutor] Fwd: Re: largest palindrome number

2011-08-30 Thread Chris Fuller
I played around with this puzzle a bit. I made a palindrome function a bit like Bob's, only i iterated through the string (stopping at the first mismatch) instead of doing the whole thing at once. The rest of the code is even more amenable to speedups. The first thing I saw was the outer "i"

Re: [Tutor] select particular directories and files

2011-08-30 Thread questions anon
Thanks, that also works really well. One of the hardest things I am finding with programming is that there is always more than one way to do something. This is a good and bad thing. Bad for beginners!! thanks On Tue, Aug 30, 2011 at 4:45 PM, Peter Otten <__pete...@web.de> wrote: > questions anon

Re: [Tutor] Package installation on Mac does not detect newer version of python

2011-08-30 Thread Walter Prins
On 29 August 2011 11:50, Elisha Rosensweig wrote: > Hi All, > > I'm trying to use easy_install on my Mac to get the Python networx package. > On my machine I have installed version 2.5 AND 2.6 of Python. However, wehn > I try to install this package, I get: > > Best match: networkx 1.5 > Download