Skip to content

Conversation

taus-semmle
Copy link
Contributor

@felicity-semmle for review.

@markshannon Do you see anything that needs to be added?

@markshannon
Copy link
Contributor

A couple of other things.

  • A new NegativeIntegerLiteral class has been added as a subtype of ImmutableLiteral. So -1 is treated as an ImmutableLiteral. This means that queries looking for the use of constant integers will automatically handle negative numbers.
  • Value::forInt(int x) and Value::forString(string s) have been added to make it easier to refer to the Value entities for common constants.

@felicitymay felicitymay added this to the 1.22 milestone Aug 24, 2019
@felicitymay felicitymay added the Priority PR that should be reviewed and merged as a matter of priority. label Aug 24, 2019
Copy link
Contributor

@felicitymay felicitymay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for expanding on the original change notes @taus-semmle. One very minor text suggestion, in addition to Mark's notes. Otherwise LGTM.


### Other improvements

- Short flags for regexes (e.g. `re.M` for multiline regexes) are now handled correctly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Short flags for regexes (e.g. `re.M` for multiline regexes) are now handled correctly.
- Short flags for regexes (for example, `re.M` for multiline regexes) are now handled correctly.

Copy link
Contributor

@felicitymay felicitymay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@semmle-qlci semmle-qlci merged commit 30921d5 into github:master Aug 25, 2019
@tausbn tausbn deleted the python-change-notes-1.22 branch February 12, 2021 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority PR that should be reviewed and merged as a matter of priority. Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants