Skip to content

Conversation

@rofinn
Copy link
Contributor

@rofinn rofinn commented Feb 21, 2018

The retry docstring currently only proposes check functions that returns a bool, but these would result in a BoundsError because the retry function expects the check function to return the state and retry bool. This change supports both options, using the initial state when only 1 value is returned.

NOTE: If folks don't want to support returning just a bool then we should update the docstring.

@JeffBezanson
Copy link
Member

Good catch. Not sure how it got this way.

@JeffBezanson JeffBezanson merged commit 13f42e6 into JuliaLang:master Feb 27, 2018
mbauman added a commit that referenced this pull request Mar 5, 2018
…gnment

* master:
  Make stdlib tests runnable standalone. (#26242)
  fix unary-related parsing regressions caused by #26154 (#26239)
  Formatting changes to new SSA IR devdocs [ci skip]
  use medium code model on PPC
  `retry` should support the check function proposed in the docstring. (#26138)
  mention axes in docs instead of size (#26233)
  exclude more CI files from source distro (#25906)
  Describe three-valued logic in docstrings
  deprecate using the value of `.=`. fixes #25954 (#26088)
  backport change to make CodegenPrepare work with isNoopAddrSpaceCast
  optimize the python version of abs2 in the microbenchmarks (#26223)
  Add notes for package maintainers (#25912)
  typo
  Fix broken links to functions in the manual (#26171)
  [NewOptimizer] Track inlining info
  Begin work on new optimizer framework
  add patch to make GC address spaces work on PPC
  also backport sover patch to LLVM 4.0
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