Sourcecode

Warning, large parts of source code are still undocumented till we include the automatic generation of this documentation by adding in restructed text comments.

bpython.cli

cli.log(x)

Function to log anything in x to /tmp/bpython.log

cli.parsekeywordpairs(signature)

Not documented yet.

Parameters:signature – string
Return type:dictionary
cli.fixlongargs(f, argspec)

Functions taking default arguments that are references to other objects whose str() is too big will cause breakage, so we swap out the object itself with the name it was referenced with in the source by parsing the source itself !

class cli.FakeStdin
FakeStdin.__init__(self, interface)

Take the curses Repl on init and assume it provides a get_key method which, fortunately, it does.”“”

FakeStdin.isatty(self)

Spoof into thinking this is a tty

Return type:Boolean
Returns:True
FakeStdin.readline(self)

I can’t think of any reason why anything other than readline would be useful in the context of an interactive interpreter so this is the only one I’ve done anything with. The others are just there in case someone does something weird to stop it from blowing up.”“”

Return type:string

bpython.keys

Table Of Contents

Previous topic

Changelog

Next topic

bpaste

This Page