I don't think it is. But we probably don't need it...
Because of lack of C version of contrb.simplejson there is no need to
trying to load it anyway.


On 1 Lip, 07:35, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Is this supported in 2.4?
>
> On 30 Giu, 18:12, zahariash <karra...@gmail.com> wrote:
>
>
>
> > Hello.
>
> > Problem with simplejson is that it's originally trying to load c
> > module (_speedups.so), but web2py version of simplejson is python
> > only.
> > So when decoder.py, encoder.py and scanner.py trying to load c modules
> > find it in global namespace...:
> > try:
> >     from simplejson._speedups import encode_basestring_ascii as
> > c_encode_basestring_ascii
> > except ImportError:
> >     c_encode_basestring_ascii = None
>
> > Workaround is switching to relative imports (tested on python 2.5):
> > try:
> >     from .. simplejson._speedups import encode_basestring_ascii as
> > c_encode_basestring_ascii
> > except ImportError:
> >     c_encode_basestring_ascii = None
>
> > -- Zahariash

Reply via email to