Hacker News new | ask | show | jobs
by makapuf 2644 days ago
Why not have clearer file, filename or data keyword arguments ? Or just file and call open or stringio if you have the file name or data ? Plenty of more explicit solutions.