|
From: Aaron B. <aar...@ut...> - 2006-02-02 19:25:17
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Foord wrote: >> Ok - so if an encoding is specified, then ``write()`` should always >> return byte strings. That is what is called an 'over-sight'. :-) > >> Will be fixed. Cool. > My preference would be the ability to specify a file object to > cfg_obj.write(). > > >> So you'd like to be able to pass a file like object to ``write()``... >> hmmm... > >> Again, this is something that you used to be able to do with ConfigObj >> 3, but I removed to reduce the level of complexity. By way of explanation, the file-like objects we read from are not the same objects as the ones we write to. We have a get method that produces a read-only file-like, and a put method that accepts a file-like. Aaron -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD4lyF0F+nu1YWqI0RAiXmAJ0TuLzcDOjtLBi4LghjjMSc/mQm6QCcDi31 dkl8c/9AJMfneuT5S88hPYU= =qHDM -----END PGP SIGNATURE----- |