Bad news. See bug 2393362.

There the author wants to do:

  $xrange(10)$$xrange(10)$

in the fuzzy generator, to create numbers from 00 to 99.

The problem is that we decided that, as the $ was the separator, if
you wanted to include a real $, put two of them: $$.  The system, to
evaluate the text first takes out the $$, then evaluate everything,
and finally put backs the $$, but as $.

So,

  $xrange(10)$$xrange(10)$  --> xrange(2)$xrange(2)  (error)

Putting a double $$ there doesn't solve it, because the system first
takes them out, then evaluate, and then put the $ back:

  $xrange(10)$$$$xrange(10)$  --> xrange(2)$$xrange(2)  (error)

And we *don't* want to change the order of out-eval-in, because
otherwise things like the following would not work:

  $['a', '$$', 'b']$  -->  generator of 'a', '$', and 'b'

So, unless somebody thinks of a more clever solution, I propose to
keep the $ as separator, but to include a $ sign you actually would
need to escape it \$.

  $xrange(10)$$xrange(10)$  --> generator of 00, 01, ...
  $['a', '\\$', 'b']$  -->  generator of 'a', '$', and 'b'

Note that I put two backslashes there... that's because the first is
to escape the second, and actually receive one "\" as independent
character (I could have used a raw string, also).

What do you think?

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to