Skip to content

Context manager / "with" support #1

@s-celles

Description

@s-celles

Hello,

it will be nice if pykml could support / provide example of context manager ("with").
It will be much easier to create a kml file with way
http://preshing.com/20110920/the-python-with-statement-by-example/

see http://aerofiles.readthedocs.org/en/latest/api/xcsoar.html
This library is able to output a XML file with way (and that's very convenient)

It's using contextlib https://docs.python.org/2/library/contextlib.html

You might also have a look at https://github.com/leforestier/yattag

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions