Skip to content

workaround for pasting code with empty lines? #604

@jmhodges

Description

@jmhodges

Code like

def foobar():
    okay = "foo"

    return okay

will fail to parse when pasted in starlark. Understandable! The python repl does the same. However, there are some workarounds in Python-land (and I believe that ipython does some extra hacks around Ctrl-V to put all of the paste buffer down as one code block). Are there any equivalent workarounds in starlark?

(I'm asking in a public place so that other folks might find this convo)

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