Victor Stinner wrote: > Hi, > > Le Tuesday 16 February 2010 11:38:05 anatoly techtonik, vous avez écrit : >> So far, Python timezone handling is far from "pythonic". There is no >> function to get current UTC offset, (...) > > There is the time.timezone attribute: UTC offset in seconds. > >> One of the reasons I see is that date/time functions are >> implemented in C, they expose C API, and there are not many people who >> can help and patch them. > > Is it no possible to extend Python datetime module in Python?
Splitting datetime into a datetime.py with an underlying _datetime.c is an idea definitely worth exploring - that module structure makes it much easier to accelerate things that need it, while allowing less critical or more complex aspects to be written in the higher level language. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com