Commit Graph

  • f5e0cc3753 Updates to unit tests. Graham Dumpleton 2013-08-12 21:28:40 +08:00
  • 5d7f0c5ab7 The __qualname__ and __name__ attributes should not be written back to the wrapped/target in constructor. Graham Dumpleton 2013-08-12 20:15:15 +08:00
  • 5838899d67 Rename WrapperBase to ObjectProxy and promote to public API. Graham Dumpleton 2013-08-12 20:11:41 +08:00
  • 198daeb0ca Move wrapper storage out of WrapperBase as not a part of ObjectProxy functionality and applies to specific wrapper types. Graham Dumpleton 2013-08-12 20:04:55 +08:00
  • 4fa911fef5 Proxy through query/update of annotations in C version of wrapper. Graham Dumpleton 2013-08-11 22:38:51 +08:00
  • 039aecad50 Propagate __name__ and __qualname__ updates as well as saving them against the wrapper. Graham Dumpleton 2013-08-11 22:20:15 +08:00
  • 7c88ecf10c Make compilation of extensions optional through an environment variable. Graham Dumpleton 2013-08-11 21:56:37 +08:00
  • 9912f6e93b The __module__ and __doc__ attributes can be lazily evaluated in C code using get/set functions as in Python version. Graham Dumpleton 2013-08-11 21:19:54 +08:00
  • c63a0cb34e Cannot cache Python objects as static data as causes problems when have multiple interpreters. Graham Dumpleton 2013-08-11 21:18:55 +08:00
  • ed10ff41a2 Implement BoundFunctionWrapper and BoundMethodWrapper as part of C extension to improve performance. Graham Dumpleton 2013-08-10 22:07:51 +08:00
  • 4f3c86483c Implement FunctionWrapper as part of C extension to improve performance. Graham Dumpleton 2013-08-09 23:24:51 +08:00
  • 4ed8075039 Allow direct execution of individual unit tests. Graham Dumpleton 2013-08-09 23:23:03 +08:00
  • e62438afb0 Hardwire decorator to FunctionWrapper and remove factory layer. Graham Dumpleton 2013-08-09 23:22:33 +08:00
  • d62e7ec1dc Use normal byte string in Python 2 for attribute prefix match. Graham Dumpleton 2013-08-08 23:02:27 +08:00
  • cb129532ad Restructure code base so testing doesn't pick up local source. Add WrapperBase extension module to reduce overheads. Graham Dumpleton 2013-08-08 22:55:44 +08:00
  • bc87560551 Move storage of params up into function wrapper as only specific to the high level wrapper and not the generic base. Graham Dumpleton 2013-08-08 19:48:39 +08:00
  • ae3f1e23eb Add version information to package. Graham Dumpleton 2013-08-08 19:33:35 +08:00
  • 140f47eec1 Drop function and method wrappers so only one implementation and rename dynamic wrapper as function wrapper. Graham Dumpleton 2013-08-08 19:17:27 +08:00
  • 1b431e1b0a Move decorator for testing in separate module namespace into unit tests themselves. Graham Dumpleton 2013-08-08 17:38:18 +08:00
  • 3c220f7519 Add and fix code for adapter decorator and fix argument naming for target when using adapter. Graham Dumpleton 2013-08-08 17:04:14 +08:00
  • b1ab857826 Update to unit tests. Test of decorator parameters. Graham Dumpleton 2013-08-07 22:52:57 +08:00
  • b0c122e3c8 Although instance will always be None, require user wrapper function for FunctionWrapper accept it so consistent across decorator types. Graham Dumpleton 2013-08-07 22:04:56 +08:00
  • 044a70c4b9 Rename GenericWrapper to DynamicWrapper. Defer to BoundMethodWrapper for instancemethod from within DynamicWrapper. Graham Dumpleton 2013-08-07 22:00:44 +08:00
  • 2d67e5d3d6 Updates to unit tests. Checks for classmethod/staticmethod when nested decorators used. Graham Dumpleton 2013-08-07 21:05:12 +08:00
  • 2b1d1bdc4d Alternate means to check for instancemethod call via type which also works on Python 3. Graham Dumpleton 2013-08-07 20:55:19 +08:00
  • 9802b522de Cannot have except clause and suppress exceptions around call of user wrapper. Graham Dumpleton 2013-08-06 22:49:41 +08:00
  • 0ca1dd13e7 Force what Python versions are tested with by default to include Python 2 and 3 versions supported. Graham Dumpleton 2013-08-06 22:30:57 +08:00
  • 2736764e30 Incorrect exception type list syntax for except clause under Python 3. Graham Dumpleton 2013-08-06 22:30:22 +08:00
  • c590bdb1f4 Rename decorators/wrappers and no longer pass the class of bound function to user wrapper. Graham Dumpleton 2013-08-06 22:12:14 +08:00
  • a63c622817 Configure git to ignore editor save files. Graham Dumpleton 2013-08-06 22:11:07 +08:00
  • 41025ba0cb Updates to unit tests. Graham Dumpleton 2013-08-06 21:33:22 +08:00
  • c4b02cfa1e Detection of instancemethod call via class in generic decorator. Graham Dumpleton 2013-08-06 21:33:02 +08:00
  • 96babcb837 Argument renaming and clarifications to documentation. Graham Dumpleton 2013-08-05 23:07:56 +08:00
  • 6568fe4f06 Updates to unit tests. Graham Dumpleton 2013-08-05 22:24:01 +08:00
  • bc16501fa1 Dump initial cut of code into github. Graham Dumpleton 2013-08-05 20:58:35 +08:00
  • 4b9cd87e2f Initial commit Graham Dumpleton 2013-05-29 03:22:45 -07:00