Skip to content

Publish menu entry provides pastable snippet using module name E #1849

Description

@jbclements

The "Publish" link in the pyret code editor produced the import line

import shared-gdrive("exporting-example.arr", "1iwdWH4nlKgC0fZ90Qp1BWKX84nAELGTX") as E

... but trying to use the library's one import resulted in an error about the mathematical number e:

import shared-gdrive("exporting-example.arr", "1iwdWH4nlKgC0fZ90Qp1BWKX84nAELGTX") as E

E.bogo-fun("abc")

=>

"The left side was not an object:
~2.718281828459045"

It looks like E is the name for the mathematical number, and probably the
publish menu entry should not use E as a suggested import name?

Oh! I tried it again; I see, it's just the first letter of the file's name. That would be a problem, then?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions