|
Apr
8 |
|
awarded | Necromancer |
|
Mar
12 |
|
awarded | Nice Answer |
|
Dec
7 |
|
awarded | Yearling |
|
Oct
31 |
|
awarded | Necromancer |
|
Sep
26 |
|
awarded | Notable Question |
|
Aug
20 |
|
comment |
When I use Fixture with SqlAlchemy in my unit tests, why am I unable to confirm changes to the database during test? ditto. would have been better if in-memory storage is possible. Tests should run a lot faster that way. |
|
Aug
6 |
|
awarded | Necromancer |
|
Aug
1 |
|
awarded | Enthusiast |
|
Jul
4 |
|
comment |
Python Decorators that modifies a bound method and its class' state @Ben: It was partly functional programming, I think, as I was trying to modify a function (and its class' state) with the method_wrapper method. |
|
Jul
3 |
|
awarded | Editor |
|
Jul
3 |
|
revised |
Python Decorators that modifies a bound method and its class' state changed method_wrapper to return the new method called with args and kwargs instead of returning just the function object as that's what it's supposed to mean. |
|
Jul
3 |
|
comment |
Python Decorators that modifies a bound method and its class' state Great! Got it working. Instead of taking self as an argument and modifying it, I created another class that's being inherited by the ObjMeta that contains the 'methods' attribute and that's what I modified inside the method_wrapper yielding: ObjMetaMeta.methods.append(method.__name__) |
|
Jul
3 |
|
accepted | Python Decorators that modifies a bound method and its class' state |
|
Jul
3 |
|
comment |
Python Decorators that modifies a bound method and its class' state Whoops. You're right. I should return the called method passed in with the *args and **kwargs. I'll edit the code above. As for your answer, you're probably right there as well. I'll give it a go and post back. Thanks. |
|
Jul
3 |
|
comment |
Python Decorators that modifies a bound method and its class' state Thanks! That answers my other question. Helps a lot. |
|
Jul
3 |
|
asked | Python Decorators that modifies a bound method and its class' state |
|
May
30 |
|
answered | Using :Vexplore effectively |
|
May
6 |
|
comment |
Issues with using multiple models in a single Backbone view and EJS template You can also pass in the model converted to json by calling the model object's method toJSON(). That is so that you wouldn't have to get the model's attributes from the attributes object when using the model inside the template. ex. myTemplate(this.model.toJSON()); |
|
Feb
12 |
|
asked | Remove GVim's fat bottom border on Lucid Lynx |
|
Feb
10 |
|
awarded | Popular Question |