[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

Hynek Schlawack report at bugs.python.org
Thu Aug 11 09:39:02 CEST 2011

Hynek Schlawack <hs at ox.cx> added the comment:

I tend to agree on public APIs, however in this case of a helper function the use case with a join is really really common so this extra function comes in very handy. I also kept it using lists, so it's more obvious than tuples.

JFTR it wasn't my idea, so I'm not defensive about my own idea here. :)  I just re-implemented it for read_file b/c it's really handy and saves a lot of typing.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list