Return a list of option names for the given section name.
(self, section)
| 724 | return section in self._sections |
| 725 | |
| 726 | def options(self, section): |
| 727 | """Return a list of option names for the given section name.""" |
| 728 | try: |
| 729 | opts = self._sections[section].copy() |
| 730 | except KeyError: |
| 731 | raise NoSectionError(section) from None |
| 732 | opts.update(self._defaults) |
| 733 | return list(opts.keys()) |
| 734 | |
| 735 | def read(self, filenames, encoding=None): |
| 736 | """Read and parse a filename or an iterable of filenames. |