Skip to content

SyntaxError: encoding declaration in Unicode string #3245

@asmeurer

Description

@asmeurer
In [1]: # -*- coding: utf-8 -*-
  File "<ipython-input-1-df4697b9472e>", line unknown
SyntaxError: encoding declaration in Unicode string

In regular Python

>>> # -*- coding: utf-8 -*-
...
>>>

This came up %pasteing an example from http://numba.pydata.org/numba-doc/dev/examples.html#id1.

This seems related to #1103.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions