Skip to main content
11 events
when toggle format what by license comment
Apr 14, 2015 at 14:09 comment added Akavall @O.R.Mapper, in my example iterating over dictionary object in the pythonic way of iterating over keys, so not having .keys() is actually better. That's why I am reluctant calling this a bug.
Apr 14, 2015 at 13:49 comment added O. R. Mapper @Akavall: As you expect to be iterating over the keys, your code is doing something different than you expect and hence it is a bug. The mere fact that it does not visibly fail (e.g. due to a compiler error or runtime exception) does not mean it "works".
Apr 14, 2015 at 9:38 comment added Scimonster @Akavall Yes, until you realize how it works.
Apr 13, 2015 at 23:04 comment added ChrisV While it's accurate that it's still a bug, I think that's missing the point. A heisenbug is also "just a bug" but the word was coined to describe some more specific common experience. In fact, a bug is itself "just a malfunction" if you want to get ever more general. I like ladybug/ladybird, that's along the same lines as butterfly.
Apr 12, 2015 at 2:50 comment added CJ Dennis @cellik I like your suggestion but I'd have to call it a ladybird in my dialect! It's still a bug but a pretty one and it's considered special when one lands on you!
Apr 11, 2015 at 21:14 comment added GEdgar Still a bug. A beneficial bug, perhaps, but a bug.
Apr 11, 2015 at 3:57 comment added Akavall Let's say I am new python programmer, and I want to iterate over keys of a dictionary, so I intend to do [k for k in my_dict.keys()] but I accidentally forget .keys() of course the code would still work, but I would not expect it too, and I would be surprised that it works. Would you say that I have a bug?
Apr 10, 2015 at 16:42 comment added JeffSahol Yes. If you don't know why it works now, you won't be able to fix it when it stops working.
Apr 10, 2015 at 9:05 comment added starsplusplus I agree. Technically this is still a bug, albeit a pleasant one.
Apr 10, 2015 at 9:04 comment added cellik Ladybug perhaps
Apr 10, 2015 at 7:43 history answered AakashM CC BY-SA 3.0