This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: behavioural change in argparse set_defaults in python 2.7.9
Type: Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: argparse silently ignores arguments
View: 23058
Assigned To: Nosy List: bethard, doko, paul.j3
Priority: normal Keywords:

Created on 2015-03-01 11:32 by doko, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py doko, 2015-03-01 11:32
Messages (2)
msg236956 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2015-03-01 11:32
seen with ceph, https://launchpad.net/bugs/1413321

This appears to be a regression in the argparse package in python; under trusty ceph-disk works just fine, however in vivid, the cluster attribute remains unset (despite having a default of 'ceph'). Attached python demonstrates the problem.
msg239434 - (view) Author: paul j3 (paul.j3) * (Python triager) Date: 2015-03-27 20:42
This is another manifestation of the
http://bugs.python.org/issue9351 partial patch  (on how the namespace of the parser relates to the namespace of the subparser).

see also
http://bugs.python.org/issue23058
History
Date User Action Args
2022-04-11 14:58:13adminsetgithub: 67743
2015-03-31 18:28:59berker.peksagsetsuperseder: argparse silently ignores arguments
resolution: duplicate
stage: resolved
2015-03-27 20:43:08paul.j3setstatus: open -> closed
2015-03-27 20:42:41paul.j3setmessages: + msg239434
2015-03-01 14:01:34BreamoreBoysetnosy: + paul.j3
2015-03-01 11:34:50SilentGhostsetnosy: + bethard
2015-03-01 11:32:36dokocreate