From 219f2773042e092b4342afbdd0d5c6b2ed11db88 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 30 Nov 2018 19:31:22 +0100 Subject: [PATCH] News and compat annotation for #29997 (parse(Bool, str)). --- NEWS.md | 1 + base/parse.jl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index c1a83fb5ed6fa..22767f57cfbb8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -76,6 +76,7 @@ Standard library changes * `mean` and `var` now handles the empty case ([#29033]). * New `sort!(::AbstractArray; dims)` method that can sort the array along the `dims` dimension ([#28902]). * `range` now accept `stop` as a positional argument ([#28708]). + * `parse(Bool, str)` is now supported ([#29997]). Compiler/Runtime improvements ----------------------------- diff --git a/base/parse.jl b/base/parse.jl index 15edab83c33d8..b21d85f7faf99 100644 --- a/base/parse.jl +++ b/base/parse.jl @@ -14,6 +14,9 @@ of the form `"RĀ±Iim"` as a `Complex(R,I)` of the requested type; `"i"` or `"j"` used instead of `"im"`, and `"R"` or `"Iim"` are also permitted. If the string does not contain a valid number, an error is raised. +!!! compat "Julia 1.1" + `parse(Bool, str)` requires at least Julia 1.1. + # Examples ```jldoctest julia> parse(Int, "1234")