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
> 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
[EMAIL PROTECTED] wrote:
> 1.5.2? Aren't we at 2.4.2 now? So the regs documentation was pulled,
> yet the source code shipped with the installer still uses it? How are
> people suppose to make heads or tails of a language when it ships with
> deprecated, undocumented code?
$ more classfix.py
#
On 24/03/2006 2:57 PM, [EMAIL PROTECTED] wrote:
> 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?
classfix.py is not an *example* script. It is (was
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
On 24/03/2006 12:36 PM, [EMAIL PROTECTED] wrote:
> I doubt it, although it might work anyway.
You could dispel all doubt in about 15 seconds flat were you to actually
try it out.
>>> import regex
__main__:1: DeprecationWarning: the regex module is deprecated; please
use the re module
>>> rege
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
Em Qui, 2006-03-23 às 17:11 -0800, [EMAIL PROTECTED] escreveu:
> Since the classexpr isn't a raw string (not r prefix), doesn't the \t
> get converted to a tab character before it gets to the regex compiler?
>>> print '^\([ \t]*class +[a-zA-Z0-9_]+\) *( *) *\(\(=.*\)?\):'
^\([]*class +[a-zA-Z0