Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I show my argspec/docstring in bpython?
    primarykey
    data
    text
    <p>I'm just starting to use bpython, mainly because I really think it will help the office nubs a lot. In bpython, it continually shows help text as you type. For example</p> <pre> >>> zip( ┌────────────────────────────────────────────────────────────────────────┐ │ zip: (seq1 [, seq2 [...]]) │ │ zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)] │ │ │ │ Return a list of tuples, where each tuple contains the i-th element │ │ from each of the argument sequences. The returned list is truncated │ │ in length to the length of the shortest argument sequence. │ └────────────────────────────────────────────────────────────────────────┘ </pre> <p>This is great for the less educated (and even novice's like myself). However nothing shows up for my custom built functions. I thought maybe it was just displaying the docstring so I added docstrings to my functions. Nothing changed. Can someone explain to me what it is showing here and how I add it to my functions?</p> <p>EDIT: It must be some weird inheritance issue. This is being done with Django's custom managers.</p> <pre> class PublicationManager(models.Manager): """blarg""" def funct(arg): """foo""" pass class Publication(models.Model): objects = PublicationManager() </pre> <p>Typing <code>PublicationManager.funct(</code> shows the docstring but <code>Publication.objects.funct(</code> does not. I guess the nubs will have to figure it out for themselves. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload