News for hackers. Stuff that matters.
Re:FreezeGun: easy mocking of Python datetimes by madjar on Tuesday December 11, 2012 @04:53PM (#4907060)
Sadly, it's not possible. datetime is a C class, so it is immutable.
Re:FreezeGun: easy mocking of Python datetimes by spulec on Tuesday December 11, 2012 @04:57PM (#4907098)
Correct. I've gone with his latter solution for now and added a warning about import order. I'm not very happy with this solution through and will be spending some time with ctypes in the next few days to come up with something better.