2016-11-28 | Paul Boddie | raw annotate files changeset graph | 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. |
1 #!/usr/bin/env python 2 3 class struct_time(tuple): 4 pass 5 6 def asctime(t=None): 7 pass 8 9 def clock(): 10 pass 11 12 def ctime(seconds): 13 pass 14 15 def gmtime(seconds=None): 16 pass 17 18 def localtime(seconds=None): 19 pass 20 21 def mktime(t): 22 pass 23 24 def sleep(seconds): 25 pass 26 27 def strftime(format, t=None): 28 pass 29 30 def strptime(s, format): 31 pass 32 33 def time(): 34 pass 35 36 def tzset(): 37 pass 38 39 # vim: tabstop=4 expandtab shiftwidth=4