Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#43 Option to choose quote types in docstring

open
nobody
None
5
2005-09-26
2005-09-26
No

To generate automatic docstrings on methods, you use
CTRL+1.
This shortcut generates simple quote. It could be nice,
if the developper could choose between simple quote and
double quote .

Discussion

  • R.SAIKALI
    R.SAIKALI
    2006-04-11

    Logged In: YES
    user_id=1499406

    And it would be nice if this docstring section could be
    customized :
    Actually, only @param items.
    But @type, @return, @rtype and maybe @see would be
    wonderfull...
    In fact it depends of the method, so if it could be
    customized (also for single/double-quotes)...

     
  • Andreas M.
    Andreas M.
    2006-09-29

    Logged In: YES
    user_id=177528

    I would like to have triple-quotes as docstring as well. As
    far as I know, this is the common way to do it.

    P.S. When I use QuickFix/ContentAssist (CTRL+1) I do not
    even get any "surround with docstring" in 1.2.4.

    Is this normal ?

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2006-09-29

    Logged In: YES
    user_id=617340

    Actually, the way to do it is not surround, but in the 'def'
    line press ctrl+1 and choose make docstring.

    Check http://www.fabioz.com/pydev/manual_adv_assistants.html
    for more examples.

     
  • zigoto29
    zigoto29
    2007-04-04

    Logged In: YES
    user_id=1761061
    Originator: NO

    I agree since triple double quotes are part of the docstring rules http://www.python.org/dev/peps/pep-0257/