Added more magics to IPython

Added cl_run_kernel and cl_load_kernel
What is the issue here with 2to3?


On Thu, Jun 12, 2014 at 4:57 PM, Yichao Yu <notifications@github.com> wrote:

> In pyopencl/__init__.py:
>
> > @@ -174,8 +174,8 @@ def __getattr__(self, attr):
> >      # {{{ build
> >
> >      def build(self, options=[], devices=None, cache_dir=None):
> > -        if isinstance(options, str):
> > -            options = [options]
> > +        if isinstance(options, basestring):
> > +            options = [options.encode("utf8")]
>
> Actually, this won't work with 2to3. You should probably distinguish
> between str and unicode here if you want to support unicode.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pyopencl/pyopencl/pull/48/files#r13725889>.
>