abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.2k stars 130 forks source link

rebind error #625

Open QiangF opened 2 years ago

QiangF commented 2 years ago

When evaluating this:

def Rob_init(self, name):
    self.name = name

I got this error:

lispy-python.py:318, in rebind(method, fname, line)
311 """Rebind METHOD named like Class.function in all top level instances of Class.
    312 
    313 Modifying a method is two-step:
    314 1. eval the method as if it's a free top-level function,
    315 2. modify all instances of the class with an adapter to this top-level function.
    316 """
    317 qname = method.__qualname__
--> 318
(cls_name, fun_name)
= qname.split(".")
319 for
(n, v)
in find_global_vars(cls_name)
:
    320     print("rebind:", n)
ValueError: not enough values to unpack
(expected 2, got 1)