Printf moved from Base in v1.4?

I decided to use basic commands like @sprintf without explicitly importing the module required. That is, instead of writing

using Printf
@sprintf("%.3f",0.4)

I wanted to write something like

Base.Printf.@sprintf("%.3f",0.4)

because I only use the function in three places and I wanted to keep the using statements for other modules in my code.

This worked in versions 1.1.1 through 1.3.1. When I tried this in v1.4, I got an error that Printf was not defined. Maybe this is because Printf might have been moved from Base and exported differently? I didn’t see anything in the release notes about this. If I’m right about this, then where is Printf and how can I access it without a using statement or is that impossible? Where would something like this be documented and I could read about it? Thanks!

1 Like

Printf is a standard library, not a submodule of Base. I’m surprised that Base.Printf ever worked in v1.x times.

Edit: apparently until v1.3 there was actually a submodule of Base called Printf :confused:

3 Likes