Skip to content

Python 3 removes the reduce builtin #2973

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

Merged
merged 1 commit into from
Jun 11, 2016

Conversation

RLovelett
Copy link
Contributor

What's in this pull request?

Python 3 removes the reduce builtin. This fix is merely the result of the suggestion in the Python 3 docs.

Perhaps the solution is a refactoring to use a for loop as suggested in the docs. That's not really for me to say though as I understand next to nothing about Python or "preferred" methods. This was the smallest change I could make to get it back to working.


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@gribozavr
Copy link
Contributor

@swift-ci Please Python lint

@gribozavr
Copy link
Contributor

@RLovelett Thank you! Would you mind looking at the linter issues?

./utils/update-checkout:13:1: I201 Missing newline before sections or imports.
./utils/update-checkout:15:1: I100 Import statements are in the wrong order. import argparse should be before from functools

You can run the linter locally with utils/python-lint.

@RLovelett RLovelett force-pushed the python3-utils-update-checkout branch from 00157b8 to b7c852a Compare June 11, 2016 13:08
This fix is merely the result of the suggestion in the Python 3 docs.
See: https://docs.python.org/3.0/whatsnew/3.0.html#builtins
@RLovelett RLovelett force-pushed the python3-utils-update-checkout branch from b7c852a to c955e6e Compare June 11, 2016 13:09
@RLovelett
Copy link
Contributor Author

Fixed them. Thank you @gribozavr for all the work you do on this project.

@gribozavr
Copy link
Contributor

@swift-ci Please Python lint

@gribozavr gribozavr merged commit d788851 into swiftlang:master Jun 11, 2016
@gribozavr
Copy link
Contributor

@RLovelett No, thank you!

@RLovelett RLovelett deleted the python3-utils-update-checkout branch June 11, 2016 21:05
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.

2 participants