1. 20 Ock, 2001 1 kayıt (commit)
    • Skip Montanaro's avatar
      added __all__ lists to a number of Python modules · e99d5ea2
      Skip Montanaro yazdı
      added test script and expected output file as well
      this closes patch 103297.
      __all__ attributes will be added to other modules without first submitting
      a patch, just adding the necessary line to the test script to verify
      more-or-less correct implementation.
      e99d5ea2
  2. 14 Ock, 2001 1 kayıt (commit)
  3. 11 Ara, 2000 1 kayıt (commit)
  4. 04 Ara, 2000 1 kayıt (commit)
  5. 27 Eyl, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      Allow spaces in section names. · 2a37f9f8
      Fred Drake yazdı
      Do not expose the __name__ when reporting the list of options available
      for a section since that is for internal use.
      
      This closes SourceForge bug #115357.
      
      Additionally, define InterpolationDepthError and MAX_INTERPOLATION_DEPTH.
      The exception is raised by get*() when value interpolation cannot be
      completed within the defined recursion limit.  The constant is only
      informative; changing it will not affect the allowed depth.
      
      Fix the exit from get() so that None is not returned if the depth is met
      or exceeded; either return the value of raise InterpolationDepthError.
      2a37f9f8
  6. 25 Eyl, 2000 1 kayıt (commit)
  7. 21 Tem, 2000 1 kayıt (commit)
  8. 14 Tem, 2000 1 kayıt (commit)
  9. 10 Tem, 2000 1 kayıt (commit)
    • Eric S. Raymond's avatar
      Give ConfigParser the capability to set as well as read options, and to write · 417c489d
      Eric S. Raymond yazdı
      a representation of the configuration state in .ini format that can be read
      back in by a future read() call.  Thus this class is now a back end
      for .ini editors as well as parsers.
      
      This patch is complete and tested, but exposes a bug in the ConfigParser
      implementation which I have not yet fixed.  Because case information is
      discarded during parsing, the output of write() has its case smashed.
      
      I wrote this for a SourceForge interface script called forgetool.
      Documentation for the new entry points included.
      417c489d
  10. 09 May, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      ConfigParser.read(): · fd4114e7
      Fred Drake yazdı
              Instead of wrapping 'filenames' value in a list if it's a
              string, wrap it if it's a string or unicode string.
      fd4114e7
  11. 03 Mar, 2000 1 kayıt (commit)
  12. 28 Şub, 2000 2 kayıt (commit)
  13. 12 Eki, 1999 1 kayıt (commit)
  14. 04 Eki, 1999 3 kayıt (commit)
    • Guido van Rossum's avatar
      Added has_option(); fix bug in get() which botched interpolation if · a5a24b76
      Guido van Rossum yazdı
      '%(' was found in first position (found by Fred Drake).
      a5a24b76
    • Guido van Rossum's avatar
      Urmpfh! · 6a8d84b0
      Guido van Rossum yazdı
      Withdraw the change that Fred just checked in -- it was a poorly
      documented feature, not a bug, to ignore I/O errors in read().
      
      The new docstring explains the reason for the feature:
      """
      this is designed so that you can specifiy a list of potential
      configuration file locations (e.g. current directory, user's home
      directory, systemwide directory), and all existing configuration files
      in the list will be read.
      """
      
      Also add a lower-level function, readfp(), which takes an open file
      object (and optionally a filename).
      
      XXX There are some other problems with this module, but I don't have
      time to dig into these; in particular, there are complaints that the
      %(name)s substitution from the [DEFAULTS] section doesn't work
      correctly.
      6a8d84b0
    • Fred Drake's avatar
      2438a485
  15. 17 Haz, 1999 1 kayıt (commit)
  16. 12 Şub, 1999 1 kayıt (commit)
  17. 30 Ock, 1999 1 kayıt (commit)
    • Guido van Rossum's avatar
      From: Mike Orr <mso@oz.net> · c0780ac8
      Guido van Rossum yazdı
      In the docstring of ConfigParser.py  (Python 1.5.2b1):
          read(*filenames) -- read and parse the list of named configuration files
      
      should be:
          read(filenames) -- read and parse the list of named configuration files
      
      The method accepts a list, not a bunch of positional arguments.
      Which is good, the list is much more convenient.
      c0780ac8
  18. 26 Ock, 1999 2 kayıt (commit)
  19. 06 Agu, 1998 1 kayıt (commit)
  20. 01 Tem, 1998 1 kayıt (commit)
    • Barry Warsaw's avatar
      Several changes: · bfa3f6b6
      Barry Warsaw yazdı
      1. Convert to using re module
      
      2. Added two new exception classes
      
          a. MissingSectionHeaderError which signals an early parsing
             exception when options appear in the file before any section
             header.  Previously a bogus TypeError was thrown deeper down.
      
          b. ParsingError which collates any non-fatal parsing errors.
             ConfigParser.read() will raise this after the entire file was
             parsed if any errors occurred during parsing (client could just
             catch the exception and continue, because the ConfigParser
             instance would still be initialized with the valid data).
      
         (small note: Error.__msg => Error._msg)
      
      3. ConfigParser.__read() now uses re which has the following minor
         semantic change: underscore is now allowed in section header and
         option name.  Also, because of the old regexps, theoretically.
         Fixed continuation line bug reported by F. Lundh.
      
      4. It seemed that the old ConfigParser automatically added the option
         `name' to every section, which contained the name of the section.
         This seemed bogus to me so I took it out.
      bfa3f6b6
  21. 26 Mar, 1998 1 kayıt (commit)
  22. 26 Ock, 1998 1 kayıt (commit)
  23. 09 Ara, 1997 1 kayıt (commit)