|
From: Michael F. <fuz...@vo...> - 2008-01-16 14:10:35
|
Hello all, The following changes to the validate module are now in SVN: A couple of documentation bug fixes. Removed CHANGELOG from module. Bugfix: we weren't unquoting keyword arguments of length two, so an empty string didn't work as a default. Bugfix: Strings no longer pass the 'is_list' check. Additionally, the list checks always return lists. Added 'tuple' check and corresponding 'is_tuple' function (which always returns a tuple). All the best, Michael |
|
From: Arve K. <arv...@gm...> - 2008-01-16 18:57:11
|
Superb. Glad to see the list conversion bug is fixed. Thanks, Arve On Jan 16, 2008 3:07 PM, Michael Foord <fuz...@vo...> wrote: > Hello all, > > The following changes to the validate module are now in SVN: > > A couple of documentation bug fixes. > > Removed CHANGELOG from module. > > Bugfix: we weren't unquoting keyword arguments of length two, so an > empty string didn't work as a default. > > Bugfix: Strings no longer pass the 'is_list' check. Additionally, the > list checks always return lists. > > Added 'tuple' check and corresponding 'is_tuple' function (which always > returns a tuple). > > All the best, > > > Michael > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > |
|
From: Michael F. <fuz...@vo...> - 2008-01-16 22:21:30
|
Arve Knudsen wrote: > Superb. Glad to see the list conversion bug is fixed. Cool, it would be great if you could test the version in SVN to see if it really fixes your problems (and doesn't introduce new ones). Next I'm looking at adding 'reset', 'reload' and 'restore_defaults' (your patch) to ConfigObj. If I add these methods then the new release will be version 4.5.0 I guess. I'd lake to make some other changes to the API - but as these break backwards compatibility they will have to wait some unspecified length of time for a version 5: 'write' should return a string rather than a list of strings if there is no filename. The options dictionary parameter in the constructor doesn't really make sense. Michael http://www.manning.com/foord > > Thanks, > Arve > > On Jan 16, 2008 3:07 PM, Michael Foord <fuz...@vo... > <mailto:fuz...@vo...>> wrote: > > Hello all, > > The following changes to the validate module are now in SVN: > > A couple of documentation bug fixes. > > Removed CHANGELOG from module. > > Bugfix: we weren't unquoting keyword arguments of length two, so an > empty string didn't work as a default. > > Bugfix: Strings no longer pass the 'is_list' check. Additionally, the > list checks always return lists. > > Added 'tuple' check and corresponding 'is_tuple' function (which > always > returns a tuple). > > All the best, > > > Michael > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > <http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > _______________________________________________ > Configobj-develop mailing list > Con...@li... > <mailto:Con...@li...> > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > |
|
From: Frederik E. <fre...@we...> - 2008-01-16 22:45:39
|
Am Mittwoch, den 16.01.2008, 22:21 +0000 schrieb Michael Foord: > The options dictionary parameter in the constructor doesn't really make > sense. Doesn't it? I use it because I use the constructor in several places, and this way I only have to change options once. But maybe this is a minority position. Frederik |
|
From: Arve K. <arv...@gm...> - 2008-01-17 08:47:39
|
On Jan 16, 2008 11:21 PM, Michael Foord <fuz...@vo...> wrote: > Arve Knudsen wrote: > > Superb. Glad to see the list conversion bug is fixed. > > Cool, it would be great if you could test the version in SVN to see if > it really fixes your problems (and doesn't introduce new ones). I've tested, and no problems detected so far (strings are no longer accepted for lists). Arve > > Next I'm looking at adding 'reset', 'reload' and 'restore_defaults' > (your patch) to ConfigObj. If I add these methods then the new release > will be version 4.5.0 I guess. > > I'd lake to make some other changes to the API - but as these break > backwards compatibility they will have to wait some unspecified length > of time for a version 5: > > 'write' should return a string rather than a list of strings if there is > no filename. > The options dictionary parameter in the constructor doesn't really make > sense. > > Michael > http://www.manning.com/foord > > > > > > Thanks, > > Arve > > > > On Jan 16, 2008 3:07 PM, Michael Foord <fuz...@vo... > > <mailto:fuz...@vo...>> wrote: > > > > Hello all, > > > > The following changes to the validate module are now in SVN: > > > > A couple of documentation bug fixes. > > > > Removed CHANGELOG from module. > > > > Bugfix: we weren't unquoting keyword arguments of length two, so an > > empty string didn't work as a default. > > > > Bugfix: Strings no longer pass the 'is_list' check. Additionally, > the > > list checks always return lists. > > > > Added 'tuple' check and corresponding 'is_tuple' function (which > > always > > returns a tuple). > > > > All the best, > > > > > > Michael > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > <http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > > _______________________________________________ > > Configobj-develop mailing list > > Con...@li... > > <mailto:Con...@li...> > > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Configobj-develop mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > |
|
From: Michael F. <fuz...@vo...> - 2008-01-16 22:49:21
|
Frederik Elwert wrote: > Am Mittwoch, den 16.01.2008, 22:21 +0000 schrieb Michael Foord: > >> The options dictionary parameter in the constructor doesn't really make >> sense. >> > > Doesn't it? I use it because I use the constructor in several places, > and this way I only have to change options once. But maybe this is a > minority position. > > The point is, if you have the keywords as a dictionary you can always do: c = ConfigObj(filename, **options) I think the dictionary of parameters is a hangover from ConfigObj 3, back when I didn't know you could unpack dictionaries like that. :-) Michael > Frederik > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > |
|
From: Frederik E. <fre...@we...> - 2008-01-17 09:12:50
|
Am Mittwoch, den 16.01.2008, 22:48 +0000 schrieb Michael Foord: > Frederik Elwert wrote: > The point is, if you have the keywords as a dictionary you can always do: > > c = ConfigObj(filename, **options) > > I think the dictionary of parameters is a hangover from ConfigObj 3, > back when I didn't know you could unpack dictionaries like that. :-) Oh, sure, then it's all right! :-) Frederik |