Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Introduction to Python Decorators. Parent comment
* decorate a class
* decorate a method
* have arguments
* have no arguments
extremely contrived example:
http://pastebin.com/GBuYL2af
Note that the above only works for 'new style' classes (otherwise the type signature is not 'type').
edit: dumped code in a pastebin. it got kind of long.
There are no comments on this comment yet.
* decorate a class
* decorate a method
* have arguments
* have no arguments
extremely contrived example:
http://pastebin.com/GBuYL2af
Note that the above only works for 'new style' classes (otherwise the type signature is not 'type').
edit: dumped code in a pastebin. it got kind of long.