Skip to content
Snippets Groups Projects
  • Bob Lantz's avatar
    c3a44400
    Changed custom feature so that params aren't added to globals. · c3a44400
    Bob Lantz authored
    There is probably a better way of doing this, but currently
    parseCustomFile can modify globals (e.g. TOPOS) as well as
    instance variables (self.validate) and classes (e.g. MyTopo),
    which are also in the global name space.
    
    Inconveniently enough, lambdas don't seem to be full closures
    in Python; if they were, this trickiness would be unnecessary.
    
    Even so, using execfile() seems like it might be a bit dubious...
    c3a44400
    History
    Changed custom feature so that params aren't added to globals.
    Bob Lantz authored
    There is probably a better way of doing this, but currently
    parseCustomFile can modify globals (e.g. TOPOS) as well as
    instance variables (self.validate) and classes (e.g. MyTopo),
    which are also in the global name space.
    
    Inconveniently enough, lambdas don't seem to be full closures
    in Python; if they were, this trickiness would be unnecessary.
    
    Even so, using execfile() seems like it might be a bit dubious...
Code owners
Assign users and groups as approvers for specific file changes. Learn more.