Changes between Version 1 and Version 2 of Ticket #2873, comment 7


Ignore:
Timestamp:
Jan 25, 2016, 3:14:34 AM (8 years ago)
Author:
pmav99

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2873, comment 7

    v1 v2  
    11I think that the scope of this proposal is very wide. IMHO importing dynamic libraries in a cross platform way and providing an official API are different issues.
    22
    3 WRT to providing an official API for working with GRASS Locations / Mapsets I believe that the proper python idiom is to use a [https://pymotw.com/2/contextlib/index.html#module-contextlib| context manager]. In other words, the user should not have to do anything E.g.:
     3WRT to providing an official API for working with GRASS Locations / Mapsets I believe that the proper python idiom is to use a [https://pymotw.com/2/contextlib/index.html#module-contextlib| context manager]. In other words, the user should not have to do anything when exiting E.g.:
    44
    55{{{#!python