Python Cheat Sheet
Python Cheat Sheet
fromtimestamp(timestamp) utcfromtimestamp(timestamp)
Registered OS names: "posix", "nt", "mac", "os2", "ce", "java", "riscos" Python Class Special Methods __new__(cls) __init__(self, args) __del__(self) __repr__(self) __str__(self) __cmp__(self, other) __index__(self) __hash__(self) __getattr__(self, name) __getattribute__(self, name) __setattr__(self, name, attr) __lt__(self, other) __le__(self, other) __gt__(self, other) __ge__(self, other) __eq__(self, other) __ne__(self, other) __nonzero__(self)
Sunday as start of week. All days in a new year preceding the first Sunday are considered to be in week 0. 0 is Sunday, 6 is Saturday. Monday as start of week. All days in a new year preceding the first Monday are considered to be in week 0. This is not a mistake. Range takes account of leap and double-leap seconds.
b=a[:]
Shallow copy of a
Indexes and Slices of a=[0,1,2,3,4,5] Cheat Sheet This cheat sheet was published on 19th October, 2011 and was last updated on 27th October, 2011. Sponsor Envoy , for simple and effective bug management. Try it free! http://www.envoyapp.com