Skip to content

update format() documentation and tutorial #51062

Description

@grooverdan
mannequin
BPO 6813
Nosy @birkenfeld, @ericvsmith
Files
  • documentation-str-format.patch: documentation and tutorial updates for format()
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/birkenfeld'
    closed_at = <Date 2009-09-01.07:43:05.479>
    created_at = <Date 2009-09-01.04:05:04.998>
    labels = ['docs']
    title = 'update format() documentation and tutorial'
    updated_at = <Date 2009-09-01.08:51:58.561>
    user = 'https://bugs.python.org/grooverdan'

    bugs.python.org fields:

    activity = <Date 2009-09-01.08:51:58.561>
    actor = 'eric.smith'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2009-09-01.07:43:05.479>
    closer = 'georg.brandl'
    components = ['Documentation']
    creation = <Date 2009-09-01.04:05:04.998>
    creator = 'grooverdan'
    dependencies = []
    files = ['14812']
    hgrepos = []
    issue_num = 6813
    keywords = ['patch']
    message_count = 4.0
    messages = ['92119', '92122', '92135', '92136']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'eric.smith', 'grooverdan']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue6813'
    versions = ['Python 3.1', 'Python 3.2']

    Activity

    1. grooverdan commented on Sep 1, 2009

      grooverdanmannequin
      MannequinAuthor

      Release notes show the use of '{}'.format('this') and the attached patch
      updates this to be the default example in the tutorial. Library
      references are updated to show field_name as optional and a few examples
      are added.

      Relates to the improvements from bpo-5237.

    2. birkenfeld commented on Sep 1, 2009

      @birkenfeld
      Member

      Thanks, committed as r74614 (trunk), r74615 (3k).

    3. ericvsmith commented on Sep 1, 2009

      @ericvsmith
      Member

      2.7 does not support the !a conversion specifier. It's only available in
      3.1 and above.

      It's because ascii() is a 3.x only builtin.

    4. ericvsmith commented on Sep 1, 2009

      @ericvsmith
      Member

      Never mind, I see that you didn't add the !a docs to trunk.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions