Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
64 lines (41 loc) · 1.47 KB

File metadata and controls

64 lines (41 loc) · 1.47 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

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

.. module:: cli
   :platform: POSIX
   :synopsis: Basic interpreter.

.. function:: log(x)

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

.. function:: parsekeywordpairs(signature)

   Not documented yet.

   :param signature: string
   :rtype: dictionary

.. function:: 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 !

.. method:: FakeStdin.__init__(self, interface)

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

.. method:: FakeStdin.isatty(self)

   Spoof into thinking this is a tty

   :rtype: Boolean
   :returns: True


.. method:: 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."""

   :rtype: string

bpython.keys

.. module:: keys
   :platform: POSIX
   :synopsis: Keyboard mappings
Morty Proxy This is a proxified and sanitized view of the page, visit original site.