On Sep 11, 4:48 pm, Manuel Ebert <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Ah, well. Don't know whether it meets your aesthetic standards, but:
> >>> my_list = ['tree', 'hug', 'flower', 'hug', 'bear', 'run']
> >>> my_list[0:len(a):2]
> ['tree', 'flower', 'be
On Sep 11, 4:04 pm, Manuel Ebert <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi Andy,
>
> by the looks of it I'd say that the problem is that the second
> parameter you passed to start_element is not a dictionary at all (the
> clue is in the "AttributeError:
Hi
I'm new to Python and trying to pick up good, idiomatic usage right
from the offset.
As I was familiar with Expat from C++ (directly and via expatpp) I'm
trying to write a little script - using xml.parsers.expat - to search
and replace XML attribute values.
As I want the attributes to stay in