News for hackers. Stuff that matters.
Re:Python 3.4.0 released by agentultra on Monday March 17, 2014 @09:48AM (#7414946)
Glad to see customizable memory allocators made it in. Now if we could only take it up a notch and allow the run time to assign custom allocators on individual objects I could implement something like CCL's WATCH [0] for Python objects which would make debugging multi-threaded code much easier.

Congrats to the python-core team and thanks to everyone for another great release!

[0] http://ccl.clozure.com/ccl-documentation.html#watched-object...

Re:Python 3.4.0 released by illumen on Tuesday March 18, 2014 @03:36AM (#7420637)
tldr; 'watchpoints' in python can do this already(since before clojure existed), but it's not built into standard pdb.

You could do the allocator yourself with a custom allocator easily. Just inspect the object type or object id, and in your meta allocator select the correct allocator.

I'm not sure how that would help you with a CCL style WATCH though...

pdb, with set_trace or conditions on breakpoints could let you WATCH individual objects. Search google for watchpoints.