News for hackers. Stuff that matters.
Re:Python 3.4 Beta 1 Released by makmanalp on Sunday November 24, 2013 @10:58PM (#6792410)
> a new C API for implementing custom memory allocators

Wow. This'll lead to some interesting hacks, I think.

Re:Python 3.4 Beta 1 Released by amirouche on Monday November 25, 2013 @08:20AM (#6793875)
Finally all the hacks done internaly by some big Python company is released in the wild and not by them. Check out the presentation by the creator (in french) https://github.com/haypo/conf/blob/master/2013-PyconFR-Stras...
Re:Python 3.4 Beta 1 Released by haypo on Monday November 25, 2013 @12:33PM (#6795452)
I started the development of tracemalloc at Wyplay, but I rewrote all the code for the version included in Python 3.4: complelty different API, you get different data, new implementation, etc. The old code: https://github.com/wyplay/pytracemalloc/

The PEP 445 (malloc API) also allows to plug hooks on memory allocators at runtime, instead of having to recompile Python for that.

Re:Python 3.4 Beta 1 Released by haypo on Monday November 25, 2013 @12:34PM (#6795460)
tracemalloc is the first user of the PEP 445 (malloc API), but I wrote another toy: https://bitbucket.org/haypo/pyfailmalloc

"Debug tool for Python injecting memory allocation faults to simulate a low memory system to test how your application handles MemoryError exceptions."