Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Forbidden Fruit – Patch built-in Python objects. Parent comment
A very quick test would be trying to do something like this:
>>> monkeypatch(str, "blah", "bleh") >>> assert str.blah == "bleh"
I tried it here with no success though.
There are no comments on this comment yet.
A very quick test would be trying to do something like this:
>>> monkeypatch(str, "blah", "bleh") >>> assert str.blah == "bleh"
I tried it here with no success though.