----- Original Message ----- > From: "Francesco Romani" <[email protected]> > To: [email protected] > Cc: "Nir Soffer" <[email protected]> > Sent: Tuesday, November 11, 2014 12:24:43 PM > Subject: Re: [ovirt-devel] [VDSM][JSON] jsonrpc coding/encoding performance > on RHEL/Centos 6 > > > > ----- Original Message ----- > > From: "Nir Soffer" <[email protected]> > > To: "Francesco Romani" <[email protected]> > > Cc: [email protected] > > Sent: Monday, November 10, 2014 1:21:53 PM > > Subject: Re: [ovirt-devel] [VDSM][JSON] jsonrpc coding/encoding performance > > on RHEL/Centos 6 > > > > We have vdsm/lib/compat.py for this stuff. > > > > Then everyone needing json will do "from vdsm.compat import json" > > Do you think is better to have an hard dependency on 'simplejson' > or a soft one like I showed above hidden on compat.py?
It depends on the availability of simplejson. If it available on all platforms, we can require it. > > I think we agree that 'explicit is better than implicit' here, so... (see > below). I prefer to see "json" in the code, even if we use simplejson library. When we stop supporting Python 2.6 the only change we have to do is remove the "soft" import mechanism. Nir _______________________________________________ Devel mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/devel
