1. 24 Dec, 2002 6 commits
  2. 23 Dec, 2002 22 commits
  3. 22 Dec, 2002 5 commits
    • Tim Peters's avatar
      I give up: unless I write my own strftime by hand, datetime just can't · d6844155
      Tim Peters authored
      be trusted with years before 1900, so now we raise ValueError if a date or
      datetime or datetimetz .strftime() method is called with a year before
      1900.
      d6844155
    • Tim Peters's avatar
      Python's strftime implementation does strange things with the year, · 83b85f1d
      Tim Peters authored
      such that the datetime tests failed if the envar PYTHON2K was set.
      This is an utter mess, and the datetime module's strftime functions
      inherit it.  I suspect that, regardless of the PYTHON2K setting, and
      regardless of platform limitations, the datetime strftime wrappers
      will end up delivering nonsense results (or bogus exceptions) for
      any year before 1900.  I should probably just refuse to accept years
      earlier than that -- else we'll have to implement strftime() by hand.
      83b85f1d
    • Tim Peters's avatar
      classify_object(): Renamed more meaningfully, to classify_utcoffset(). · 14b69411
      Tim Peters authored
      Also changed logic so that instances of user-defined subclasses of date,
      time, and datetime are called OFFSET_NAIVE instead of OFFSET_UNKNOWN.
      14b69411
    • Tim Peters's avatar
      Implemented a Wiki suggestion: · 855fe88b
      Tim Peters authored
      {timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None)
      instead of an int (or None).
      
      tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None).
      
      Curiously, this was much easier to do in the C implementation than in the
      Python implementation (which lives in the Zope3 code tree) -- the C code
      already had lots of hair to extract C ints from offset objects, and used
      C ints internally.
      855fe88b
    • Kurt B. Kaiser's avatar
      Add configuration for packaging. · 18091540
      Kurt B. Kaiser authored
      18091540
  4. 21 Dec, 2002 5 commits
  5. 20 Dec, 2002 2 commits
    • Kurt B. Kaiser's avatar
      Update the setup file: · f39f59a5
      Kurt B. Kaiser authored
      1. Make it easier to change the package and script installation names.
      2. Update the text files transferred to include the .def and new .txt
         files.
      3. Update the description and long description, change email to
         python-dev, update the url to point at sourceforge.
      4. Rename the build and install classes for clarity.
      f39f59a5
    • Thomas Heller's avatar
      Fix an error message in the _winreg module. The error message referred · e1d18f52
      Thomas Heller authored
      to a constant in the 'win32con' module, but this constant is also
      defined in the _winreg module itself.
      
      Bugfix candidate.
      e1d18f52