Skip to content

argparse: type conversion function should be called only once #56985

@arnau

Description

@arnau
mannequin
BPO 12776
Nosy @merwok, @bitdancer, @flying-sheep
Files
  • example-argparse-type-function-called-twice.py: Example script showing the issue
  • py2.7-argparse-call-type-function-once.patch: Patch for tip (py2.7) hg branch (2)
  • py3k-argparse-call-type-function-once.patch: Patch for tip (py3k) hg branch (2)
  • argparse_test.py: test case for defaults
  • py2.7-argparse-call-type-function-once-v3.patch: Patch for tip (py2.7) hg branch (3)
  • py3k-argparse-call-type-function-once-v3.patch: Patch for tip (py3k) hg branch (3)
  • py2.7-argparse-call-type-function-once-v4.patch: Patch for tip (py2.7) hg branch (4) -- 'is' rather than ==
  • py3k-argparse-call-type-function-once-v4.patch: Patch for tip (py3k) hg branch (4) -- 'is' rather than ==
  • fopatch: Add test cases for non-existent default file for FileType.
  • py3k-argparse-call-type-function-once-v5.patch
  • 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 = None
    closed_at = <Date 2012-09-01.03:18:24.828>
    created_at = <Date 2011-08-18.08:57:57.490>
    labels = ['type-bug', 'library']
    title = 'argparse: type conversion function should be called only once'
    updated_at = <Date 2014-05-30.02:44:44.040>
    user = 'https://bugs.python.org/arnau'

    bugs.python.org fields:

    activity = <Date 2014-05-30.02:44:44.040>
    actor = 'paul.j3'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-09-01.03:18:24.828>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2011-08-18.08:57:57.490>
    creator = 'arnau'
    dependencies = []
    files = ['22926', '22978', '22979', '23767', '23775', '23776', '23972', '23973', '25438', '26467']
    hgrepos = []
    issue_num = 12776
    keywords = ['patch']
    message_count = 21.0
    messages = ['142306', '142620', '142653', '144673', '148234', '148235', '148239', '148241', '148250', '148303', '148304', '149526', '149590', '151988', '156316', '159826', '159827', '166076', '169608', '169610', '185683']
    nosy_count = 8.0
    nosy_names = ['bethard', 'eric.araujo', 'r.david.murray', 'arnau', 'flying sheep', 'python-dev', 'paul.j3', 'Mike.Meyer']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue12776'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions