from datetime import datetime def foo(p): """Foo :param datetime p: a datetime """