Vim script (mapping) to generate python getters and setters
Somethin that I need quite often is to create custom accessors and mutators for class-attributes. For example convert this: class MyClass(object): def __init__(self): self.has_changes = False self.some_attribute = False into this: class MyClass(object): def __init__(self): self.__has_changes = False … Continue reading Vim script (mapping) to generate python getters and setters
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed