Re: [Tutor] Dynamically changing a class

2007-09-05 Thread Jason Doege
ing a class with a bunch of empty methods and then redefining them, I have not seen a good way to do this in Python. Can you recommend the Pythonic way to do this? Best regards, Jason Doege ___ Tutor maillist - Tutor@python.org http://mail.python.org/ma

[Tutor] Dynamically changing a class

2007-09-03 Thread Jason Doege
dance on how to accomplish this? I'd also like to be able to add and delete attributes, similarly. Best regards, Jason Doege ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Lexer implementation

2007-05-09 Thread Jason Doege
Hi All, Is there a classical way to implement a lexer in Python without using a parser toolkit? Something like the lexer MJD illustrates in Higher Order Perl, section 8.1.2. It's even better if it can act on a stream instead of a string. Best regards, Jason