Hi,

I use functions in my fixes.py as written in https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes_and_functions_HOWTO.

Now, my idea is to use an additional parameter. (In case nobody breaks the framework. :-))
So my fix has something like this in replacements:

  (ur'someregex', MyFunc),
Then MyFunc takes the match object as a parameter and is executed. I have to write
def MyFunc(match):
  etc.

Now I want to write def MyFunc(match, mode), but I can't pass mode to MyFunc anyway.
I guessed the line in question is #195 in textlib.py:
                replacement = new(match)

Here I stopped. How could I pass additional optional parameters?

--
Bináris