Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action/append should push new values, not concat #37

Merged
merged 1 commit into from
Jan 4, 2013

Conversation

hpaulj
Copy link

@hpaulj hpaulj commented Jan 4, 2013

In test_argparse.py TestPositionalsActionAppend has 2 positional args, one that takes 1 argument, the other 2.
parseArgs with 'a b c' produces spam: ['a','b','c'], but python expects spam: ['a', ['b','c']].
This is because append.js uses concat, while python uses append.

Correction: change action/append.js set() to use push()

with 2 positional args, one that takes 1, the other 2,
parseArgs with 'a b c' produces spam: ['a','b','c'], but python expects
spam: ['a', ['b','c']].
This is because append.js uses 'concat', while python uses 'append'.

Correction: change action/append.js set() to use push()
puzrin pushed a commit that referenced this pull request Jan 4, 2013
action/append should `push` new values, not `concat`
@puzrin puzrin merged commit bbff04f into nodeca:master Jan 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants