Re: ANN: Beginning Python (Practical Python 2.0)

2005-10-21 Thread Magnus Lie Hetland
an effect. -- Magnus Lie HetlandPreparing to stand by. http://hetland.org-- Microsoft Windows -- http://mail.python.org/mailman/listinfo/python-list

ANN: Beginning Python (Practical Python 2.0)

2005-10-19 Thread Magnus Lie Hetland
://hetland.org/writing/beginning-python Thanks, - Magnus -- Magnus Lie HetlandPreparing to stand by. http://hetland.org-- Microsoft Windows -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python

ANN: Beginning Python (Practical Python 2.0)

2005-10-19 Thread Magnus Lie Hetland
://hetland.org/writing/beginning-python Thanks, - Magnus -- Magnus Lie HetlandPreparing to stand by. http://hetland.org-- Microsoft Windows -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 350: Codetags

2005-10-03 Thread Magnus Lie Hetland
for it, but I won't complain as much about that as about the empty '' thing :) -- Magnus Lie Hetland The early bird may get the worm but the second http://hetland.org mouse gets the cheese. -- Willie Nelson -- http://mail.python.org/mailman/listinfo/python-list

Re: Limited XML tidy

2005-08-25 Thread Magnus Lie Hetland
up doing was using an SGML parser (sgmlop) instead. It's highly forgiving (even of illegal entities and the like) but gives me the information I need. Might be worth a look in your app too? Toby -- Magnus Lie Hetland http://hetland.org -- http://mail.python.org/mailman/listinfo/python-list

Python Challenge on BBC

2005-08-11 Thread Magnus Lie Hetland
... ;) -- Magnus Lie HetlandFall seven times, stand up eight http://hetland.org [Japanese proverb] -- http://mail.python.org/mailman/listinfo/python-list

./pyconfig.h?

2005-04-12 Thread Magnus Lie Hetland
in that very directory when compiling; maybe there's some mix-up there? -- Magnus Lie HetlandFall seven times, stand up eight http://hetland.org [Japanese proverb] -- http://mail.python.org/mailman/listinfo/python-list

Re: Positions of regexp groups

2005-04-10 Thread Magnus Lie Hetland
In article [EMAIL PROTECTED], Tim Peters wrote: [Magnus Lie Hetland] Just a quick question: Does anyone have a simple way of finding the positions (start, end) of the groups in a regexp match? AFAICS, the re API can only return the contents...? Read the docs for match objects, esp. the start

Positions of regexp groups

2005-04-08 Thread Magnus Lie Hetland
Just a quick question: Does anyone have a simple way of finding the positions (start, end) of the groups in a regexp match? AFAICS, the re API can only return the contents...? -- Magnus Lie HetlandFall seven times, stand up eight http://hetland.org

Re: Pre-PEP: Dictionary accumulator methods

2005-03-20 Thread Magnus Lie Hetland
() and append() seem like more natural names -- but they may be confusing, considering their other uses...) +1 on both (possibly allowing for some naming discussion...) -- Magnus Lie Hetland Time flies like the wind. Fruit flies http://hetland.org like bananas

Re: sgmlop: malformed charrefs?

2005-03-17 Thread Magnus Lie Hetland
In article [EMAIL PROTECTED], Fredrik Lundh wrote: Magnus Lie Hetland wrote: [snip] with sgmlop 1.1, the following script class entity_handler: def handle_entityref(self, entityref): print ENTITY, repr(entityref) parser = sgmlop.XMLParser() parser.register(entity_handler

Re: sgmlop: malformed charrefs?

2005-03-17 Thread Magnus Lie Hetland
sure they've forked the code (there's no UnicodeParser in the effbot.org edition), Does it deal with Unicode at all? I.e., can I, for example, feed it a Unicode object? and I have no idea how things work in the fork. I see. -- Magnus Lie Hetland Time flies like the wind. Fruit

Re: PEP 246 revision

2005-03-08 Thread Magnus Lie Hetland
rewritten in order to fit the BDFL blog (as stated in the PEP). [snip] I don't quite see the conflict (between the blog and the PEP) here... -- Magnus Lie Hetland Time flies like the wind. Fruit flies http://hetland.org like bananas. -- Groucho Marx -- http

Re: PEP 246 revision

2005-03-04 Thread Magnus Lie Hetland
be as complex as in your example, as long as you use instances instead of classes as protocols. (I guess the case could be made for using classes as protocols, but I suspect the case would be mainly syntactical...) - M -- Magnus Lie Hetland Time flies like the wind. Fruit flies http