I'm looking through the tools/scripts folder from the python install,
trying to get reacquanted with the language. Got a question on the
following classfix.py snippet:
# This expression doesn't catch *all* class definition headers,
# but it's pretty darn close.
classexpr = '^\([ \t]*class +[a-zA-
I doubt it, although it might work anyway.
Here's another from the same program:
(a0, b0), (a1, b1), (a2, b2) = classprog.regs[:3]
Nothing in the Python lib reference on the regs attribute for regex
objects.
--
http://mail.python.org/mailman/listinfo/python-list
Gotta love the attitude of people on .lang newsgroups
The unraw '\t' might work, but all the example in the tutorial use raw
strings, so why not be consistent in the example scripts?
1.5.2? Aren't we at 2.4.2 now? So the regs documentation was pulled,
yet the source code shipped with the
> classfix.py is not an *example* script. It is (was!) a *tool* script.
I see. 2.4.2 includes a tool for modifying 0.9.8 python classes to 1.1
somthing format using a now-defunct regex module. Oh, okay. Very
useful, I can see why it would still be included as part of the
distribution.
I was using
I understood the comment, just misinterpreted the meaning of the first
statement.
And speaking of my attitude, it's just as bad as anyone else's here.
Double check the membership of the comp.lang.python set...
--
http://mail.python.org/mailman/listinfo/python-list
Been using PyDev plugin for Eclipse for a week now... works pretty
good, and integrates well with PyLint.
Has some context-sensitive help, but not much. I wonder if writing a
script to convert Python HTML docs to Javadoc format would help?
H maybe I'll ask.
--
http://mail.python.org/mail