mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
14 lines
321 B
ReStructuredText
14 lines
321 B
ReStructuredText
Python, functools and aliases
|
|
#############################
|
|
|
|
:status: draft
|
|
|
|
I have been playing lately with python and functools to make method aliases. I
|
|
wanted to have something like this.
|
|
|
|
.. code-block:: python
|
|
|
|
class Baby(object):
|
|
|
|
def eat(self, thing):
|
|
self.intestine.digest(thing)
|