Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-04-10 Thread John Millikin
On Wed, Apr 9, 2008 at 10:15 PM, Bob Ippolito [EMAIL PROTECTED] wrote: That sounds like a really bad idea, if there is an option to change the behavior it shouldn't live in module state. Would you rather have strictness controls as parameters? demjson currently has seventeen of those. Maybe

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-04-10 Thread Bob Ippolito
On Wed, Apr 9, 2008 at 11:01 PM, John Millikin [EMAIL PROTECTED] wrote: On Wed, Apr 9, 2008 at 10:15 PM, Bob Ippolito [EMAIL PROTECTED] wrote: That sounds like a really bad idea, if there is an option to change the behavior it shouldn't live in module state. Would you rather have

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-04-10 Thread Ian Bicking
John Millikin wrote: On Wed, Apr 9, 2008 at 10:15 PM, Bob Ippolito [EMAIL PROTECTED] wrote: That sounds like a really bad idea, if there is an option to change the behavior it shouldn't live in module state. Would you rather have strictness controls as parameters? demjson currently has

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-04-10 Thread Alan Kennedy
[Bob] simplejson would give you an error and tell you exactly where the problem was, Another good point. Other JSON modules should follow simplejson's lead, and provide access to the location in the document where the lexical or parse error occurred, so that the offending document can be

Re: [Web-SIG] Time a for JSON parser in the standard library?

2008-04-10 Thread Benji York
Bob Ippolito wrote: On Wed, Apr 9, 2008 at 8:04 PM, John Millikin [EMAIL PROTECTED] wrote: For exception by default behavior, the library can call warnings.simplefilter (error, JSONWarning) on initialization. Then we just define various subclasses of JSONWarning for the different warning