Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99573
| From | Chris Lalancette <clalancette@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Looking for ideas to improve library API |
| Date | 2015-11-26 08:33 -0500 |
| Message-ID | <mailman.137.1448544829.20593.python-list@python.org> (permalink) |
| References | <CABMb9Gu+m9cJXQavXwxc0iouhsKsFSFKVvepLXhJcorc8aUkRw@mail.gmail.com> <5656FCC5.9000308@mrabarnett.plus.com> |
On Thu, Nov 26, 2015 at 7:36 AM, MRAB <python@mrabarnett.plus.com> wrote: > Why pass a file descriptor? Why not a filename? The reason for a file descriptor is so that I can also add other file-like objects, such as StringIO. My unit tests, for instance, rely heavily on this. That being said, it is not *strictly* required (my unit tests could be modified to write to temporary files), but I thought it was a nice feature. Chris
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Looking for ideas to improve library API Chris Lalancette <clalancette@gmail.com> - 2015-11-26 08:33 -0500
csiph-web