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

Append(CPPDEFINES=string) might concat string #2300

Closed
bdbaddog opened this issue Jan 2, 2018 · 1 comment
Closed

Append(CPPDEFINES=string) might concat string #2300

bdbaddog opened this issue Jan 2, 2018 · 1 comment

Comments

@bdbaddog
Copy link
Contributor

bdbaddog commented Jan 2, 2018

This issue was originally created at: 2009-01-28 12:11:40.
This issue was reported by: jaredgrubb.
jaredgrubb said at 2009-01-28 12:11:41

It would be nice if the following were equivalent, because the first one results in something that is not intended:

env = DefaultEnvironment(CPPDEFINES = 'foo')
env.Append(CPPDEFINES='bar')
# Result: -Dfoobar

env = DefaultEnvironment(CPPDEFINES = ['foo']) # note the list
env.Append(CPPDEFINES='bar')
# Result: -Dfoo -Dbar

gregnoel said at 2009-02-04 19:54:57

Bug party triage. Yeah, we'd like this, too, as it's a continuing source of errors. Unfortunately, we don't know of a downside-free solution; the obvious approach would add logic to a very performance-critical path. Look at this again in the 2.x timeframe; the new floor of Python 2.2 should offer additional possibilities.

garyo said at 2010-08-15 15:16:08

Fixed for 2.1, in r5133.

@mwichmann
Copy link
Collaborator

For future prospectors: this is fixed by special-casing in Append and AppendUnique, but not for Prepend or PrependUnique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants