On Mon, May 25, 2020 at 12:19 PM Guido van Rossum <gu...@python.org> wrote:
> It's nice to fantasize about RAM disks, but the code in zipfile.py is > begging for a simpler solution, just pass in a wrapper that overrides the > write() method (you may have to make a few changes but you can develop and > test this separately from the fix for your bug). > indeed -- pretty standard use case for mocking, yes? But in cases where you might need a more complete file system (and or where C code might be doing the writing) , it would be nice to be able to mock an entire filesystem. -CHB > > -- > --Guido van Rossum (python.org/~guido) > *Pronouns: he/him **(why is my pronoun here?)* > <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/WEP6WSFNHIDELYM64QICJ44JQ2GQ6ZG5/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/N3AXZ5OGIDWLK2BWHMYLIVJK3QLQA6HB/ Code of Conduct: http://python.org/psf/codeofconduct/