passed extra info to repl function
Michael P. Soulier
msoulier at nortelnetworks.com
Tue Oct 30 08:10:12 EST 2001
On Mon, 29 Oct 2001 15:38:17 -0500, Tim Peters <tim.one at home.com> wrote:
>
> Luckily, they were never necessary. You *could* abuse default arguments to
> sneak replacement_dict into the arglist of your replace function, but it's
> straightforward to use a bound method instead:
Many thanks to all who responded. Apparently I had some misconceptions
about how binding of function calls is done in Python. Maybe I'm too used to
C.
Thanks again,
Mike
--
Michael P. Soulier, TD12, SKY Tel: 613-765-4699 (ESN: 39-54699)
Optical Networks, Nortel Networks, SDE Pegasus
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort." -Harley Hahn, A Student's Guide to Unix
More information about the Python-list
mailing list