2 ms·
Lots of public APIs support this behaviour, it's convenient for users. For example numpy.fromfile will accept a file object or a string.
by joshvm 8y ago
Lots of public APIs support this behaviour, it's convenient for users. For example numpy.fromfile will accept a file object or a string.