miniblog.
← Back to all posts
Jul 1, 2014 at 10:56
Hit a nasty bug caused by to Python's garbage collection behaviour:
https://stackoverflow.com/q/24507404/509706
Yikes.
Wilfred Hughes
Related Posts
Apr 8, 2014 at 08:40
Yikes. In #python, (-7) % 4 == 1 but Decimal(-7) % Decimal(4) == Decimal('-3'). That's really confusing.
Wilfred Hughes
Shared words: Yikes, Python Score: 66.2
Oct 15, 2013 at 11:40
Yikes. On Python 2 `foo = lambda: 5; print foo > 6, foo() > 6` gives 'True False'. Hides tricky bugs. Another reason to move to Python 3.
Wilfred Hughes
Shared words: Yikes, Python Score: 66.2
Dec 31, 2012 at 16:26
Generally, you can trust GC to do the right thing. PHP has had some nasty garbage-collection bugs though (e.g.
https://bugs.php.net/bug.php?id=50027
)
PHP :: Bug #50027 :: $this becomes a non-object
bugs.php.net/bug.php?id=50027
Wilfred Hughes
Shared words: nasty, garbage, collection Score: 57.2