Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
Issue #1667546 is more ambitious than this. I propose a very simple patch which makes tm_zone and tm_gmtoff available on systems with HAVE_STRUCT_TM_TM_ZONE defined (Linux and BSD variants). The additional fields are only allowed as attributes so len(time.localtime()) is still the same. This choice allows to get access to extra fields without breaking code that relies on the size of timetuple. The patch needs documentation updates which I will add if the idea is well received. ---------- keywords: +patch nosy: +mark.dickinson stage: -> patch review versions: +Python 3.2 -Python 2.7, Python 3.1 Added file: http://bugs.python.org/file17554/issue1647654.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1647654> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com