| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Removed func_hash and func_compare, so they can be treated as immutable
content-less objects (address hash and comparison)
* Added tests to that affect to test_funcattrs (also testing func_code
is writable)
* Reverse meaning of tests in test_opcodes which checked identical code
gets identical functions
|
|
|
|
|
| |
added a test of a coredump that would occur when del'ing
func_defaults (put here for convenience).
|
|
|
|
| |
new module.
|
|
Closes SF patch #103123.
Regression test for function attributes, with output file.
|