Added more magics to IPython

Added cl_run_kernel and cl_load_kernel
Okay. Fine. So what is the correct way of handling this?


On Fri, Jun 13, 2014 at 3:41 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")]
>
> That only means it is also a bug if it is intended to accept both unicode
> and bytes.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pyopencl/pyopencl/pull/48/files#r13768447>.
>