-
I am unable to define a method that dispatches on the value 0.
- Note it does work for other integers.
from multimethods import MultiMethod
def dispatch(x):
return x
foo = MultiMethod('foo', di…
-
Hi,
I wanted to use [`Batch.setColor()`](libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/g2d/Batch.html#setColor-float-float-float-float-) with the alpha paramter to make an ent…
-
Even though the manual says so, that is pure namedropping.
-
If you write
``` py
@mymethod.method((MyClass))
def mymeth_myclass(x):
....
mymeth_myclass = trace(mymeth_myclass) # trace is a decorator
```
then the dispatch will not be traced. You would h…
-
A few other issues(#6, #9 and #10) have started to interfere a bit with function definitions and calls, so I think we should try defining these smaller building blocks (such as variable bindings and n…
-
```
16:35 jweiss, speaking of multimethods, I noticed that the multimethod decorators are squashing docstrings. While you're tinkering in there, could you steal __doc__ from the function being wrappe…
-
I ran across your library, and the API seems a little unusual in its design. I guess you've come from an OOP background?
In Clojure, APIs tend to be styled in a way like:
``` clojure
(require '[goca…
-
It seems that if the multimethod indirection is used, component's lifecycle methods are not called.
```
(defn test-view1 [app owner]
(reify
om/IWillMount
(will-mount [_]
(.log js/co…
katox updated
10 years ago
-
Add the modules for database connectivity, regarding trades.
**Available modules**
nildb : This database does not do anything
mockdb: This database stores trades in memory
**Interface**
Database mod…
-
Thank you for this very nice library.
Currently, 'train expects xs to be a sequence of objects which are either maps or sets.
For cheaper use of CPU and memory with large non-sparse datasets, it may…
daslu updated
10 years ago