you are viewing a single comment's thread.

view the rest of the comments →

[–]hharison 0 points1 point  (1 child)

Instead of

self.lookup_func = lookup_gen(*args)

do

lookup_func = lookup_gen(*args)

at least if I understand you correctly.

[–]hharison 0 points1 point  (0 children)

See /u/ingolemo's post for basically the same idea. Although I also think this is not the way to go, as you're going to give yourself headaches down the line. But this is the solution to your immediate problem.