News for hackers. Stuff that matters.
Re:Bpython is a fancy interface to the Python interpreter by bobfarrell on Tuesday May 22, 2012 @08:38AM (#4007492)
Hi. It's done using ncurses for the display (if you've ever worked with curses you can imagine how much of a headache the whole thing was). The introspection is done using the `inspect` module for the arg spec/doc string, and either inspect.getmembers or just dir() to get the attributes (it's been a while since I wrote it). We had to do some pretty weird stuff to get the attribute inspection to not trigger __getattribute__ for objects that implement it (i.e. to introspect without side-effects) but it seems to work pretty well.

There are no comments on this comment yet.