[issue34242] configparser: SectionProxy.get is silent on missing options

2018-07-27 Thread Stig Johan Berggren
Stig Johan Berggren added the comment: That's fair, I didn't consider consistency with dicts' `get`. Maybe a ConfigParser object could have an option to raise errors, because they are useful for discovering errors in config files. I still find the remark about the parser-le

[issue34242] configparser: SectionProxy.get is silent on missing options

2018-07-26 Thread Stig Johan Berggren
Change by Stig Johan Berggren : -- keywords: +patch pull_requests: +8009 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34242> ___ _

[issue34242] configparser: SectionProxy.get is silent on missing options

2018-07-26 Thread Stig Johan Berggren
New submission from Stig Johan Berggren : `get()` on a ConfigParser object behaves differently from `get()` on a section. The former raises an exception when the key does not exist and no fallback has been explicitly set. The latter returns None, with no option to raise an error for missing

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
Change by Stig Johan Berggren : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34083> ___ ___ Python-bugs-list mailing list Unsub

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
Change by Stig Johan Berggren : -- keywords: +patch pull_requests: +7768 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34083> ___ _

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
Stig Johan Berggren added the comment: I'll try to patch it myself. -- ___ Python tracker <https://bugs.python.org/issue34083> ___ ___ Python-bugs-list m

[issue34083] Functional Programming HOWTO: Dictionary ordering isn't "essentially random"

2018-07-10 Thread Stig Johan Berggren
New submission from Stig Johan Berggren : The section about iterators in the Functional Programming HOWTO (https://docs.python.org/3/howto/functional.html#data-types-that-support-iterators) states the following about looping over dictionary keys: "Note that the order is essentially r