Skip to content

Instantly share code, notes, and snippets.

@jbiason
Created January 18, 2017 13:14
Show Gist options
  • Save jbiason/df94a2063a6a654dbf21ea1552ba26f4 to your computer and use it in GitHub Desktop.
Save jbiason/df94a2063a6a654dbf21ea1552ba26f4 to your computer and use it in GitHub Desktop.
#!/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