Skip to content

Instantly share code, notes, and snippets.

@antiface
Forked from codegenres/EnterSourceCode.py
Created January 5, 2017 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antiface/8946b809317996cbebe724d3d6d4e6d7 to your computer and use it in GitHub Desktop.
Save antiface/8946b809317996cbebe724d3d6d4e6d7 to your computer and use it in GitHub Desktop.
# [ENTER_SOURCE_CODE]
# A.G. (c) 2017. All Rights Reserved.
# January 4th, 2017
import time
class EnterSourceCode:
def __init__(self, time, filename, sourcecode, category):
self.time = time
self.filename = filename
self.sourcecode = sourcecode
self.category = category
"""
>>> class EnterSourceCode:
def __init__(self, time, filename, sourcecode, category):
self.time = time
self.filename = filename
self.sourcecode = sourcecode
self.category = category
>>> xls = EnterSourceCode(time.asctime(), 'filename', 'sourcecode', 'category')
>>> xls.time, xls.filename, xls.sourcecode, xls.category
('Wed Jan 4 21:02:14 2017', 'filename', 'sourcecode', 'category')
>>> xls = EnterSourceCode(time.asctime(), 'trueExperimentalMethod', 'This is the True Experimental Method, The One And Only!', 'table')
>>> xls.time, xls.filename, xls.sourcecode, xls.category
('Wed Jan 4 22:01:30 2017', 'trueExperimentalMethod', 'This is the True Experimental Method, The One And Only!', 'table')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment