• Barry Warsaw's avatar
    Additional tests for current, PEP described semantics: · c1e100f2
    Barry Warsaw yazdı
    - func.__dict__ is None until the first attribute is assigned
    
    - del func.__dict__ is equivalent to func.__dict__ = None
    
    - disallowing assignment to function attribute through unbound method
      (it was always illegal to assign through bound method).
    
    - verifying that setting attribute explicitly on underlying function
      via meth.im_func is okay.
    c1e100f2
test_funcattrs.py 3.81 KB