2016-11-28 | Paul Boddie | file changeset files shortlog | Allow null contexts in retrieved attributes to override accessor contexts. This allows the use of functions as methods by instances. Make sure that methods which cannot be initialised in class structures are assigned with their context intact. |
paul@6 | 1 | #!/usr/bin/env python |
paul@6 | 2 | |
paul@6 | 3 | class struct_time(tuple): |
paul@6 | 4 | pass |
paul@6 | 5 | |
paul@6 | 6 | def asctime(t=None): |
paul@6 | 7 | pass |
paul@6 | 8 | |
paul@6 | 9 | def clock(): |
paul@6 | 10 | pass |
paul@6 | 11 | |
paul@6 | 12 | def ctime(seconds): |
paul@6 | 13 | pass |
paul@6 | 14 | |
paul@6 | 15 | def gmtime(seconds=None): |
paul@6 | 16 | pass |
paul@6 | 17 | |
paul@6 | 18 | def localtime(seconds=None): |
paul@6 | 19 | pass |
paul@6 | 20 | |
paul@6 | 21 | def mktime(t): |
paul@6 | 22 | pass |
paul@6 | 23 | |
paul@6 | 24 | def sleep(seconds): |
paul@6 | 25 | pass |
paul@6 | 26 | |
paul@6 | 27 | def strftime(format, t=None): |
paul@6 | 28 | pass |
paul@6 | 29 | |
paul@6 | 30 | def strptime(s, format): |
paul@6 | 31 | pass |
paul@6 | 32 | |
paul@6 | 33 | def time(): |
paul@6 | 34 | pass |
paul@6 | 35 | |
paul@6 | 36 | def tzset(): |
paul@6 | 37 | pass |
paul@6 | 38 | |
paul@6 | 39 | # vim: tabstop=4 expandtab shiftwidth=4 |