[issue30699] Misleading class names in datetime.tzinfo usage examples

2017-06-18 Thread Robert Tasarz
New submission from Robert Tasarz: https://docs.python.org/3/library/datetime.html#datetime-objects gives in an example two classes named GMT1 and GMT2 subclassing tzinfo, defined with dst(…) methods returning one hour timedelta for summer periods. This is in conflict with naming, as GMT

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-11 Thread Robert Tasarz
Changes by Robert Tasarz : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue17702> ___ ___ Python-bugs-list mailing list Unsubscri

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-11 Thread Robert Tasarz
New submission from Robert Tasarz: Minimal example: >>> import os >>> somekey = 'random' >>> try: ... os.environ[somekey] ... except KeyError as e: ... print(repr(e)) ... somekey == e.args[0] ... KeyError(b'random',) False Tested i