Last active
September 10, 2015 13:49
-
-
Save neurosnap/3b976d081173cd5f60d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
members = { | |
"class": self._class, | |
"number": self.number, | |
"part_number": self.part_number, | |
"description": self.description, | |
"quantity": self.quantity, | |
} | |
return """Class: {class}\t | |
Number: {number}\t | |
Part Number: {part_number}\t | |
Description: {description}\t | |
Quantity: {quantity}\t | |
""".format(**members) | |
""" or """ | |
return """Class: {class}\t | |
Number: {number}\t | |
Part Number: {part_number}\t | |
Description: {description}\t | |
Quantity: {quantity}\t | |
""".format(**self.__dict__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment