Created
January 18, 2017 13:14
-
-
Save jbiason/df94a2063a6a654dbf21ea1552ba26f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
"""Testing stuff.""" | |
class People(object): | |
"""A people!""" | |
# pylint:disable=too-few-public-methods | |
def __init__(self, name, age): | |
self.name = name | |
self.age = age | |
def __str__(self): | |
"""Representation of the object.""" | |
return self.name | |
def main(): | |
"""Main function.""" | |
person = People('Julio', 40) | |
print '{person} - {person.age}'.format( | |
person=person) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment